diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index cce941710ac8..028a14d90d66 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-accessapproval - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-accessapproval' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-accessapproval:2.100.0' +implementation 'com.google.cloud:google-cloud-accessapproval:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-accessapproval" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-accessapproval/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-accessapproval/2.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 4f0ad1e86281..5a7c3e865af0 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-identity-accesscontextmanager - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-identity-accesscontextmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-identity-accesscontextmanager:1.100.0' +implementation 'com.google.cloud:google-identity-accesscontextmanager:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-identity-accesscontextmanager" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-identity-accesscontextmanager/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-identity-accesscontextmanager/1.101.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-admanager/README.md b/java-admanager/README.md index b6110a49100d..f93419842776 100644 --- a/java-admanager/README.md +++ b/java-admanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads ad-manager - 0.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:ad-manager:0.58.0' +implementation 'com.google.api-ads:ad-manager:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.58.0" +libraryDependencies += "com.google.api-ads" % "ad-manager" % "0.59.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview [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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/ad-manager/0.59.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index 3bd48ad4585d..1ef93bd56335 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-advisorynotifications - 0.88.0 + 0.89.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-advisorynotifications' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-advisorynotifications:0.88.0' +implementation 'com.google.cloud:google-cloud-advisorynotifications:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-advisorynotifications" % "0.89.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-advisorynotifications/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-advisorynotifications/0.89.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-agentidentity/README.md b/java-agentidentity/README.md index 8d7da8b59b15..f13e431e0822 100644 --- a/java-agentidentity/README.md +++ b/java-agentidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentidentity - 0.5.0 + 0.6.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentidentity:0.5.0' +implementation 'com.google.cloud:google-cloud-agentidentity:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentidentity" % "0.6.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentidentity/latest/overview [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-agentidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentidentity/0.6.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-agentregistry/README.md b/java-agentregistry/README.md index 03a5edc592ec..cd60ee4679ca 100644 --- a/java-agentregistry/README.md +++ b/java-agentregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-agentregistry - 0.6.0 + 0.7.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-agentregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-agentregistry:0.6.0' +implementation 'com.google.cloud:google-cloud-agentregistry:0.7.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.6.0" +libraryDependencies += "com.google.cloud" % "google-cloud-agentregistry" % "0.7.0" ``` ## Authentication @@ -188,7 +188,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-agentregistry/latest/overview [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-agentregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.6.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-agentregistry/0.7.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 75f3ff36f816..f22eba407f5c 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-aiplatform - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-aiplatform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-aiplatform:3.100.0' +implementation 'com.google.cloud:google-cloud-aiplatform:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-aiplatform" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-aiplatform/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-aiplatform.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-aiplatform/3.101.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-connectors/README.md b/java-alloydb-connectors/README.md index ec95bd9d8980..544ff8c0dfe4 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb-connectors - 0.77.0 + 0.78.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb-connectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.77.0' +implementation 'com.google.cloud:google-cloud-alloydb-connectors:0.78.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.77.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb-connectors" % "0.78.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb-connectors/latest/overview [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.77.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb-connectors/0.78.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 6218d39b27fa..c4e99b292d1e 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-alloydb - 0.88.0 + 0.89.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-alloydb' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-alloydb:0.88.0' +implementation 'com.google.cloud:google-cloud-alloydb:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-alloydb" % "0.89.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-alloydb/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-alloydb/0.89.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/README.md b/java-analytics-admin/README.md index 3f52246e9d0e..a32359fcfff2 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-admin - 0.109.0 + 0.110.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.109.0' +implementation 'com.google.analytics:google-analytics-admin:0.110.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.109.0" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.110.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-admin/latest/overview [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.109.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-admin/0.110.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/README.md b/java-analytics-data/README.md index 29345cd44dfc..75c8f2a15763 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.analytics google-analytics-data - 0.110.0 + 0.111.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.analytics:google-analytics-data' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.analytics:google-analytics-data:0.110.0' +implementation 'com.google.analytics:google-analytics-data:0.111.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.110.0" +libraryDependencies += "com.google.analytics" % "google-analytics-data" % "0.111.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-analytics-data/latest/overview [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.110.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.analytics/google-analytics-data/0.111.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-analyticshub/README.md b/java-analyticshub/README.md index daea67c7d0d5..05ca55a87136 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-analyticshub - 0.96.0 + 0.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-analyticshub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-analyticshub:0.96.0' +implementation 'com.google.cloud:google-cloud-analyticshub:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-analyticshub" % "0.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-analyticshub/latest/overview [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-analyticshub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-analyticshub/0.97.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/README.md b/java-api-gateway/README.md index 23791ff7a4d2..86845d176a5f 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-api-gateway - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-api-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-api-gateway:2.99.0' +implementation 'com.google.cloud:google-cloud-api-gateway:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-api-gateway" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-api-gateway/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-api-gateway/2.100.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/README.md b/java-apigee-connect/README.md index c5f599116bad..057be8868c43 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apigee-connect - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apigee-connect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apigee-connect:2.99.0' +implementation 'com.google.cloud:google-cloud-apigee-connect:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apigee-connect" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apigee-connect/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apigee-connect/2.100.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-apihub/README.md b/java-apihub/README.md index 17438fcae4a1..80719dd0fe6a 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apihub - 0.52.0 + 0.53.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apihub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apihub:0.52.0' +implementation 'com.google.cloud:google-cloud-apihub:0.53.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.52.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apihub" % "0.53.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview [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-apihub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/0.52.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apihub/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-apikeys/README.md b/java-apikeys/README.md index aa309902bc81..b7d837ad03de 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apikeys - 0.97.0 + 0.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-apikeys' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apikeys:0.97.0' +implementation 'com.google.cloud:google-cloud-apikeys:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apikeys" % "0.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apikeys/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apikeys/0.98.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/README.md b/java-appengine-admin/README.md index 4fba44a305e5..9a7e117e586b 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appengine-admin - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-appengine-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appengine-admin:2.99.0' +implementation 'com.google.cloud:google-cloud-appengine-admin:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appengine-admin" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appengine-admin/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appengine-admin/2.100.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/README.md b/java-apphub/README.md index 80fd4e198798..bb26fcd48c4d 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apphub - 0.63.0 + 0.64.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apphub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apphub:0.63.0' +implementation 'com.google.cloud:google-cloud-apphub:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apphub" % "0.64.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apphub/latest/overview [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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apphub/0.64.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-appoptimize/README.md b/java-appoptimize/README.md index 6b99095c687a..f47983babf6c 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-appoptimize - 0.9.0 + 0.10.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-appoptimize' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-appoptimize:0.9.0' +implementation 'com.google.cloud:google-cloud-appoptimize:0.10.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.9.0" +libraryDependencies += "com.google.cloud" % "google-cloud-appoptimize" % "0.10.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview [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-appoptimize.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/0.9.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-appoptimize/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-apptopology/README.md b/java-apptopology/README.md index d1e51c065d89..3b64af6a656b 100644 --- a/java-apptopology/README.md +++ b/java-apptopology/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-apptopology - 0.3.0 + 0.4.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-apptopology' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-apptopology:0.3.0' +implementation 'com.google.cloud:google-cloud-apptopology:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.3.0" +libraryDependencies += "com.google.cloud" % "google-cloud-apptopology" % "0.4.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-apptopology/latest/overview [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-apptopology.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-apptopology/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-area120-tables/README.md b/java-area120-tables/README.md index 7af27763e5cf..99385df6c2db 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.area120 google-area120-tables - 0.103.0 + 0.104.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.area120:google-area120-tables' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.area120:google-area120-tables:0.103.0' +implementation 'com.google.area120:google-area120-tables:0.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.103.0" +libraryDependencies += "com.google.area120" % "google-area120-tables" % "0.104.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-area120-tables/latest/overview [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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.area120/google-area120-tables/0.104.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/README.md b/java-artifact-registry/README.md index a2e7b0e4285c..e4c4e5fe2574 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-artifact-registry - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-artifact-registry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-artifact-registry:1.98.0' +implementation 'com.google.cloud:google-cloud-artifact-registry:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-artifact-registry" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-artifact-registry/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-artifact-registry/1.99.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/README.md b/java-asset/README.md index 6ed8709940ac..a24d509538a8 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-asset - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-asset' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-asset:3.103.0' +implementation 'com.google.cloud:google-cloud-asset:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-asset" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-asset/latest/overview [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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-asset/3.104.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/README.md b/java-assured-workloads/README.md index f51e0e809a0e..d822ec86b798 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-assured-workloads - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-assured-workloads' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-assured-workloads:2.99.0' +implementation 'com.google.cloud:google-cloud-assured-workloads:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-assured-workloads" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-assured-workloads/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-assured-workloads/2.100.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-auditmanager/README.md b/java-auditmanager/README.md index 2421aefd360b..1cb154913248 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-auditmanager - 0.17.0 + 0.18.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-auditmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-auditmanager:0.17.0' +implementation 'com.google.cloud:google-cloud-auditmanager:0.18.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.17.0" +libraryDependencies += "com.google.cloud" % "google-cloud-auditmanager" % "0.18.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview [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-auditmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/0.17.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-auditmanager/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-backstory/README.md b/java-backstory/README.md index ee273b6c8f91..401560e4054e 100644 --- a/java-backstory/README.md +++ b/java-backstory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backstory - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-backstory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backstory:0.7.0' +implementation 'com.google.cloud:google-cloud-backstory:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backstory" % "0.8.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview [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-backstory.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backstory/0.8.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-backupdr/README.md b/java-backupdr/README.md index 7d90b97c6c4a..a2852df3018a 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-backupdr - 0.58.0 + 0.59.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-backupdr' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-backupdr:0.58.0' +implementation 'com.google.cloud:google-cloud-backupdr:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.58.0" +libraryDependencies += "com.google.cloud" % "google-cloud-backupdr" % "0.59.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview [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-backupdr.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-backupdr/0.59.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/README.md b/java-bare-metal-solution/README.md index 0d77c9d65e47..e10fd8032db3 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bare-metal-solution - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bare-metal-solution' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.99.0' +implementation 'com.google.cloud:google-cloud-bare-metal-solution:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bare-metal-solution" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bare-metal-solution/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bare-metal-solution/0.100.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/README.md b/java-batch/README.md index a927692aafc5..8c2f4132b085 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-batch - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-batch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-batch:0.99.0' +implementation 'com.google.cloud:google-cloud-batch:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-batch" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-batch/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-batch/0.100.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/README.md b/java-beyondcorp-appconnections/README.md index 4352c02ef0fe..4f94b15d2b15 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnections - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.97.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnections:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnections" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnections/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnections/0.98.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/README.md b/java-beyondcorp-appconnectors/README.md index 9dd86643fcaa..24ccdbfe4036 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appconnectors - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.97.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appconnectors:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appconnectors" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appconnectors/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appconnectors/0.98.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/README.md b/java-beyondcorp-appgateways/README.md index 6a6e8c561e61..78e8f0f14d3e 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-appgateways - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.97.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-appgateways:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-appgateways" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-appgateways/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-appgateways/0.98.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/README.md b/java-beyondcorp-clientconnectorservices/README.md index cadfce4f5869..3e2c32a7b337 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientconnectorservices - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.97.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientconnectorservices:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientconnectorservices" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientconnectorservices/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientconnectorservices/0.98.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/README.md b/java-beyondcorp-clientgateways/README.md index 048d8b417a2d..e33470ee457b 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-beyondcorp-clientgateways - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.97.0' +implementation 'com.google.cloud:google-cloud-beyondcorp-clientgateways:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-beyondcorp-clientgateways" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-beyondcorp-clientgateways/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-beyondcorp-clientgateways/0.98.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-hive/README.md b/java-biglake-hive/README.md index 7d2fbd6d7001..06cc4fb7b310 100644 --- a/java-biglake-hive/README.md +++ b/java-biglake-hive/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake-hive - 0.4.0 + 0.5.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake-hive' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake-hive:0.4.0' +implementation 'com.google.cloud:google-cloud-biglake-hive:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake-hive" % "0.5.0" ``` ## Authentication @@ -195,7 +195,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake-hive/latest/overview [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-hive.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake-hive/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-biglake/README.md b/java-biglake/README.md index 1b5b2462b001..4daf2e6dcda5 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-biglake - 0.87.0 + 0.88.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-biglake' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-biglake:0.87.0' +implementation 'com.google.cloud:google-cloud-biglake:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-biglake" % "0.88.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-biglake/latest/overview [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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-biglake/0.88.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/README.md b/java-bigquery-data-exchange/README.md index d4c3ca8fc65d..235974339294 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquery-data-exchange - 2.94.0 + 2.95.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquery-data-exchange' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.94.0' +implementation 'com.google.cloud:google-cloud-bigquery-data-exchange:2.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquery-data-exchange" % "2.95.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquery-data-exchange/latest/overview [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.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquery-data-exchange/2.95.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/README.md b/java-bigqueryconnection/README.md index 5c9784b82cf4..dbadbc67b77d 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryconnection - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryconnection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.101.0' +implementation 'com.google.cloud:google-cloud-bigqueryconnection:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryconnection" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryconnection/2.102.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/README.md b/java-bigquerydatapolicy/README.md index 47d19885a629..402e639e69a4 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatapolicy - 0.96.0 + 0.97.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatapolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.96.0' +implementation 'com.google.cloud:google-cloud-bigquerydatapolicy:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatapolicy" % "0.97.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatapolicy/latest/overview [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatapolicy/0.97.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/README.md b/java-bigquerydatatransfer/README.md index fe3da9dd50a0..c37dedbd8479 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerydatatransfer - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerydatatransfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.99.0' +implementation 'com.google.cloud:google-cloud-bigquerydatatransfer:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerydatatransfer" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerydatatransfer/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerydatatransfer/2.100.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/README.md b/java-bigquerymigration/README.md index 082a1508c41a..9f029e865a90 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerymigration - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-bigquerymigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerymigration:0.102.0' +implementation 'com.google.cloud:google-cloud-bigquerymigration:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerymigration" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerymigration/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerymigration/0.103.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/README.md b/java-bigqueryreservation/README.md index 30647828d6fe..296966fce4de 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigqueryreservation - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigqueryreservation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.100.0' +implementation 'com.google.cloud:google-cloud-bigqueryreservation:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigqueryreservation" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigqueryreservation/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigqueryreservation/2.101.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-bigquerystorage/README.md b/java-bigquerystorage/README.md index 8d60645931b4..899e1f545399 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigquerystorage - 3.35.0 + 3.36.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigquerystorage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigquerystorage:3.35.0' +implementation 'com.google.cloud:google-cloud-bigquerystorage:3.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigquerystorage" % "3.36.0" ``` ## Authentication @@ -233,7 +233,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history [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-bigquerystorage.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigquerystorage/3.36.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-bigtable/README.md b/java-bigtable/README.md index ae7ae2e33a05..32f75a7062bc 100644 --- a/java-bigtable/README.md +++ b/java-bigtable/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-bigtable - 2.85.0 + 2.86.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-bigtable' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-bigtable:2.85.0' +implementation 'com.google.cloud:google-cloud-bigtable:2.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-bigtable" % "2.86.0" ``` ## Authentication @@ -450,7 +450,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-bigtable/latest/history [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-bigtable.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-bigtable/2.86.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/README.md b/java-billing/README.md index 39a4d6f09e8a..f84668614c5c 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billing - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billing:2.99.0' +implementation 'com.google.cloud:google-cloud-billing:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billing" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billing/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billing/2.100.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/README.md b/java-billingbudgets/README.md index d163601b50a9..a79335cc508c 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-billingbudgets - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-billingbudgets' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-billingbudgets:2.99.0' +implementation 'com.google.cloud:google-cloud-billingbudgets:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-billingbudgets" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-billingbudgets/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-billingbudgets/2.100.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/README.md b/java-binary-authorization/README.md index a6e176750a07..f17f69472629 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-binary-authorization - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-binary-authorization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-binary-authorization:1.98.0' +implementation 'com.google.cloud:google-cloud-binary-authorization:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-binary-authorization" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-binary-authorization/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-binary-authorization/1.99.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-capacityplanner/README.md b/java-capacityplanner/README.md index c3a207c72703..ed0c10af5f72 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-capacityplanner - 0.22.0 + 0.23.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-capacityplanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-capacityplanner:0.22.0' +implementation 'com.google.cloud:google-cloud-capacityplanner:0.23.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.22.0" +libraryDependencies += "com.google.cloud" % "google-cloud-capacityplanner" % "0.23.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview [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-capacityplanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/0.22.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-capacityplanner/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-certificate-manager/README.md b/java-certificate-manager/README.md index 88c0365c6a6c..2c4e61bfc230 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-certificate-manager - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-certificate-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-certificate-manager:0.102.0' +implementation 'com.google.cloud:google-cloud-certificate-manager:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-certificate-manager" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-certificate-manager/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-certificate-manager/0.103.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-ces/README.md b/java-ces/README.md index 2342d94657b1..64f1e742eac8 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ces - 0.15.0 + 0.16.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ces' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ces:0.15.0' +implementation 'com.google.cloud:google-cloud-ces:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ces" % "0.16.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview [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-ces.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ces/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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java index 800d23198481..0e2b0286e8cd 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceClient.java @@ -972,6 +972,24 @@ * * * + *

UpdateAppVersion + *

Updates the specified app version. + * + *

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.

+ * + * + * + * *

DeleteAppVersion *

Deletes the specified app version. * @@ -7574,6 +7592,97 @@ public final UnaryCallable createAppVersion return stub.createAppVersionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
+   *   AppVersion appVersion = AppVersion.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   AppVersion response = agentServiceClient.updateAppVersion(appVersion, updateMask);
+   * }
+   * }
+ * + * @param appVersion Required. The app version to update. + * @param updateMask Optional. The list of fields to update. If empty, fields `display_name` and + * `description` will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AppVersion updateAppVersion(AppVersion appVersion, FieldMask updateMask) { + UpdateAppVersionRequest request = + UpdateAppVersionRequest.newBuilder() + .setAppVersion(appVersion) + .setUpdateMask(updateMask) + .build(); + return updateAppVersion(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
+   *   UpdateAppVersionRequest request =
+   *       UpdateAppVersionRequest.newBuilder()
+   *           .setAppVersion(AppVersion.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   AppVersion response = agentServiceClient.updateAppVersion(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 AppVersion updateAppVersion(UpdateAppVersionRequest request) { + return updateAppVersionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the specified app version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AgentServiceClient agentServiceClient = AgentServiceClient.create()) {
+   *   UpdateAppVersionRequest request =
+   *       UpdateAppVersionRequest.newBuilder()
+   *           .setAppVersion(AppVersion.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       agentServiceClient.updateAppVersionCallable().futureCall(request);
+   *   // Do something.
+   *   AppVersion response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable updateAppVersionCallable() { + return stub.updateAppVersionCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes the specified app version. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java index a7dbe6f0b0f4..10b8eef338ea 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AgentServiceSettings.java @@ -411,6 +411,11 @@ public UnaryCallSettings createAppVersionSe return ((AgentServiceStubSettings) getStubSettings()).createAppVersionSettings(); } + /** Returns the object with the settings used for calls to updateAppVersion. */ + public UnaryCallSettings updateAppVersionSettings() { + return ((AgentServiceStubSettings) getStubSettings()).updateAppVersionSettings(); + } + /** Returns the object with the settings used for calls to deleteAppVersion. */ public UnaryCallSettings deleteAppVersionSettings() { return ((AgentServiceStubSettings) getStubSettings()).deleteAppVersionSettings(); @@ -861,6 +866,12 @@ public UnaryCallSettings.Builder getAppVersion return getStubSettingsBuilder().createAppVersionSettings(); } + /** Returns the builder for the settings used for calls to updateAppVersion. */ + public UnaryCallSettings.Builder + updateAppVersionSettings() { + return getStubSettingsBuilder().updateAppVersionSettings(); + } + /** Returns the builder for the settings used for calls to deleteAppVersion. */ public UnaryCallSettings.Builder deleteAppVersionSettings() { return getStubSettingsBuilder().deleteAppVersionSettings(); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java new file mode 100644 index 000000000000..15652d085159 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceClient.java @@ -0,0 +1,1395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.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.ces.v1beta.stub.AssistantServiceStub; +import com.google.cloud.ces.v1beta.stub.AssistantServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: The service that manages assistant-related resources in Customer Engagement + * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES applications to help + * users with building their agents. + * + *

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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ *   AssistantSessionName name =
+ *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+ *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+ * }
+ * }
+ * + *

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

ListAssistantSessions

Lists all assistant sessions in the given app.

+ *

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

+ *
    + *
  • listAssistantSessions(ListAssistantSessionsRequest request) + *

+ *

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

+ *
    + *
  • listAssistantSessions(AppName parent) + *

  • listAssistantSessions(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.

+ *
    + *
  • listAssistantSessionsPagedCallable() + *

  • listAssistantSessionsCallable() + *

+ *

GetAssistantSession

Gets details of the specified assistant session.

+ *

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

+ *
    + *
  • getAssistantSession(GetAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • getAssistantSession(AssistantSessionName name) + *

  • getAssistantSession(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.

+ *
    + *
  • getAssistantSessionCallable() + *

+ *

CreateAssistantSession

Creates a new assistant session in the given app.

+ *

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

+ *
    + *
  • createAssistantSession(CreateAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • createAssistantSession(AppName parent, String assistantSessionId) + *

  • createAssistantSession(String parent, String assistantSessionId) + *

+ *

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

+ *
    + *
  • createAssistantSessionCallable() + *

+ *

DeleteAssistantSession

Deletes the specified assistant session.

+ *

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

+ *
    + *
  • deleteAssistantSession(DeleteAssistantSessionRequest request) + *

+ *

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

+ *
    + *
  • deleteAssistantSession(AssistantSessionName name) + *

  • deleteAssistantSession(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.

+ *
    + *
  • deleteAssistantSessionCallable() + *

+ *

RunAssistant

Runs the assistant agent for the specified assistant session.

+ *

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

+ *
    + *
  • runAssistant(RunAssistantRequest request) + *

+ *

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

+ *
    + *
  • runAssistantCallable() + *

+ *

ChatAiAssistant

Runs Arc, the AI assistant, for the specified assistant session.

+ *

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

+ *
    + *
  • chatAiAssistant(ChatAiAssistantRequest request) + *

+ *

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

+ *
    + *
  • chatAiAssistantCallable() + *

+ *

ListLocations

Lists information about the supported locations for this service. + *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

+ *

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

+ *
    + *
  • listLocations(ListLocationsRequest request) + *

+ *

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

+ *
    + *
  • listLocationsPagedCallable() + *

  • listLocationsCallable() + *

+ *

GetLocation

Gets information about a location.

+ *

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

+ *
    + *
  • getLocation(GetLocationRequest request) + *

+ *

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

+ *
    + *
  • getLocationCallable() + *

+ *
+ * + *

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 AssistantServiceSettings 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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder()
+ *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ *         .build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

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
+ * AssistantServiceSettings assistantServiceSettings =
+ *     AssistantServiceSettings.newHttpJsonBuilder().build();
+ * AssistantServiceClient assistantServiceClient =
+ *     AssistantServiceClient.create(assistantServiceSettings);
+ * }
+ * + *

Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class AssistantServiceClient implements BackgroundResource { + private final @Nullable AssistantServiceSettings settings; + private final AssistantServiceStub stub; + + /** Constructs an instance of AssistantServiceClient with default settings. */ + public static final AssistantServiceClient create() throws IOException { + return create(AssistantServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AssistantServiceClient, 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 AssistantServiceClient create(AssistantServiceSettings settings) + throws IOException { + return new AssistantServiceClient(settings); + } + + /** + * Constructs an instance of AssistantServiceClient, using the given stub for making calls. This + * is for advanced usage - prefer using create(AssistantServiceSettings). + */ + public static final AssistantServiceClient create(AssistantServiceStub stub) { + return new AssistantServiceClient(stub); + } + + /** + * Constructs an instance of AssistantServiceClient, 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 AssistantServiceClient(AssistantServiceSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AssistantServiceStubSettings) settings.getStubSettings()).createStub(); + } + + protected AssistantServiceClient(AssistantServiceStub stub) { + this.settings = null; + this.stub = stub; + } + + public final @Nullable AssistantServiceSettings getSettings() { + return settings; + } + + public AssistantServiceStub getStub() { + return stub; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
+   *   for (AssistantSession element :
+   *       assistantServiceClient.listAssistantSessions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The app to list assistant sessions from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantSessionsPagedResponse listAssistantSessions(@Nullable AppName parent) { + ListAssistantSessionsRequest request = + ListAssistantSessionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAssistantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
+   *   for (AssistantSession element :
+   *       assistantServiceClient.listAssistantSessions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The app to list assistant sessions from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAssistantSessionsPagedResponse listAssistantSessions(String parent) { + ListAssistantSessionsRequest request = + ListAssistantSessionsRequest.newBuilder().setParent(parent).build(); + return listAssistantSessions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantSessionsRequest request =
+   *       ListAssistantSessionsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   for (AssistantSession element :
+   *       assistantServiceClient.listAssistantSessions(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 ListAssistantSessionsPagedResponse listAssistantSessions( + ListAssistantSessionsRequest request) { + return listAssistantSessionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantSessionsRequest request =
+   *       ListAssistantSessionsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.listAssistantSessionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (AssistantSession element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAssistantSessionsPagedCallable() { + return stub.listAssistantSessionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all assistant sessions in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListAssistantSessionsRequest request =
+   *       ListAssistantSessionsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setFilter("filter-1274492040")
+   *           .build();
+   *   while (true) {
+   *     ListAssistantSessionsResponse response =
+   *         assistantServiceClient.listAssistantSessionsCallable().call(request);
+   *     for (AssistantSession element : response.getAssistantSessionsList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listAssistantSessionsCallable() { + return stub.listAssistantSessionsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantSessionName name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession getAssistantSession(@Nullable AssistantSessionName name) { + GetAssistantSessionRequest request = + GetAssistantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *           .toString();
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to retrieve. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession getAssistantSession(String name) { + GetAssistantSessionRequest request = + GetAssistantSessionRequest.newBuilder().setName(name).build(); + return getAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantSessionRequest request =
+   *       GetAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   AssistantSession response = assistantServiceClient.getAssistantSession(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 AssistantSession getAssistantSession(GetAssistantSessionRequest request) { + return getAssistantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetAssistantSessionRequest request =
+   *       GetAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.getAssistantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   AssistantSession response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getAssistantSessionCallable() { + return stub.getAssistantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
+   *   String assistantSessionId = "assistantSessionId-1566358253";
+   *   AssistantSession response =
+   *       assistantServiceClient.createAssistantSession(parent, assistantSessionId);
+   * }
+   * }
+ * + * @param parent Required. The app to create the assistant session in Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param assistantSessionId Optional. The ID to use for the assistant session, which will become + * the final component of the assistant session's resource name. If not provided, a unique ID + * will be automatically assigned for the assistant session. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession createAssistantSession( + @Nullable AppName parent, String assistantSessionId) { + CreateAssistantSessionRequest request = + CreateAssistantSessionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAssistantSessionId(assistantSessionId) + .build(); + return createAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
+   *   String assistantSessionId = "assistantSessionId-1566358253";
+   *   AssistantSession response =
+   *       assistantServiceClient.createAssistantSession(parent, assistantSessionId);
+   * }
+   * }
+ * + * @param parent Required. The app to create the assistant session in Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @param assistantSessionId Optional. The ID to use for the assistant session, which will become + * the final component of the assistant session's resource name. If not provided, a unique ID + * will be automatically assigned for the assistant session. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AssistantSession createAssistantSession(String parent, String assistantSessionId) { + CreateAssistantSessionRequest request = + CreateAssistantSessionRequest.newBuilder() + .setParent(parent) + .setAssistantSessionId(assistantSessionId) + .build(); + return createAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantSessionRequest request =
+   *       CreateAssistantSessionRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSessionId("assistantSessionId-1566358253")
+   *           .addAllAssistantSessionMessages(new ArrayList())
+   *           .build();
+   *   AssistantSession response = assistantServiceClient.createAssistantSession(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 AssistantSession createAssistantSession(CreateAssistantSessionRequest request) { + return createAssistantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new assistant session in the given app. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   CreateAssistantSessionRequest request =
+   *       CreateAssistantSessionRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSessionId("assistantSessionId-1566358253")
+   *           .addAllAssistantSessionMessages(new ArrayList())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.createAssistantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   AssistantSession response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createAssistantSessionCallable() { + return stub.createAssistantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   AssistantSessionName name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+   *   assistantServiceClient.deleteAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistantSession(@Nullable AssistantSessionName name) { + DeleteAssistantSessionRequest request = + DeleteAssistantSessionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   String name =
+   *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *           .toString();
+   *   assistantServiceClient.deleteAssistantSession(name);
+   * }
+   * }
+ * + * @param name Required. The name of the assistant session to delete. Format: + * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteAssistantSession(String name) { + DeleteAssistantSessionRequest request = + DeleteAssistantSessionRequest.newBuilder().setName(name).build(); + deleteAssistantSession(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   DeleteAssistantSessionRequest request =
+   *       DeleteAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   assistantServiceClient.deleteAssistantSession(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 deleteAssistantSession(DeleteAssistantSessionRequest request) { + deleteAssistantSessionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   DeleteAssistantSessionRequest request =
+   *       DeleteAssistantSessionRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.deleteAssistantSessionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteAssistantSessionCallable() { + return stub.deleteAssistantSessionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the assistant agent for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   RunAssistantRequest request =
+   *       RunAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage(AssistantMessage.newBuilder().build())
+   *           .build();
+   *   RunAssistantResponse response = assistantServiceClient.runAssistant(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 RunAssistantResponse runAssistant(RunAssistantRequest request) { + return runAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs the assistant agent for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   RunAssistantRequest request =
+   *       RunAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage(AssistantMessage.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.runAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   RunAssistantResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable runAssistantCallable() { + return stub.runAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ChatAiAssistantRequest request =
+   *       ChatAiAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .build();
+   *   ChatAiAssistantResponse response = assistantServiceClient.chatAiAssistant(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 ChatAiAssistantResponse chatAiAssistant(ChatAiAssistantRequest request) { + return chatAiAssistantCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ChatAiAssistantRequest request =
+   *       ChatAiAssistantRequest.newBuilder()
+   *           .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setAssistantSession(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.chatAiAssistantCallable().futureCall(request);
+   *   // Do something.
+   *   ChatAiAssistantResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + chatAiAssistantCallable() { + return stub.chatAiAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (Location element : assistantServiceClient.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. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       assistantServiceClient.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. + * + *

This method lists locations based on the resource scope provided inthe + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic + * locations available to all projects. * **Project-specificlocations**: If + * `name` follows the format`projects/{project}`, the method lists locations visible to + * thatspecific project. This includes public, private, or otherproject-specific locations enabled + * for the project. + * + *

For gRPC and client library implementations, the resource name ispassed as the `name` field. + * For direct service calls, the resourcename isincorporated into the request path based on the + * specific serviceimplementation and version. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   ListLocationsRequest request =
+   *       ListLocationsRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListLocationsResponse response =
+   *         assistantServiceClient.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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   Location response = assistantServiceClient.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 (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
+   *   ApiFuture future = assistantServiceClient.getLocationCallable().futureCall(request);
+   *   // Do something.
+   *   Location response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + @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 ListAssistantSessionsPagedResponse + extends AbstractPagedListResponse< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage, + ListAssistantSessionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAssistantSessionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAssistantSessionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAssistantSessionsPagedResponse(ListAssistantSessionsPage page) { + super(page, ListAssistantSessionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAssistantSessionsPage + extends AbstractPage< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage> { + + private ListAssistantSessionsPage( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + @Nullable ListAssistantSessionsResponse response) { + super(context, response); + } + + private static ListAssistantSessionsPage createEmptyPage() { + return new ListAssistantSessionsPage(null, null); + } + + @Override + protected ListAssistantSessionsPage createPage( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + @Nullable ListAssistantSessionsResponse response) { + return new ListAssistantSessionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAssistantSessionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + AssistantSession, + ListAssistantSessionsPage, + ListAssistantSessionsFixedSizeCollection> { + + private ListAssistantSessionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAssistantSessionsFixedSizeCollection createEmptyCollection() { + return new ListAssistantSessionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAssistantSessionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAssistantSessionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + @Nullable PageContext context, + @Nullable ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java similarity index 54% rename from java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceSettings.java rename to java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java index 8722adfd28e7..5fb205f464d8 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceSettings.java @@ -14,9 +14,10 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.ces.v1beta; -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.BetaApi; @@ -28,14 +29,14 @@ 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.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.geminidataanalytics.v1beta.stub.DataA2AServiceStubSettings; +import com.google.cloud.ces.v1beta.stub.AssistantServiceStubSettings; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.protobuf.Empty; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -44,13 +45,12 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Settings class to configure an instance of {@link DataA2AServiceClient}. + * Settings class to configure an instance of {@link AssistantServiceClient}. * *

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

    - *
  • The default service address (geminidataanalytics.googleapis.com) and default port (443) are - * used. + *
  • The default service address (ces.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. *
@@ -60,7 +60,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of sendMessage: + * of getAssistantSession: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -68,13 +68,13 @@
  * // - It may require correct/in-range values for request initialization.
  * // - It may require specifying regional endpoints when creating the service client as shown in
  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataA2AServiceSettings.Builder dataA2AServiceSettingsBuilder =
- *     DataA2AServiceSettings.newBuilder();
- * dataA2AServiceSettingsBuilder
- *     .sendMessageSettings()
+ * AssistantServiceSettings.Builder assistantServiceSettingsBuilder =
+ *     AssistantServiceSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ *     .getAssistantSessionSettings()
  *     .setRetrySettings(
- *         dataA2AServiceSettingsBuilder
- *             .sendMessageSettings()
+ *         assistantServiceSettingsBuilder
+ *             .getAssistantSessionSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -86,7 +86,7 @@
  *             .setRpcTimeoutMultiplier(1.5)
  *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
- * DataA2AServiceSettings dataA2AServiceSettings = dataA2AServiceSettingsBuilder.build();
+ * AssistantServiceSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
  * }
* * Please refer to the [Client Side Retry @@ -96,78 +96,99 @@ @NullMarked @BetaApi @Generated("by gapic-generator-java") -public class DataA2AServiceSettings extends ClientSettings { +public class AssistantServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to listAssistantSessions. */ + public PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).listAssistantSessionsSettings(); + } + + /** Returns the object with the settings used for calls to getAssistantSession. */ + public UnaryCallSettings + getAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).getAssistantSessionSettings(); + } - /** Returns the object with the settings used for calls to sendMessage. */ - public UnaryCallSettings sendMessageSettings() { - return ((DataA2AServiceStubSettings) getStubSettings()).sendMessageSettings(); + /** Returns the object with the settings used for calls to createAssistantSession. */ + public UnaryCallSettings + createAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).createAssistantSessionSettings(); } - /** Returns the object with the settings used for calls to sendStreamingMessage. */ - public ServerStreamingCallSettings - sendStreamingMessageSettings() { - return ((DataA2AServiceStubSettings) getStubSettings()).sendStreamingMessageSettings(); + /** Returns the object with the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings deleteAssistantSessionSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).deleteAssistantSessionSettings(); } - /** Returns the object with the settings used for calls to getAgentCard. */ - public UnaryCallSettings getAgentCardSettings() { - return ((DataA2AServiceStubSettings) getStubSettings()).getAgentCardSettings(); + /** Returns the object with the settings used for calls to runAssistant. */ + public UnaryCallSettings runAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).runAssistantSettings(); + } + + /** Returns the object with the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings + chatAiAssistantSettings() { + return ((AssistantServiceStubSettings) getStubSettings()).chatAiAssistantSettings(); } /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { - return ((DataA2AServiceStubSettings) getStubSettings()).listLocationsSettings(); + return ((AssistantServiceStubSettings) getStubSettings()).listLocationsSettings(); } /** Returns the object with the settings used for calls to getLocation. */ public UnaryCallSettings getLocationSettings() { - return ((DataA2AServiceStubSettings) getStubSettings()).getLocationSettings(); + return ((AssistantServiceStubSettings) getStubSettings()).getLocationSettings(); } - public static final DataA2AServiceSettings create(DataA2AServiceStubSettings stub) + public static final AssistantServiceSettings create(AssistantServiceStubSettings stub) throws IOException { - return new DataA2AServiceSettings.Builder(stub.toBuilder()).build(); + return new AssistantServiceSettings.Builder(stub.toBuilder()).build(); } /** Returns a builder for the default ExecutorProvider for this service. */ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return DataA2AServiceStubSettings.defaultExecutorProviderBuilder(); + return AssistantServiceStubSettings.defaultExecutorProviderBuilder(); } /** Returns the default service endpoint. */ public static String getDefaultEndpoint() { - return DataA2AServiceStubSettings.getDefaultEndpoint(); + return AssistantServiceStubSettings.getDefaultEndpoint(); } /** Returns the default service scopes. */ public static List getDefaultServiceScopes() { - return DataA2AServiceStubSettings.getDefaultServiceScopes(); + return AssistantServiceStubSettings.getDefaultServiceScopes(); } /** Returns a builder for the default credentials for this service. */ public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return DataA2AServiceStubSettings.defaultCredentialsProviderBuilder(); + return AssistantServiceStubSettings.defaultCredentialsProviderBuilder(); } /** Returns a builder for the default gRPC ChannelProvider for this service. */ public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return DataA2AServiceStubSettings.defaultGrpcTransportProviderBuilder(); + return AssistantServiceStubSettings.defaultGrpcTransportProviderBuilder(); } /** Returns a builder for the default REST ChannelProvider for this service. */ @BetaApi public static InstantiatingHttpJsonChannelProvider.Builder defaultHttpJsonTransportProviderBuilder() { - return DataA2AServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); + return AssistantServiceStubSettings.defaultHttpJsonTransportProviderBuilder(); } public static TransportChannelProvider defaultTransportChannelProvider() { - return DataA2AServiceStubSettings.defaultTransportChannelProvider(); + return AssistantServiceStubSettings.defaultTransportChannelProvider(); } public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataA2AServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + return AssistantServiceStubSettings.defaultApiClientHeaderProviderBuilder(); } /** Returns a new gRPC builder for this class. */ @@ -190,39 +211,39 @@ public Builder toBuilder() { return new Builder(this); } - protected DataA2AServiceSettings(Builder settingsBuilder) throws IOException { + protected AssistantServiceSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); } - /** Builder for DataA2AServiceSettings. */ - public static class Builder extends ClientSettings.Builder { + /** Builder for AssistantServiceSettings. */ + public static class Builder extends ClientSettings.Builder { protected Builder() throws IOException { this(((ClientContext) null)); } protected Builder(@Nullable ClientContext clientContext) { - super(DataA2AServiceStubSettings.newBuilder(clientContext)); + super(AssistantServiceStubSettings.newBuilder(clientContext)); } - protected Builder(DataA2AServiceSettings settings) { + protected Builder(AssistantServiceSettings settings) { super(settings.getStubSettings().toBuilder()); } - protected Builder(DataA2AServiceStubSettings.Builder stubSettings) { + protected Builder(AssistantServiceStubSettings.Builder stubSettings) { super(stubSettings); } private static Builder createDefault() { - return new Builder(DataA2AServiceStubSettings.newBuilder()); + return new Builder(AssistantServiceStubSettings.newBuilder()); } private static Builder createHttpJsonDefault() { - return new Builder(DataA2AServiceStubSettings.newHttpJsonBuilder()); + return new Builder(AssistantServiceStubSettings.newHttpJsonBuilder()); } - public DataA2AServiceStubSettings.Builder getStubSettingsBuilder() { - return ((DataA2AServiceStubSettings.Builder) getStubSettings()); + public AssistantServiceStubSettings.Builder getStubSettingsBuilder() { + return ((AssistantServiceStubSettings.Builder) getStubSettings()); } /** @@ -237,21 +258,43 @@ public Builder applyToAllUnaryMethods( return this; } - /** Returns the builder for the settings used for calls to sendMessage. */ - public UnaryCallSettings.Builder - sendMessageSettings() { - return getStubSettingsBuilder().sendMessageSettings(); + /** Returns the builder for the settings used for calls to listAssistantSessions. */ + public PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return getStubSettingsBuilder().listAssistantSessionsSettings(); + } + + /** Returns the builder for the settings used for calls to getAssistantSession. */ + public UnaryCallSettings.Builder + getAssistantSessionSettings() { + return getStubSettingsBuilder().getAssistantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to createAssistantSession. */ + public UnaryCallSettings.Builder + createAssistantSessionSettings() { + return getStubSettingsBuilder().createAssistantSessionSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings.Builder + deleteAssistantSessionSettings() { + return getStubSettingsBuilder().deleteAssistantSessionSettings(); } - /** Returns the builder for the settings used for calls to sendStreamingMessage. */ - public ServerStreamingCallSettings.Builder - sendStreamingMessageSettings() { - return getStubSettingsBuilder().sendStreamingMessageSettings(); + /** Returns the builder for the settings used for calls to runAssistant. */ + public UnaryCallSettings.Builder + runAssistantSettings() { + return getStubSettingsBuilder().runAssistantSettings(); } - /** Returns the builder for the settings used for calls to getAgentCard. */ - public UnaryCallSettings.Builder getAgentCardSettings() { - return getStubSettingsBuilder().getAgentCardSettings(); + /** Returns the builder for the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings.Builder + chatAiAssistantSettings() { + return getStubSettingsBuilder().chatAiAssistantSettings(); } /** Returns the builder for the settings used for calls to listLocations. */ @@ -267,8 +310,8 @@ public UnaryCallSettings.Builder getLocationSettin } @Override - public DataA2AServiceSettings build() throws IOException { - return new DataA2AServiceSettings(this); + public AssistantServiceSettings build() throws IOException { + return new AssistantServiceSettings(this); } } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java index af277f8e7382..8591ad1f412b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceClient.java @@ -120,6 +120,44 @@ * * * + *

StreamChatAiAssistant + *

Runs Arc, the AI assistant, for the specified assistant session in a streaming fashion. + * + *

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

+ *
    + *
  • streamChatAiAssistantCallable() + *

+ * + * + * + *

CancelAssistantTurn + *

Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn running detached from any stream. A cancel landing on a task that does not host the turn preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

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

+ *
    + *
  • cancelAssistantTurn(CancelAssistantTurnRequest request) + *

+ *

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

+ *
    + *
  • cancelAssistantTurnCallable() + *

+ * + * + * + *

GenerateOnboardingSuggestions + *

Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting user (new / exploring / returning) from their assistant-session history in the app and returns suggestion chips (resume a session, continue work, or start something new) to render before any message is sent. + * + *

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

+ *
    + *
  • generateOnboardingSuggestions(GenerateOnboardingSuggestionsRequest request) + *

+ *

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

+ *
    + *
  • generateOnboardingSuggestionsCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. @@ -428,6 +466,178 @@ public final UnaryCallable runSessionCall return stub.bidiRunSessionCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Runs Arc, the AI assistant, for the specified assistant session in a streaming fashion. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   StreamChatAiAssistantRequest request =
+   *       StreamChatAiAssistantRequest.newBuilder()
+   *           .setName(
+   *               AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]")
+   *                   .toString())
+   *           .setMessage("message954925063")
+   *           .addAllAttachedGcsUris(new ArrayList())
+   *           .setContextToken("contextToken1106626954")
+   *           .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build())
+   *           .addAllClientCapabilities(
+   *               new ArrayList())
+   *           .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build())
+   *           .setResumeFromSequenceNumber(15486916)
+   *           .setAttachOnly(true)
+   *           .build();
+   *   ServerStream stream =
+   *       sessionServiceClient.streamChatAiAssistantCallable().call(request);
+   *   for (StreamChatAiAssistantResponse response : stream) {
+   *     // Do something when a response is received.
+   *   }
+   * }
+   * }
+ */ + public final ServerStreamingCallable + streamChatAiAssistantCallable() { + return stub.streamChatAiAssistantCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn + * running detached from any stream. A cancel landing on a task that does not host the turn + * preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   CancelAssistantTurnRequest request =
+   *       CancelAssistantTurnRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setTurnId("turnId-862429576")
+   *           .build();
+   *   CancelAssistantTurnResponse response = sessionServiceClient.cancelAssistantTurn(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 CancelAssistantTurnResponse cancelAssistantTurn(CancelAssistantTurnRequest request) { + return cancelAssistantTurnCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels the assistant session's in-flight turn, if any: the explicit user stop for a turn + * running detached from any stream. A cancel landing on a task that does not host the turn + * preempts it through the session turn epoch instead, ending it within one lease renewal. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   CancelAssistantTurnRequest request =
+   *       CancelAssistantTurnRequest.newBuilder()
+   *           .setName("name3373707")
+   *           .setTurnId("turnId-862429576")
+   *           .build();
+   *   ApiFuture future =
+   *       sessionServiceClient.cancelAssistantTurnCallable().futureCall(request);
+   *   // Do something.
+   *   CancelAssistantTurnResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + cancelAssistantTurnCallable() { + return stub.cancelAssistantTurnCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting + * user (new / exploring / returning) from their assistant-session history in the app and returns + * suggestion chips (resume a session, continue work, or start something new) to render before any + * message is sent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   GenerateOnboardingSuggestionsRequest request =
+   *       GenerateOnboardingSuggestionsRequest.newBuilder()
+   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setMaxSuggestions(618824852)
+   *           .build();
+   *   GenerateOnboardingSuggestionsResponse response =
+   *       sessionServiceClient.generateOnboardingSuggestions(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 GenerateOnboardingSuggestionsResponse generateOnboardingSuggestions( + GenerateOnboardingSuggestionsRequest request) { + return generateOnboardingSuggestionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates personalized onboarding suggestions for the Arc zero state: classifies the requesting + * user (new / exploring / returning) from their assistant-session history in the app and returns + * suggestion chips (resume a session, continue work, or start something new) to render before any + * message is sent. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (SessionServiceClient sessionServiceClient = SessionServiceClient.create()) {
+   *   GenerateOnboardingSuggestionsRequest request =
+   *       GenerateOnboardingSuggestionsRequest.newBuilder()
+   *           .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .setMaxSuggestions(618824852)
+   *           .build();
+   *   ApiFuture future =
+   *       sessionServiceClient.generateOnboardingSuggestionsCallable().futureCall(request);
+   *   // Do something.
+   *   GenerateOnboardingSuggestionsResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable() { + return stub.generateOnboardingSuggestionsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java index 561e295586b5..09ac62b2b202 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/SessionServiceSettings.java @@ -115,6 +115,25 @@ public UnaryCallSettings runSessionSettin return ((SessionServiceStubSettings) getStubSettings()).bidiRunSessionSettings(); } + /** Returns the object with the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings + streamChatAiAssistantSettings() { + return ((SessionServiceStubSettings) getStubSettings()).streamChatAiAssistantSettings(); + } + + /** Returns the object with the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings + cancelAssistantTurnSettings() { + return ((SessionServiceStubSettings) getStubSettings()).cancelAssistantTurnSettings(); + } + + /** Returns the object with the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return ((SessionServiceStubSettings) getStubSettings()).generateOnboardingSuggestionsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -255,6 +274,26 @@ public UnaryCallSettings.Builder runSessi return getStubSettingsBuilder().bidiRunSessionSettings(); } + /** Returns the builder for the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings() { + return getStubSettingsBuilder().streamChatAiAssistantSettings(); + } + + /** Returns the builder for the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings.Builder + cancelAssistantTurnSettings() { + return getStubSettingsBuilder().cancelAssistantTurnSettings(); + } + + /** Returns the builder for the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return getStubSettingsBuilder().generateOnboardingSuggestionsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json index 0ccc259b3886..9d272ba5c686 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json @@ -151,6 +151,9 @@ "UpdateApp": { "methods": ["updateApp", "updateApp", "updateAppCallable"] }, + "UpdateAppVersion": { + "methods": ["updateAppVersion", "updateAppVersion", "updateAppVersionCallable"] + }, "UpdateDeployment": { "methods": ["updateDeployment", "updateDeployment", "updateDeploymentCallable"] }, @@ -173,6 +176,39 @@ } } }, + "AssistantService": { + "clients": { + "grpc": { + "libraryClient": "AssistantServiceClient", + "rpcs": { + "ChatAiAssistant": { + "methods": ["chatAiAssistant", "chatAiAssistantCallable"] + }, + "CreateAssistantSession": { + "methods": ["createAssistantSession", "createAssistantSession", "createAssistantSession", "createAssistantSessionCallable"] + }, + "DeleteAssistantSession": { + "methods": ["deleteAssistantSession", "deleteAssistantSession", "deleteAssistantSession", "deleteAssistantSessionCallable"] + }, + "GetAssistantSession": { + "methods": ["getAssistantSession", "getAssistantSession", "getAssistantSession", "getAssistantSessionCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "ListAssistantSessions": { + "methods": ["listAssistantSessions", "listAssistantSessions", "listAssistantSessions", "listAssistantSessionsPagedCallable", "listAssistantSessionsCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "RunAssistant": { + "methods": ["runAssistant", "runAssistantCallable"] + } + } + } + } + }, "EvaluationService": { "clients": { "grpc": { @@ -301,6 +337,12 @@ "BidiRunSession": { "methods": ["bidiRunSessionCallable"] }, + "CancelAssistantTurn": { + "methods": ["cancelAssistantTurn", "cancelAssistantTurnCallable"] + }, + "GenerateOnboardingSuggestions": { + "methods": ["generateOnboardingSuggestions", "generateOnboardingSuggestionsCallable"] + }, "GetLocation": { "methods": ["getLocation", "getLocationCallable"] }, @@ -310,6 +352,9 @@ "RunSession": { "methods": ["runSession", "runSessionCallable"] }, + "StreamChatAiAssistant": { + "methods": ["streamChatAiAssistantCallable"] + }, "StreamRunSession": { "methods": ["streamRunSessionCallable"] } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java index bfb92bf06c85..007627d13e4e 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java @@ -38,6 +38,27 @@ * } * } * + *

======================= AssistantServiceClient ======================= + * + *

Service Description: The service that manages assistant-related resources in Customer + * Engagement Suite (CES). The assistant, Arc, is a conversational agent embedded in CES + * applications to help users with building their agents. + * + *

Sample for AssistantServiceClient: + * + *

{@code
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+ * try (AssistantServiceClient assistantServiceClient = AssistantServiceClient.create()) {
+ *   AssistantSessionName name =
+ *       AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]");
+ *   AssistantSession response = assistantServiceClient.getAssistantSession(name);
+ * }
+ * }
+ * *

======================= EvaluationServiceClient ======================= * *

Service Description: EvaluationService exposes methods to perform evaluation for the CES app. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java index a3e28884d741..df4a65bd9e3f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStub.java @@ -105,6 +105,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -395,6 +396,10 @@ public UnaryCallable createAppVersionCallab throw new UnsupportedOperationException("Not implemented: createAppVersionCallable()"); } + public UnaryCallable updateAppVersionCallable() { + throw new UnsupportedOperationException("Not implemented: updateAppVersionCallable()"); + } + public UnaryCallable deleteAppVersionCallable() { throw new UnsupportedOperationException("Not implemented: deleteAppVersionCallable()"); } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java index 57a60ada8bd6..e00393e11516 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AgentServiceStubSettings.java @@ -132,6 +132,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -318,6 +319,7 @@ public class AgentServiceStubSettings extends StubSettings getAppVersionSettings; private final UnaryCallSettings createAppVersionSettings; + private final UnaryCallSettings updateAppVersionSettings; private final UnaryCallSettings deleteAppVersionSettings; private final UnaryCallSettings restoreAppVersionSettings; private final OperationCallSettings< @@ -1192,6 +1194,11 @@ public UnaryCallSettings createAppVersionSe return createAppVersionSettings; } + /** Returns the object with the settings used for calls to updateAppVersion. */ + public UnaryCallSettings updateAppVersionSettings() { + return updateAppVersionSettings; + } + /** Returns the object with the settings used for calls to deleteAppVersion. */ public UnaryCallSettings deleteAppVersionSettings() { return deleteAppVersionSettings; @@ -1409,6 +1416,7 @@ protected AgentServiceStubSettings(Builder settingsBuilder) throws IOException { listAppVersionsSettings = settingsBuilder.listAppVersionsSettings().build(); getAppVersionSettings = settingsBuilder.getAppVersionSettings().build(); createAppVersionSettings = settingsBuilder.createAppVersionSettings().build(); + updateAppVersionSettings = settingsBuilder.updateAppVersionSettings().build(); deleteAppVersionSettings = settingsBuilder.deleteAppVersionSettings().build(); restoreAppVersionSettings = settingsBuilder.restoreAppVersionSettings().build(); restoreAppVersionOperationSettings = @@ -1522,6 +1530,8 @@ public static class Builder extends StubSettings.Builder getAppVersionSettings; private final UnaryCallSettings.Builder createAppVersionSettings; + private final UnaryCallSettings.Builder + updateAppVersionSettings; private final UnaryCallSettings.Builder deleteAppVersionSettings; private final UnaryCallSettings.Builder @@ -1635,6 +1645,7 @@ protected Builder(@Nullable ClientContext clientContext) { listAppVersionsSettings = PagedCallSettings.newBuilder(LIST_APP_VERSIONS_PAGE_STR_FACT); getAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreAppVersionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreAppVersionOperationSettings = OperationCallSettings.newBuilder(); @@ -1693,6 +1704,7 @@ protected Builder(@Nullable ClientContext clientContext) { listAppVersionsSettings, getAppVersionSettings, createAppVersionSettings, + updateAppVersionSettings, deleteAppVersionSettings, restoreAppVersionSettings, generateAppResourceSettings, @@ -1758,6 +1770,7 @@ protected Builder(AgentServiceStubSettings settings) { listAppVersionsSettings = settings.listAppVersionsSettings.toBuilder(); getAppVersionSettings = settings.getAppVersionSettings.toBuilder(); createAppVersionSettings = settings.createAppVersionSettings.toBuilder(); + updateAppVersionSettings = settings.updateAppVersionSettings.toBuilder(); deleteAppVersionSettings = settings.deleteAppVersionSettings.toBuilder(); restoreAppVersionSettings = settings.restoreAppVersionSettings.toBuilder(); restoreAppVersionOperationSettings = settings.restoreAppVersionOperationSettings.toBuilder(); @@ -1817,6 +1830,7 @@ protected Builder(AgentServiceStubSettings settings) { listAppVersionsSettings, getAppVersionSettings, createAppVersionSettings, + updateAppVersionSettings, deleteAppVersionSettings, restoreAppVersionSettings, generateAppResourceSettings, @@ -2081,6 +2095,11 @@ 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 + .updateAppVersionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .deleteAppVersionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2585,6 +2604,12 @@ public UnaryCallSettings.Builder getAppVersion return createAppVersionSettings; } + /** Returns the builder for the settings used for calls to updateAppVersion. */ + public UnaryCallSettings.Builder + updateAppVersionSettings() { + return updateAppVersionSettings; + } + /** Returns the builder for the settings used for calls to deleteAppVersion. */ public UnaryCallSettings.Builder deleteAppVersionSettings() { return deleteAppVersionSettings; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java new file mode 100644 index 000000000000..f1b908a519b4 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStub.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.protobuf.Empty; +import javax.annotation.Generated; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AssistantServiceStub implements BackgroundResource { + + public UnaryCallable + listAssistantSessionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAssistantSessionsPagedCallable()"); + } + + public UnaryCallable + listAssistantSessionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAssistantSessionsCallable()"); + } + + public UnaryCallable getAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: getAssistantSessionCallable()"); + } + + public UnaryCallable + createAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: createAssistantSessionCallable()"); + } + + public UnaryCallable deleteAssistantSessionCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAssistantSessionCallable()"); + } + + public UnaryCallable runAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: runAssistantCallable()"); + } + + public UnaryCallable chatAiAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: chatAiAssistantCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java similarity index 54% rename from java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStubSettings.java rename to java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java index 8de9acdc7c10..e6b9a0790346 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/AssistantServiceStubSettings.java @@ -14,9 +14,10 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta.stub; +package com.google.cloud.ces.v1beta.stub; -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; @@ -40,17 +41,21 @@ 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.ServerStreamingCallSettings; 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.geminidataanalytics.v1beta.AgentCard; -import com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse; -import com.google.cloud.geminidataanalytics.v1beta.StreamResponse; +import com.google.cloud.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -59,6 +64,7 @@ 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.time.Duration; import java.util.List; @@ -68,13 +74,12 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * Settings class to configure an instance of {@link DataA2AServiceStub}. + * Settings class to configure an instance of {@link AssistantServiceStub}. * *

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

    - *
  • The default service address (geminidataanalytics.googleapis.com) and default port (443) are - * used. + *
  • The default service address (ces.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. *
@@ -84,7 +89,7 @@ * *

For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of sendMessage: + * of getAssistantSession: * *

{@code
  * // This snippet has been automatically generated and should be regarded as a code template only.
@@ -92,13 +97,13 @@
  * // - It may require correct/in-range values for request initialization.
  * // - It may require specifying regional endpoints when creating the service client as shown in
  * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
- * DataA2AServiceStubSettings.Builder dataA2AServiceSettingsBuilder =
- *     DataA2AServiceStubSettings.newBuilder();
- * dataA2AServiceSettingsBuilder
- *     .sendMessageSettings()
+ * AssistantServiceStubSettings.Builder assistantServiceSettingsBuilder =
+ *     AssistantServiceStubSettings.newBuilder();
+ * assistantServiceSettingsBuilder
+ *     .getAssistantSessionSettings()
  *     .setRetrySettings(
- *         dataA2AServiceSettingsBuilder
- *             .sendMessageSettings()
+ *         assistantServiceSettingsBuilder
+ *             .getAssistantSessionSettings()
  *             .getRetrySettings()
  *             .toBuilder()
  *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
@@ -110,7 +115,7 @@
  *             .setRpcTimeoutMultiplier(1.5)
  *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
  *             .build());
- * DataA2AServiceStubSettings dataA2AServiceSettings = dataA2AServiceSettingsBuilder.build();
+ * AssistantServiceStubSettings assistantServiceSettings = assistantServiceSettingsBuilder.build();
  * }
* * Please refer to the [Client Side Retry @@ -121,20 +126,72 @@ @BetaApi @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") -public class DataA2AServiceStubSettings extends StubSettings { +public class AssistantServiceStubSettings 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(); + ImmutableList.builder() + .add("https://www.googleapis.com/auth/ces") + .add("https://www.googleapis.com/auth/cloud-platform") + .build(); - private final UnaryCallSettings sendMessageSettings; - private final ServerStreamingCallSettings - sendStreamingMessageSettings; - private final UnaryCallSettings getAgentCardSettings; + private final PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings; + private final UnaryCallSettings + getAssistantSessionSettings; + private final UnaryCallSettings + createAssistantSessionSettings; + private final UnaryCallSettings + deleteAssistantSessionSettings; + private final UnaryCallSettings runAssistantSettings; + private final UnaryCallSettings + chatAiAssistantSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; private final UnaryCallSettings getLocationSettings; + private static final PagedListDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + LIST_ASSISTANT_SESSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAssistantSessionsRequest injectToken( + ListAssistantSessionsRequest payload, String token) { + return ListAssistantSessionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAssistantSessionsRequest injectPageSize( + ListAssistantSessionsRequest payload, int pageSize) { + return ListAssistantSessionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAssistantSessionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAssistantSessionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListAssistantSessionsResponse payload) { + return payload.getAssistantSessionsList(); + } + }; + private static final PagedListDescriptor LIST_LOCATIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -169,6 +226,30 @@ public Iterable extractResources(ListLocationsResponse payload) { } }; + private static final PagedListResponseFactory< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + LIST_ASSISTANT_SESSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAssistantSessionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListAssistantSessionsRequest, ListAssistantSessionsResponse, AssistantSession> + pageContext = + PageContext.create( + callable, LIST_ASSISTANT_SESSIONS_PAGE_STR_DESC, request, context); + return ListAssistantSessionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> LIST_LOCATIONS_PAGE_STR_FACT = @@ -186,20 +267,41 @@ public ApiFuture getFuturePagedResponse( } }; - /** Returns the object with the settings used for calls to sendMessage. */ - public UnaryCallSettings sendMessageSettings() { - return sendMessageSettings; + /** Returns the object with the settings used for calls to listAssistantSessions. */ + public PagedCallSettings< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return listAssistantSessionsSettings; } - /** Returns the object with the settings used for calls to sendStreamingMessage. */ - public ServerStreamingCallSettings - sendStreamingMessageSettings() { - return sendStreamingMessageSettings; + /** Returns the object with the settings used for calls to getAssistantSession. */ + public UnaryCallSettings + getAssistantSessionSettings() { + return getAssistantSessionSettings; } - /** Returns the object with the settings used for calls to getAgentCard. */ - public UnaryCallSettings getAgentCardSettings() { - return getAgentCardSettings; + /** Returns the object with the settings used for calls to createAssistantSession. */ + public UnaryCallSettings + createAssistantSessionSettings() { + return createAssistantSessionSettings; + } + + /** Returns the object with the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings deleteAssistantSessionSettings() { + return deleteAssistantSessionSettings; + } + + /** Returns the object with the settings used for calls to runAssistant. */ + public UnaryCallSettings runAssistantSettings() { + return runAssistantSettings; + } + + /** Returns the object with the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings + chatAiAssistantSettings() { + return chatAiAssistantSettings; } /** Returns the object with the settings used for calls to listLocations. */ @@ -213,16 +315,16 @@ public UnaryCallSettings getLocationSettings() { return getLocationSettings; } - public DataA2AServiceStub createStub() throws IOException { + public AssistantServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcDataA2AServiceStub.create(this); + return GrpcAssistantServiceStub.create(this); } if (getTransportChannelProvider() .getTransportName() .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { - return HttpJsonDataA2AServiceStub.create(this); + return HttpJsonAssistantServiceStub.create(this); } throw new UnsupportedOperationException( String.format( @@ -232,7 +334,7 @@ public DataA2AServiceStub createStub() throws IOException { /** Returns the default service name. */ @Override public String getServiceName() { - return "geminidataanalytics"; + return "ces"; } /** Returns a builder for the default ExecutorProvider for this service. */ @@ -243,12 +345,12 @@ public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuild /** Returns the default service endpoint. */ @ObsoleteApi("Use getEndpoint() instead") public static String getDefaultEndpoint() { - return "geminidataanalytics.googleapis.com:443"; + return "ces.googleapis.com:443"; } /** Returns the default mTLS service endpoint. */ public static String getDefaultMtlsEndpoint() { - return "geminidataanalytics.mtls.googleapis.com:443"; + return "ces.mtls.googleapis.com:443"; } /** Returns the default service scopes. */ @@ -283,7 +385,7 @@ public static TransportChannelProvider defaultTransportChannelProvider() { public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataA2AServiceStubSettings.class)) + "gapic", GaxProperties.getLibraryVersion(AssistantServiceStubSettings.class)) .setTransportToken( GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); } @@ -291,14 +393,14 @@ public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProvider public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { return ApiClientHeaderProvider.newBuilder() .setGeneratedLibToken( - "gapic", GaxProperties.getLibraryVersion(DataA2AServiceStubSettings.class)) + "gapic", GaxProperties.getLibraryVersion(AssistantServiceStubSettings.class)) .setTransportToken( GaxHttpJsonProperties.getHttpJsonTokenName(), GaxHttpJsonProperties.getHttpJsonVersion()); } public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return DataA2AServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + return AssistantServiceStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); } /** Returns a new gRPC builder for this class. */ @@ -321,12 +423,15 @@ public Builder toBuilder() { return new Builder(this); } - protected DataA2AServiceStubSettings(Builder settingsBuilder) throws IOException { + protected AssistantServiceStubSettings(Builder settingsBuilder) throws IOException { super(settingsBuilder); - sendMessageSettings = settingsBuilder.sendMessageSettings().build(); - sendStreamingMessageSettings = settingsBuilder.sendStreamingMessageSettings().build(); - getAgentCardSettings = settingsBuilder.getAgentCardSettings().build(); + listAssistantSessionsSettings = settingsBuilder.listAssistantSessionsSettings().build(); + getAssistantSessionSettings = settingsBuilder.getAssistantSessionSettings().build(); + createAssistantSessionSettings = settingsBuilder.createAssistantSessionSettings().build(); + deleteAssistantSessionSettings = settingsBuilder.deleteAssistantSessionSettings().build(); + runAssistantSettings = settingsBuilder.runAssistantSettings().build(); + chatAiAssistantSettings = settingsBuilder.chatAiAssistantSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -334,20 +439,30 @@ protected DataA2AServiceStubSettings(Builder settingsBuilder) throws IOException @Override protected LibraryMetadata getLibraryMetadata() { return LibraryMetadata.newBuilder() - .setArtifactName("com.google.cloud:google-cloud-geminidataanalytics") + .setArtifactName("com.google.cloud:google-cloud-ces") .setRepository("googleapis/google-cloud-java") .setVersion(Version.VERSION) .build(); } - /** Builder for DataA2AServiceStubSettings. */ - public static class Builder extends StubSettings.Builder { + /** Builder for AssistantServiceStubSettings. */ + public static class Builder extends StubSettings.Builder { private final ImmutableList> unaryMethodSettingsBuilders; - private final UnaryCallSettings.Builder - sendMessageSettings; - private final ServerStreamingCallSettings.Builder - sendStreamingMessageSettings; - private final UnaryCallSettings.Builder getAgentCardSettings; + private final PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings; + private final UnaryCallSettings.Builder + getAssistantSessionSettings; + private final UnaryCallSettings.Builder + createAssistantSessionSettings; + private final UnaryCallSettings.Builder + deleteAssistantSessionSettings; + private final UnaryCallSettings.Builder + runAssistantSettings; + private final UnaryCallSettings.Builder + chatAiAssistantSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -360,7 +475,14 @@ public static class Builder extends StubSettings.BuildernewArrayList(StatusCode.Code.UNAVAILABLE))); + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); + definitions.put( + "retry_policy_3_codes", + ImmutableSet.copyOf( + Lists.newArrayList( + StatusCode.Code.DEADLINE_EXCEEDED, StatusCode.Code.UNAVAILABLE))); RETRYABLE_CODE_DEFINITIONS = definitions.build(); } @@ -371,15 +493,26 @@ public static class Builder extends StubSettings.Builder>of( - sendMessageSettings, - getAgentCardSettings, + listAssistantSessionsSettings, + getAssistantSessionSettings, + createAssistantSessionSettings, + deleteAssistantSessionSettings, + runAssistantSettings, + chatAiAssistantSettings, listLocationsSettings, getLocationSettings); initDefaults(this); } - protected Builder(DataA2AServiceStubSettings settings) { + protected Builder(AssistantServiceStubSettings settings) { super(settings); - sendMessageSettings = settings.sendMessageSettings.toBuilder(); - sendStreamingMessageSettings = settings.sendStreamingMessageSettings.toBuilder(); - getAgentCardSettings = settings.getAgentCardSettings.toBuilder(); + listAssistantSessionsSettings = settings.listAssistantSessionsSettings.toBuilder(); + getAssistantSessionSettings = settings.getAssistantSessionSettings.toBuilder(); + createAssistantSessionSettings = settings.createAssistantSessionSettings.toBuilder(); + deleteAssistantSessionSettings = settings.deleteAssistantSessionSettings.toBuilder(); + runAssistantSettings = settings.runAssistantSettings.toBuilder(); + chatAiAssistantSettings = settings.chatAiAssistantSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - sendMessageSettings, - getAgentCardSettings, + listAssistantSessionsSettings, + getAssistantSessionSettings, + createAssistantSessionSettings, + deleteAssistantSessionSettings, + runAssistantSettings, + chatAiAssistantSettings, listLocationsSettings, getLocationSettings); } @@ -448,20 +596,35 @@ private static Builder createHttpJsonDefault() { private static Builder initDefaults(Builder builder) { builder - .sendMessageSettings() + .listAssistantSessionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getAssistantSessionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAssistantSessionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .sendStreamingMessageSettings() + .deleteAssistantSessionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); builder - .getAgentCardSettings() + .runAssistantSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .chatAiAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_3_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -490,21 +653,43 @@ public Builder applyToAllUnaryMethods( return unaryMethodSettingsBuilders; } - /** Returns the builder for the settings used for calls to sendMessage. */ - public UnaryCallSettings.Builder - sendMessageSettings() { - return sendMessageSettings; + /** Returns the builder for the settings used for calls to listAssistantSessions. */ + public PagedCallSettings.Builder< + ListAssistantSessionsRequest, + ListAssistantSessionsResponse, + ListAssistantSessionsPagedResponse> + listAssistantSessionsSettings() { + return listAssistantSessionsSettings; + } + + /** Returns the builder for the settings used for calls to getAssistantSession. */ + public UnaryCallSettings.Builder + getAssistantSessionSettings() { + return getAssistantSessionSettings; + } + + /** Returns the builder for the settings used for calls to createAssistantSession. */ + public UnaryCallSettings.Builder + createAssistantSessionSettings() { + return createAssistantSessionSettings; + } + + /** Returns the builder for the settings used for calls to deleteAssistantSession. */ + public UnaryCallSettings.Builder + deleteAssistantSessionSettings() { + return deleteAssistantSessionSettings; } - /** Returns the builder for the settings used for calls to sendStreamingMessage. */ - public ServerStreamingCallSettings.Builder - sendStreamingMessageSettings() { - return sendStreamingMessageSettings; + /** Returns the builder for the settings used for calls to runAssistant. */ + public UnaryCallSettings.Builder + runAssistantSettings() { + return runAssistantSettings; } - /** Returns the builder for the settings used for calls to getAgentCard. */ - public UnaryCallSettings.Builder getAgentCardSettings() { - return getAgentCardSettings; + /** Returns the builder for the settings used for calls to chatAiAssistant. */ + public UnaryCallSettings.Builder + chatAiAssistantSettings() { + return chatAiAssistantSettings; } /** Returns the builder for the settings used for calls to listLocations. */ @@ -520,8 +705,8 @@ public UnaryCallSettings.Builder getLocationSettin } @Override - public DataA2AServiceStubSettings build() throws IOException { - return new DataA2AServiceStubSettings(this); + public AssistantServiceStubSettings build() throws IOException { + return new AssistantServiceStubSettings(this); } } } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java index f3a01ce1b74b..f934677dabe8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAgentServiceStub.java @@ -110,6 +110,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -610,6 +611,17 @@ public class GrpcAgentServiceStub extends AgentServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAppVersionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AgentService/UpdateAppVersion") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAppVersionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AppVersion.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteAppVersionMethodDescriptor = MethodDescriptor.newBuilder() @@ -764,6 +776,7 @@ public class GrpcAgentServiceStub extends AgentServiceStub { listAppVersionsPagedCallable; private final UnaryCallable getAppVersionCallable; private final UnaryCallable createAppVersionCallable; + private final UnaryCallable updateAppVersionCallable; private final UnaryCallable deleteAppVersionCallable; private final UnaryCallable restoreAppVersionCallable; private final OperationCallable< @@ -1333,6 +1346,17 @@ protected GrpcAgentServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateAppVersionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAppVersionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "app_version.name", String.valueOf(request.getAppVersion().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings deleteAppVersionTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteAppVersionMethodDescriptor) @@ -1617,6 +1641,9 @@ protected GrpcAgentServiceStub( this.createAppVersionCallable = callableFactory.createUnaryCallable( createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.updateAppVersionCallable = + callableFactory.createUnaryCallable( + updateAppVersionTransportSettings, settings.updateAppVersionSettings(), clientContext); this.deleteAppVersionCallable = callableFactory.createUnaryCallable( deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); @@ -1981,6 +2008,11 @@ public UnaryCallable createAppVersionCallab return createAppVersionCallable; } + @Override + public UnaryCallable updateAppVersionCallable() { + return updateAppVersionCallable; + } + @Override public UnaryCallable deleteAppVersionCallable() { return deleteAppVersionCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataA2AServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java similarity index 95% rename from java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataA2AServiceCallableFactory.java rename to java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java index a7efd0812237..56213f4f7b5c 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/GrpcDataA2AServiceCallableFactory.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceCallableFactory.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta.stub; +package com.google.cloud.ces.v1beta.stub; import com.google.api.core.BetaApi; import com.google.api.gax.grpc.GrpcCallSettings; @@ -39,14 +39,14 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * gRPC callable factory implementation for the DataA2AService service API. + * gRPC callable factory implementation for the AssistantService service API. * *

This class is for advanced usage. */ @NullMarked @BetaApi @Generated("by gapic-generator-java") -public class GrpcDataA2AServiceCallableFactory implements GrpcStubCallableFactory { +public class GrpcAssistantServiceCallableFactory implements GrpcStubCallableFactory { @Override public UnaryCallable createUnaryCallable( diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java new file mode 100644 index 000000000000..5f02fd56f1f2 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcAssistantServiceStub.java @@ -0,0 +1,443 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAssistantServiceStub extends AssistantServiceStub { + private static final MethodDescriptor + listAssistantSessionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ListAssistantSessions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAssistantSessionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAssistantSessionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/GetAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AssistantSession.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + createAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/CreateAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AssistantSession.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAssistantSessionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/DeleteAssistantSession") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAssistantSessionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + runAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/RunAssistant") + .setRequestMarshaller(ProtoUtils.marshaller(RunAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(RunAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + chatAiAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ChatAiAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(ChatAiAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ChatAiAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + listAssistantSessionsCallable; + private final UnaryCallable + listAssistantSessionsPagedCallable; + private final UnaryCallable + getAssistantSessionCallable; + private final UnaryCallable + createAssistantSessionCallable; + private final UnaryCallable deleteAssistantSessionCallable; + private final UnaryCallable runAssistantCallable; + private final UnaryCallable + chatAiAssistantCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new GrpcAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAssistantServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAssistantServiceStub( + AssistantServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, 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 GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcAssistantServiceStub, 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 GrpcAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + listAssistantSessionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAssistantSessionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + createAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings deleteAssistantSessionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantSessionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings runAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(runAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + GrpcCallSettings + chatAiAssistantTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(chatAiAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAssistantSessionsCallable = + callableFactory.createUnaryCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.listAssistantSessionsPagedCallable = + callableFactory.createPagedCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.getAssistantSessionCallable = + callableFactory.createUnaryCallable( + getAssistantSessionTransportSettings, + settings.getAssistantSessionSettings(), + clientContext); + this.createAssistantSessionCallable = + callableFactory.createUnaryCallable( + createAssistantSessionTransportSettings, + settings.createAssistantSessionSettings(), + clientContext); + this.deleteAssistantSessionCallable = + callableFactory.createUnaryCallable( + deleteAssistantSessionTransportSettings, + settings.deleteAssistantSessionSettings(), + clientContext); + this.runAssistantCallable = + callableFactory.createUnaryCallable( + runAssistantTransportSettings, settings.runAssistantSettings(), clientContext); + this.chatAiAssistantCallable = + callableFactory.createUnaryCallable( + chatAiAssistantTransportSettings, settings.chatAiAssistantSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable + listAssistantSessionsCallable() { + return listAssistantSessionsCallable; + } + + @Override + public UnaryCallable + listAssistantSessionsPagedCallable() { + return listAssistantSessionsPagedCallable; + } + + @Override + public UnaryCallable getAssistantSessionCallable() { + return getAssistantSessionCallable; + } + + @Override + public UnaryCallable + createAssistantSessionCallable() { + return createAssistantSessionCallable; + } + + @Override + public UnaryCallable deleteAssistantSessionCallable() { + return deleteAssistantSessionCallable; + } + + @Override + public UnaryCallable runAssistantCallable() { + return runAssistantCallable; + } + + @Override + public UnaryCallable chatAiAssistantCallable() { + return chatAiAssistantCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java index 18e530bc749d..83b3b3c0bfa8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcSessionServiceStub.java @@ -31,8 +31,14 @@ import com.google.api.pathtemplate.PathTemplate; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -87,6 +93,46 @@ public class GrpcSessionServiceStub extends SessionServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + streamChatAiAssistantMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName("google.cloud.ces.v1beta.SessionService/StreamChatAiAssistant") + .setRequestMarshaller( + ProtoUtils.marshaller(StreamChatAiAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(StreamChatAiAssistantResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + cancelAssistantTurnMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.SessionService/CancelAssistantTurn") + .setRequestMarshaller( + ProtoUtils.marshaller(CancelAssistantTurnRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(CancelAssistantTurnResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.ces.v1beta.SessionService/GenerateOnboardingSuggestions") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateOnboardingSuggestionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateOnboardingSuggestionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -113,6 +159,13 @@ public class GrpcSessionServiceStub extends SessionServiceStub { streamRunSessionCallable; private final BidiStreamingCallable bidiRunSessionCallable; + private final ServerStreamingCallable + streamChatAiAssistantCallable; + private final UnaryCallable + cancelAssistantTurnCallable; + private final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -201,6 +254,44 @@ protected GrpcSessionServiceStub( return builder.build(); }) .build(); + GrpcCallSettings + streamChatAiAssistantTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(streamChatAiAssistantMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + cancelAssistantTurnTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(cancelAssistantTurnMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + generateOnboardingSuggestionsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(generateOnboardingSuggestionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -231,6 +322,21 @@ protected GrpcSessionServiceStub( this.bidiRunSessionCallable = callableFactory.createBidiStreamingCallable( bidiRunSessionTransportSettings, settings.bidiRunSessionSettings(), clientContext); + this.streamChatAiAssistantCallable = + callableFactory.createServerStreamingCallable( + streamChatAiAssistantTransportSettings, + settings.streamChatAiAssistantSettings(), + clientContext); + this.cancelAssistantTurnCallable = + callableFactory.createUnaryCallable( + cancelAssistantTurnTransportSettings, + settings.cancelAssistantTurnSettings(), + clientContext); + this.generateOnboardingSuggestionsCallable = + callableFactory.createUnaryCallable( + generateOnboardingSuggestionsTransportSettings, + settings.generateOnboardingSuggestionsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -265,6 +371,24 @@ public ServerStreamingCallable streamRunS return bidiRunSessionCallable; } + @Override + public ServerStreamingCallable + streamChatAiAssistantCallable() { + return streamChatAiAssistantCallable; + } + + @Override + public UnaryCallable + cancelAssistantTurnCallable() { + return cancelAssistantTurnCallable; + } + + @Override + public UnaryCallable + generateOnboardingSuggestionsCallable() { + return generateOnboardingSuggestionsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java index e45237eb31dd..fb2dec0228b8 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAgentServiceStub.java @@ -118,6 +118,7 @@ import com.google.cloud.ces.v1beta.Toolset; import com.google.cloud.ces.v1beta.UpdateAgentRequest; import com.google.cloud.ces.v1beta.UpdateAppRequest; +import com.google.cloud.ces.v1beta.UpdateAppVersionRequest; import com.google.cloud.ces.v1beta.UpdateDeploymentRequest; import com.google.cloud.ces.v1beta.UpdateExampleRequest; import com.google.cloud.ces.v1beta.UpdateGuardrailRequest; @@ -1851,6 +1852,45 @@ public class HttpJsonAgentServiceStub extends AgentServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + updateAppVersionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AgentService/UpdateAppVersion") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{appVersion.name=projects/*/locations/*/apps/*/versions/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "appVersion.name", request.getAppVersion().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("appVersion", request.getAppVersion(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AppVersion.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteAppVersionMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -2184,6 +2224,7 @@ public class HttpJsonAgentServiceStub extends AgentServiceStub { listAppVersionsPagedCallable; private final UnaryCallable getAppVersionCallable; private final UnaryCallable createAppVersionCallable; + private final UnaryCallable updateAppVersionCallable; private final UnaryCallable deleteAppVersionCallable; private final UnaryCallable restoreAppVersionCallable; private final OperationCallable< @@ -2827,6 +2868,18 @@ protected HttpJsonAgentServiceStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateAppVersionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAppVersionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "app_version.name", String.valueOf(request.getAppVersion().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings deleteAppVersionTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteAppVersionMethodDescriptor) @@ -3120,6 +3173,9 @@ protected HttpJsonAgentServiceStub( this.createAppVersionCallable = callableFactory.createUnaryCallable( createAppVersionTransportSettings, settings.createAppVersionSettings(), clientContext); + this.updateAppVersionCallable = + callableFactory.createUnaryCallable( + updateAppVersionTransportSettings, settings.updateAppVersionSettings(), clientContext); this.deleteAppVersionCallable = callableFactory.createUnaryCallable( deleteAppVersionTransportSettings, settings.deleteAppVersionSettings(), clientContext); @@ -3217,6 +3273,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(listAppVersionsMethodDescriptor); methodDescriptors.add(getAppVersionMethodDescriptor); methodDescriptors.add(createAppVersionMethodDescriptor); + methodDescriptors.add(updateAppVersionMethodDescriptor); methodDescriptors.add(deleteAppVersionMethodDescriptor); methodDescriptors.add(restoreAppVersionMethodDescriptor); methodDescriptors.add(generateAppResourceMethodDescriptor); @@ -3543,6 +3600,11 @@ public UnaryCallable createAppVersionCallab return createAppVersionCallable; } + @Override + public UnaryCallable updateAppVersionCallable() { + return updateAppVersionCallable; + } + @Override public UnaryCallable deleteAppVersionCallable() { return deleteAppVersionCallable; diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceCallableFactory.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java similarity index 95% rename from java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceCallableFactory.java rename to java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java index bd195bb8c0b2..ee8bab260b6f 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceCallableFactory.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceCallableFactory.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta.stub; +package com.google.cloud.ces.v1beta.stub; import com.google.api.core.BetaApi; import com.google.api.gax.httpjson.HttpJsonCallSettings; @@ -37,14 +37,14 @@ // AUTO-GENERATED DOCUMENTATION AND CLASS. /** - * REST callable factory implementation for the DataA2AService service API. + * REST callable factory implementation for the AssistantService service API. * *

This class is for advanced usage. */ @NullMarked @BetaApi @Generated("by gapic-generator-java") -public class HttpJsonDataA2AServiceCallableFactory +public class HttpJsonAssistantServiceCallableFactory implements HttpJsonStubCallableFactory { @Override diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java new file mode 100644 index 000000000000..0988565e2310 --- /dev/null +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonAssistantServiceStub.java @@ -0,0 +1,667 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.stub; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.AssistantSession; +import com.google.cloud.ces.v1beta.ChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.ChatAiAssistantResponse; +import com.google.cloud.ces.v1beta.CreateAssistantSessionRequest; +import com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest; +import com.google.cloud.ces.v1beta.GetAssistantSessionRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsRequest; +import com.google.cloud.ces.v1beta.ListAssistantSessionsResponse; +import com.google.cloud.ces.v1beta.RunAssistantRequest; +import com.google.cloud.ces.v1beta.RunAssistantResponse; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +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; +import org.jspecify.annotations.NullMarked; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AssistantService service API. + * + *

This class is for advanced usage and reflects the underlying API directly. + */ +@NullMarked +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAssistantServiceStub extends AssistantServiceStub { + private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); + + private static final ApiMethodDescriptor< + ListAssistantSessionsRequest, ListAssistantSessionsResponse> + listAssistantSessionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ListAssistantSessions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions", + 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(ListAssistantSessionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/GetAssistantSession") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}", + 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(AssistantSession.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + createAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/CreateAssistantSession") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions", + 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(AssistantSession.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + deleteAssistantSessionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/DeleteAssistantSession") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}", + 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 + runAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/RunAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{app=projects/*/locations/*/apps/*}:runAssistant", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "app", request.getApp()); + 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().clearApp().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(RunAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + chatAiAssistantMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.AssistantService/ChatAiAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{app=projects/*/locations/*/apps/*}:chatAiAssistant", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "app", request.getApp()); + 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().clearApp().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ChatAiAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + listLocationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*}/locations", + 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(ListLocationsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + getLocationMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*}", + 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(Location.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable + listAssistantSessionsCallable; + private final UnaryCallable + listAssistantSessionsPagedCallable; + private final UnaryCallable + getAssistantSessionCallable; + private final UnaryCallable + createAssistantSessionCallable; + private final UnaryCallable deleteAssistantSessionCallable; + private final UnaryCallable runAssistantCallable; + private final UnaryCallable + chatAiAssistantCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAssistantServiceStub create(AssistantServiceStubSettings settings) + throws IOException { + return new HttpJsonAssistantServiceStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAssistantServiceStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAssistantServiceStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAssistantServiceStub( + AssistantServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, 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 HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAssistantServiceCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAssistantServiceStub, 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 HttpJsonAssistantServiceStub( + AssistantServiceStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + + HttpJsonCallSettings + listAssistantSessionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAssistantSessionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + getAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + createAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + deleteAssistantSessionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAssistantSessionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings runAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(runAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + HttpJsonCallSettings + chatAiAssistantTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(chatAiAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("app", String.valueOf(request.getApp())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getApp()) + .build(); + HttpJsonCallSettings + listLocationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings getLocationTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + + this.listAssistantSessionsCallable = + callableFactory.createUnaryCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.listAssistantSessionsPagedCallable = + callableFactory.createPagedCallable( + listAssistantSessionsTransportSettings, + settings.listAssistantSessionsSettings(), + clientContext); + this.getAssistantSessionCallable = + callableFactory.createUnaryCallable( + getAssistantSessionTransportSettings, + settings.getAssistantSessionSettings(), + clientContext); + this.createAssistantSessionCallable = + callableFactory.createUnaryCallable( + createAssistantSessionTransportSettings, + settings.createAssistantSessionSettings(), + clientContext); + this.deleteAssistantSessionCallable = + callableFactory.createUnaryCallable( + deleteAssistantSessionTransportSettings, + settings.deleteAssistantSessionSettings(), + clientContext); + this.runAssistantCallable = + callableFactory.createUnaryCallable( + runAssistantTransportSettings, settings.runAssistantSettings(), clientContext); + this.chatAiAssistantCallable = + callableFactory.createUnaryCallable( + chatAiAssistantTransportSettings, settings.chatAiAssistantSettings(), clientContext); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAssistantSessionsMethodDescriptor); + methodDescriptors.add(getAssistantSessionMethodDescriptor); + methodDescriptors.add(createAssistantSessionMethodDescriptor); + methodDescriptors.add(deleteAssistantSessionMethodDescriptor); + methodDescriptors.add(runAssistantMethodDescriptor); + methodDescriptors.add(chatAiAssistantMethodDescriptor); + methodDescriptors.add(listLocationsMethodDescriptor); + methodDescriptors.add(getLocationMethodDescriptor); + return methodDescriptors; + } + + @Override + public UnaryCallable + listAssistantSessionsCallable() { + return listAssistantSessionsCallable; + } + + @Override + public UnaryCallable + listAssistantSessionsPagedCallable() { + return listAssistantSessionsPagedCallable; + } + + @Override + public UnaryCallable getAssistantSessionCallable() { + return getAssistantSessionCallable; + } + + @Override + public UnaryCallable + createAssistantSessionCallable() { + return createAssistantSessionCallable; + } + + @Override + public UnaryCallable deleteAssistantSessionCallable() { + return deleteAssistantSessionCallable; + } + + @Override + public UnaryCallable runAssistantCallable() { + return runAssistantCallable; + } + + @Override + public UnaryCallable chatAiAssistantCallable() { + return chatAiAssistantCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @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-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java index be19367ad6f9..47b606e177df 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonSessionServiceStub.java @@ -35,8 +35,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -139,6 +145,124 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { .build()) .build(); + private static final ApiMethodDescriptor< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.SessionService/StreamChatAiAssistant") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}:streamChatAiAssistant", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(StreamChatAiAssistantResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + cancelAssistantTurnMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.SessionService/CancelAssistantTurn") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*/assistantSessions/*}:cancelAssistantTurn", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(CancelAssistantTurnResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsMethodDescriptor = + ApiMethodDescriptor + . + newBuilder() + .setFullMethodName( + "google.cloud.ces.v1beta.SessionService/GenerateOnboardingSuggestions") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{name=projects/*/locations/*/apps/*}:generateOnboardingSuggestions", + 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 -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearName().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance( + GenerateOnboardingSuggestionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -210,6 +334,13 @@ public class HttpJsonSessionServiceStub extends SessionServiceStub { private final UnaryCallable runSessionCallable; private final ServerStreamingCallable streamRunSessionCallable; + private final ServerStreamingCallable + streamChatAiAssistantCallable; + private final UnaryCallable + cancelAssistantTurnCallable; + private final UnaryCallable< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -279,6 +410,49 @@ protected HttpJsonSessionServiceStub( return builder.build(); }) .build(); + HttpJsonCallSettings + streamChatAiAssistantTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(streamChatAiAssistantMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + cancelAssistantTurnTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(cancelAssistantTurnMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsTransportSettings = + HttpJsonCallSettings + . + newBuilder() + .setMethodDescriptor(generateOnboardingSuggestionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -309,6 +483,21 @@ protected HttpJsonSessionServiceStub( this.streamRunSessionCallable = callableFactory.createServerStreamingCallable( streamRunSessionTransportSettings, settings.streamRunSessionSettings(), clientContext); + this.streamChatAiAssistantCallable = + callableFactory.createServerStreamingCallable( + streamChatAiAssistantTransportSettings, + settings.streamChatAiAssistantSettings(), + clientContext); + this.cancelAssistantTurnCallable = + callableFactory.createUnaryCallable( + cancelAssistantTurnTransportSettings, + settings.cancelAssistantTurnSettings(), + clientContext); + this.generateOnboardingSuggestionsCallable = + callableFactory.createUnaryCallable( + generateOnboardingSuggestionsTransportSettings, + settings.generateOnboardingSuggestionsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -328,6 +517,9 @@ public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); methodDescriptors.add(runSessionMethodDescriptor); methodDescriptors.add(streamRunSessionMethodDescriptor); + methodDescriptors.add(streamChatAiAssistantMethodDescriptor); + methodDescriptors.add(cancelAssistantTurnMethodDescriptor); + methodDescriptors.add(generateOnboardingSuggestionsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -343,6 +535,24 @@ public ServerStreamingCallable streamRunS return streamRunSessionCallable; } + @Override + public ServerStreamingCallable + streamChatAiAssistantCallable() { + return streamChatAiAssistantCallable; + } + + @Override + public UnaryCallable + cancelAssistantTurnCallable() { + return cancelAssistantTurnCallable; + } + + @Override + public UnaryCallable + generateOnboardingSuggestionsCallable() { + return generateOnboardingSuggestionsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java index 4b994d8e838b..15291d7e997d 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStub.java @@ -25,8 +25,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -58,6 +64,22 @@ public ServerStreamingCallable streamRunS throw new UnsupportedOperationException("Not implemented: bidiRunSessionCallable()"); } + public ServerStreamingCallable + streamChatAiAssistantCallable() { + throw new UnsupportedOperationException("Not implemented: streamChatAiAssistantCallable()"); + } + + public UnaryCallable + cancelAssistantTurnCallable() { + throw new UnsupportedOperationException("Not implemented: cancelAssistantTurnCallable()"); + } + + public UnaryCallable + generateOnboardingSuggestionsCallable() { + throw new UnsupportedOperationException( + "Not implemented: generateOnboardingSuggestionsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java index 379dd5d2ea1c..27d5c56ea3e3 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/SessionServiceStubSettings.java @@ -49,8 +49,14 @@ import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.ces.v1beta.BidiSessionClientMessage; import com.google.cloud.ces.v1beta.BidiSessionServerMessage; +import com.google.cloud.ces.v1beta.CancelAssistantTurnRequest; +import com.google.cloud.ces.v1beta.CancelAssistantTurnResponse; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest; +import com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse; import com.google.cloud.ces.v1beta.RunSessionRequest; import com.google.cloud.ces.v1beta.RunSessionResponse; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest; +import com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -133,6 +139,14 @@ public class SessionServiceStubSettings extends StubSettings bidiRunSessionSettings; + private final ServerStreamingCallSettings< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings; + private final UnaryCallSettings + cancelAssistantTurnSettings; + private final UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -206,6 +220,25 @@ public UnaryCallSettings runSessionSettin return bidiRunSessionSettings; } + /** Returns the object with the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings + streamChatAiAssistantSettings() { + return streamChatAiAssistantSettings; + } + + /** Returns the object with the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings + cancelAssistantTurnSettings() { + return cancelAssistantTurnSettings; + } + + /** Returns the object with the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return generateOnboardingSuggestionsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -331,6 +364,10 @@ protected SessionServiceStubSettings(Builder settingsBuilder) throws IOException runSessionSettings = settingsBuilder.runSessionSettings().build(); streamRunSessionSettings = settingsBuilder.streamRunSessionSettings().build(); bidiRunSessionSettings = settingsBuilder.bidiRunSessionSettings().build(); + streamChatAiAssistantSettings = settingsBuilder.streamChatAiAssistantSettings().build(); + cancelAssistantTurnSettings = settingsBuilder.cancelAssistantTurnSettings().build(); + generateOnboardingSuggestionsSettings = + settingsBuilder.generateOnboardingSuggestionsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -353,6 +390,14 @@ public static class Builder extends StubSettings.Builder bidiRunSessionSettings; + private final ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings; + private final UnaryCallSettings.Builder + cancelAssistantTurnSettings; + private final UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -426,12 +471,19 @@ protected Builder(@Nullable ClientContext clientContext) { runSessionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamRunSessionSettings = ServerStreamingCallSettings.newBuilder(); bidiRunSessionSettings = StreamingCallSettings.newBuilder(); + streamChatAiAssistantSettings = ServerStreamingCallSettings.newBuilder(); + cancelAssistantTurnSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + generateOnboardingSuggestionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - runSessionSettings, listLocationsSettings, getLocationSettings); + runSessionSettings, + cancelAssistantTurnSettings, + generateOnboardingSuggestionsSettings, + listLocationsSettings, + getLocationSettings); initDefaults(this); } @@ -441,12 +493,20 @@ protected Builder(SessionServiceStubSettings settings) { runSessionSettings = settings.runSessionSettings.toBuilder(); streamRunSessionSettings = settings.streamRunSessionSettings.toBuilder(); bidiRunSessionSettings = settings.bidiRunSessionSettings.toBuilder(); + streamChatAiAssistantSettings = settings.streamChatAiAssistantSettings.toBuilder(); + cancelAssistantTurnSettings = settings.cancelAssistantTurnSettings.toBuilder(); + generateOnboardingSuggestionsSettings = + settings.generateOnboardingSuggestionsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( - runSessionSettings, listLocationsSettings, getLocationSettings); + runSessionSettings, + cancelAssistantTurnSettings, + generateOnboardingSuggestionsSettings, + listLocationsSettings, + getLocationSettings); } private static Builder createDefault() { @@ -484,6 +544,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 + .streamChatAiAssistantSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_2_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_2_params")); + + builder + .cancelAssistantTurnSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .generateOnboardingSuggestionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -529,6 +604,26 @@ public UnaryCallSettings.Builder runSessi return bidiRunSessionSettings; } + /** Returns the builder for the settings used for calls to streamChatAiAssistant. */ + public ServerStreamingCallSettings.Builder< + StreamChatAiAssistantRequest, StreamChatAiAssistantResponse> + streamChatAiAssistantSettings() { + return streamChatAiAssistantSettings; + } + + /** Returns the builder for the settings used for calls to cancelAssistantTurn. */ + public UnaryCallSettings.Builder + cancelAssistantTurnSettings() { + return cancelAssistantTurnSettings; + } + + /** Returns the builder for the settings used for calls to generateOnboardingSuggestions. */ + public UnaryCallSettings.Builder< + GenerateOnboardingSuggestionsRequest, GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestionsSettings() { + return generateOnboardingSuggestionsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json index 58c0c3124e51..3e00226ee8d3 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json @@ -170,6 +170,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.FlowControlLimitExceededBehaviorProto", "queryAllDeclaredConstructors": true, @@ -512,6 +539,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.ces.v1beta.Action", "queryAllDeclaredConstructors": true, @@ -557,6 +602,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ActiveTurnInfo$Status", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Agent", "queryAllDeclaredConstructors": true, @@ -611,6 +683,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.Agent$RemoteA2aAgent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Agent$RemoteA2aAgent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Agent$RemoteDialogflowAgent", "queryAllDeclaredConstructors": true, @@ -665,6 +755,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.AgentRegistryDeployment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.AgentRegistryDeployment$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.AgentSkill", "queryAllDeclaredConstructors": true, @@ -1017,7 +1125,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioEncoding", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1026,7 +1134,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1035,7 +1143,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ArtifactChunk$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1044,7 +1152,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig", + "name": "com.google.cloud.ces.v1beta.AssistantChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1053,7 +1161,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1062,7 +1170,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BargeInConfig", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1071,7 +1179,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BargeInConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1080,7 +1188,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1089,7 +1197,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantConfirmationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1098,7 +1206,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse", + "name": "com.google.cloud.ces.v1beta.AssistantMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1107,7 +1215,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1116,7 +1224,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BearerTokenConfig", + "name": "com.google.cloud.ces.v1beta.AssistantOutput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1125,7 +1233,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BearerTokenConfig$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantOutput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1134,7 +1242,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage", + "name": "com.google.cloud.ces.v1beta.AssistantSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1143,7 +1251,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1152,7 +1260,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage", + "name": "com.google.cloud.ces.v1beta.AssistantSessionArtifact", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1161,7 +1269,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSessionArtifact$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1170,7 +1278,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings", + "name": "com.google.cloud.ces.v1beta.AssistantSessionState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1179,7 +1287,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1188,7 +1296,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Blob", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1197,7 +1305,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Blob$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Icon", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1206,7 +1314,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Callback", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$LoadSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1215,7 +1323,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Callback$Builder", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$LoadSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1224,7 +1332,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Changelog", + "name": "com.google.cloud.ces.v1beta.AssistantSuggestion$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1233,7 +1341,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Changelog$Builder", + "name": "com.google.cloud.ces.v1beta.AudioEncoding", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1242,7 +1350,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile", + "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1251,7 +1359,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$Builder", + "name": "com.google.cloud.ces.v1beta.AudioProcessingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1260,7 +1368,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$ChannelType", + "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1269,7 +1377,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig", + "name": "com.google.cloud.ces.v1beta.AudioRecordingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1278,7 +1386,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BargeInConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1287,7 +1395,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty", + "name": "com.google.cloud.ces.v1beta.BargeInConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1296,7 +1404,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Builder", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1305,7 +1413,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Persona", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1314,7 +1422,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1323,7 +1431,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BatchDeleteConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1332,7 +1440,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Modality", + "name": "com.google.cloud.ces.v1beta.BearerTokenConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1341,7 +1449,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings", + "name": "com.google.cloud.ces.v1beta.BearerTokenConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1350,7 +1458,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1359,7 +1467,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Theme", + "name": "com.google.cloud.ces.v1beta.BidiSessionClientMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1368,7 +1476,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig", + "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1377,7 +1485,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig$Builder", + "name": "com.google.cloud.ces.v1beta.BidiSessionServerMessage$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1386,7 +1494,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Chunk", + "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1395,7 +1503,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Chunk$Builder", + "name": "com.google.cloud.ces.v1beta.BigQueryExportSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1404,7 +1512,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations", + "name": "com.google.cloud.ces.v1beta.Blob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1413,7 +1521,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$Builder", + "name": "com.google.cloud.ces.v1beta.Blob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1422,7 +1530,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk", + "name": "com.google.cloud.ces.v1beta.Callback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1431,7 +1539,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk$Builder", + "name": "com.google.cloud.ces.v1beta.Callback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1440,7 +1548,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1449,7 +1557,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings$Builder", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1458,7 +1566,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientFunction", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1467,7 +1575,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ClientFunction$Builder", + "name": "com.google.cloud.ces.v1beta.CancelAssistantTurnResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1476,7 +1584,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings", + "name": "com.google.cloud.ces.v1beta.Changelog", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1485,7 +1593,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Changelog$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1494,7 +1602,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CodeBlock", + "name": "com.google.cloud.ces.v1beta.ChannelProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1503,7 +1611,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CodeBlock$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1512,7 +1620,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorTool", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$ChannelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1521,7 +1629,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorTool$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1530,7 +1638,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorToolset", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$InstagramConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1539,7 +1647,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConnectorToolset$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1548,7 +1656,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1557,7 +1665,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$PersonaProperty$Persona", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1566,7 +1674,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$ChannelType", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1575,7 +1683,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$InputType", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1584,7 +1692,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Source", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Modality", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1593,7 +1701,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Turn", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1602,7 +1710,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Conversation$Turn$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$SecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1611,7 +1719,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WebWidgetConfig$Theme", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1620,7 +1728,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1629,7 +1737,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAgentRequest", + "name": "com.google.cloud.ces.v1beta.ChannelProfile$WhatsAppConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1638,7 +1746,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1647,7 +1755,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppRequest", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1656,7 +1764,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1665,7 +1773,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.ChatAiAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1674,7 +1782,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Chunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1683,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.Chunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1692,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1701,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.Citations$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1710,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1719,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.Citations$CitedChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1728,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Citations$InlineCitation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1737,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Citations$InlineCitation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1746,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1755,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateExampleRequest", + "name": "com.google.cloud.ces.v1beta.ClientCertificateSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1764,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ClientFunction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1773,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.ClientFunction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1782,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1791,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.CloudLoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1800,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CodeBlock", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1809,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolRequest", + "name": "com.google.cloud.ces.v1beta.CodeBlock$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1818,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ConnectorTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1827,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest", + "name": "com.google.cloud.ces.v1beta.ConnectorTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1836,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ConnectorToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1845,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore", + "name": "com.google.cloud.ces.v1beta.ConnectorToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1854,7 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1863,7 +1971,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig", + "name": "com.google.cloud.ces.v1beta.Conversation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1872,7 +1980,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation$ChannelType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1881,7 +1989,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$DataStoreType", + "name": "com.google.cloud.ces.v1beta.Conversation$InputType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1890,7 +1998,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStore$DocumentProcessingMode", + "name": "com.google.cloud.ces.v1beta.Conversation$Source", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1899,7 +2007,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings", + "name": "com.google.cloud.ces.v1beta.Conversation$Turn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1908,7 +2016,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Conversation$Turn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1917,7 +2025,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine", + "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1926,7 +2034,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Builder", + "name": "com.google.cloud.ces.v1beta.ConversationLoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1935,7 +2043,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Type", + "name": "com.google.cloud.ces.v1beta.CreateAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1944,7 +2052,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool", + "name": "com.google.cloud.ces.v1beta.CreateAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1953,7 +2061,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1962,7 +2070,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1971,7 +2079,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1980,7 +2088,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec", + "name": "com.google.cloud.ces.v1beta.CreateAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1989,7 +2097,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", + "name": "com.google.cloud.ces.v1beta.CreateAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1998,7 +2106,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2007,7 +2115,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", + "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2016,7 +2124,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", + "name": "com.google.cloud.ces.v1beta.CreateDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2025,7 +2133,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2034,7 +2142,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2043,7 +2151,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +2160,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +2169,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$Builder", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +2178,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource", + "name": "com.google.cloud.ces.v1beta.CreateEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +2187,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource$Builder", + "name": "com.google.cloud.ces.v1beta.CreateExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +2196,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource", + "name": "com.google.cloud.ces.v1beta.CreateExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +2205,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource$Builder", + "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +2214,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$FilterParameterBehavior", + "name": "com.google.cloud.ces.v1beta.CreateGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +2223,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig", + "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +2232,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CreateScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +2241,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig", + "name": "com.google.cloud.ces.v1beta.CreateToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +2250,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CreateToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +2259,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$ModalityType", + "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +2268,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig", + "name": "com.google.cloud.ces.v1beta.CreateToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +2277,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +2286,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +2295,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$VoiceInstructionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +2304,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +2313,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,7 +2322,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppRequest", + "name": "com.google.cloud.ces.v1beta.CustomVoiceSample$Warning$WarningType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2223,7 +2331,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DashboardSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2232,7 +2340,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.DashboardSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2241,7 +2349,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2250,7 +2358,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2259,7 +2367,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2268,7 +2376,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$ConnectorConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2277,7 +2385,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStore$DataStoreType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2286,7 +2394,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.DataStore$DocumentProcessingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2295,7 +2403,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2304,7 +2412,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2313,7 +2421,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2322,7 +2430,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2331,7 +2439,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreSettings$Engine$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2340,7 +2448,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2349,7 +2457,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2358,7 +2466,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2367,7 +2475,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2376,7 +2484,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2385,7 +2493,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$AttributeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2394,7 +2502,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2403,7 +2511,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2412,7 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$ControlPoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2421,7 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$BoostControlSpec$InterpolationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2430,7 +2538,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpec$ConditionBoostSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2439,7 +2547,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2448,7 +2556,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$BoostSpecs$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2457,7 +2565,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2466,7 +2574,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2475,7 +2583,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$DataStoreSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2484,7 +2592,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Deployment", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2493,7 +2601,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Deployment$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$EngineSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2502,7 +2610,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndSession", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$FilterParameterBehavior", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2511,7 +2619,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndSession$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2520,7 +2628,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$GroundingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2529,7 +2637,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2538,7 +2646,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2547,7 +2655,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$ModalityConfig$ModalityType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2556,7 +2664,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2565,7 +2673,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$RewriterConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2574,7 +2682,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SnippetsConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2583,7 +2691,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$Builder", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SnippetsConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2592,7 +2700,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$EnforcementScope", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2601,7 +2709,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings", + "name": "com.google.cloud.ces.v1beta.DataStoreTool$SummarizationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2610,7 +2718,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2619,7 +2727,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", + "name": "com.google.cloud.ces.v1beta.DeleteAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2628,7 +2736,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2637,7 +2745,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", + "name": "com.google.cloud.ces.v1beta.DeleteAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2646,7 +2754,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", + "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2655,7 +2763,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2664,7 +2772,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation", + "name": "com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2673,7 +2781,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2682,7 +2790,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Golden", + "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2691,7 +2799,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Golden$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2700,7 +2808,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2709,7 +2817,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2718,7 +2826,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2727,7 +2835,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2736,7 +2844,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2745,7 +2853,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2754,7 +2862,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$TaskCompletionBehavior", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2763,7 +2871,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2772,7 +2880,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2781,7 +2889,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserGoalBehavior", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2790,7 +2898,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2799,7 +2907,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2808,7 +2916,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2817,7 +2925,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2826,7 +2934,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Step", + "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2835,7 +2943,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Evaluation$Step$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2844,7 +2952,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig", + "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2853,7 +2961,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2862,7 +2970,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationConfig$EvaluationChannel", + "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2871,7 +2979,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationDataset", + "name": "com.google.cloud.ces.v1beta.DeleteScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2880,7 +2988,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationDataset$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2889,7 +2997,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo", + "name": "com.google.cloud.ces.v1beta.DeleteToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2898,7 +3006,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$Builder", + "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2907,7 +3015,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$ErrorType", + "name": "com.google.cloud.ces.v1beta.DeleteToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2916,7 +3024,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation", + "name": "com.google.cloud.ces.v1beta.DeployChannelResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2925,7 +3033,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$Builder", + "name": "com.google.cloud.ces.v1beta.DeployChannelResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2934,7 +3042,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria", + "name": "com.google.cloud.ces.v1beta.Deployment", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2943,7 +3051,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria$Builder", + "name": "com.google.cloud.ces.v1beta.Deployment$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2952,7 +3060,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig", + "name": "com.google.cloud.ces.v1beta.Deployment$Modality", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2961,7 +3069,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndSession", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2970,7 +3078,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ComparisonType", + "name": "com.google.cloud.ces.v1beta.EndSession$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2979,7 +3087,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2988,7 +3096,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2997,7 +3105,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3006,7 +3114,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2AuthCodeConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3015,7 +3123,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3024,7 +3132,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndUserAuthConfig$Oauth2JwtBearerConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,7 +3141,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3042,7 +3150,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3051,7 +3159,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig", + "name": "com.google.cloud.ces.v1beta.EndpointControlPolicy$EnforcementScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3060,7 +3168,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3069,7 +3177,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3078,7 +3186,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3087,7 +3195,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3096,7 +3204,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3105,7 +3213,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3114,7 +3222,934 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Golden", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Golden$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$GoldenTurn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$TaskCompletionBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserFact$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Scenario$UserGoalBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$ScenarioExpectation$ToolExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Step", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.Evaluation$Step$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationConfig$EvaluationChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationDataset", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationDataset$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationErrorInfo$ErrorType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationExpectation$LlmCriteria$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ComparisonType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ExpectationsMetMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$GoldenMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$HallucinationMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ScenarioMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$SemanticSimilarityMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$ToolCorrectnessMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsConfig$UserGoalMetMetricsConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$SemanticSimilarityChannel", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$HallucinationMetricBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$ExtraToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$BackgroundEnvironment", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ExecutionState", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$Outcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OutcomeMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Type", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3123,7 +4158,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3132,7 +4167,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3141,7 +4176,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationRun", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3150,7 +4185,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$ExpectationLevelMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3159,7 +4194,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3168,7 +4203,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3177,7 +4212,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$GoldenEvaluationMetricsThresholds$TurnLevelMetricsThresholds$SemanticSimilarityChannel", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3186,7 +4221,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$HallucinationMetricBehavior", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3195,7 +4230,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3204,7 +4239,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3213,7 +4248,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationMetricsThresholds$ToolMatchingSettings$ExtraToolCallBehavior", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3222,7 +4257,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3231,7 +4266,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$EvaluationRunCachingMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3240,7 +4275,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3249,7 +4284,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$BackgroundEnvironment", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3258,7 +4293,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationPersona$SpeechConfig$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioConversationInitiator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3267,7 +4302,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult", + "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioExecutionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3276,7 +4311,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$Builder", + "name": "com.google.cloud.ces.v1beta.EvaluationToolCallBehaviour", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3285,7 +4320,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult", + "name": "com.google.cloud.ces.v1beta.Event", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3294,7 +4329,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$EvaluationExpectationResult$Builder", + "name": "com.google.cloud.ces.v1beta.Event$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3303,7 +4338,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ExecutionState", + "name": "com.google.cloud.ces.v1beta.Example", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3312,7 +4347,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome", + "name": "com.google.cloud.ces.v1beta.Example$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3321,7 +4356,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3330,7 +4365,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult", + "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3339,7 +4374,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenExpectationOutcome$ToolInvocationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3348,7 +4383,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult", + "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3357,7 +4392,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExecutionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3366,7 +4401,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3375,7 +4410,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$GoldenResult$TurnReplayResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3384,7 +4419,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3393,7 +4428,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$HallucinationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3402,7 +4437,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$Outcome", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3411,7 +4446,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3420,7 +4455,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$OverallToolInvocationResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3429,7 +4464,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3438,7 +4473,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3447,7 +4482,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall", + "name": "com.google.cloud.ces.v1beta.ExportAppRequest$ExportFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3456,7 +4491,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioExpectationOutcome$ObservedToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.ExportAppResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3465,7 +4500,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult", + "name": "com.google.cloud.ces.v1beta.ExportAppResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3474,7 +4509,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3483,7 +4518,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3492,7 +4527,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ScenarioRubricOutcome$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3501,7 +4536,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3510,7 +4545,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SemanticSimilarityResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3519,7 +4554,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3528,7 +4563,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3537,7 +4572,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$SpanLatency$Type", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3546,7 +4581,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3555,7 +4590,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$TaskCompletionResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3564,7 +4599,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3573,7 +4608,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$ToolCallLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3582,7 +4617,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3591,7 +4626,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationResult$UserGoalSatisfactionResult$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3600,7 +4635,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3609,7 +4644,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Builder", + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3618,7 +4653,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunState", + "name": "com.google.cloud.ces.v1beta.ExportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3627,7 +4662,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary", + "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3636,7 +4671,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationRunSummary$Builder", + "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3645,7 +4680,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$EvaluationType", + "name": "com.google.cloud.ces.v1beta.ExpressionCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3654,7 +4689,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress", + "name": "com.google.cloud.ces.v1beta.ExpressionCondition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3663,7 +4698,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRun$Progress$Builder", + "name": "com.google.cloud.ces.v1beta.FileContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3672,7 +4707,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings", + "name": "com.google.cloud.ces.v1beta.FileContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3681,7 +4716,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3690,7 +4725,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationRunCachingSettings$EvaluationRunCachingMode", + "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3699,7 +4734,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings", + "name": "com.google.cloud.ces.v1beta.FileSearchTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3708,7 +4743,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$Builder", + "name": "com.google.cloud.ces.v1beta.FileSearchTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3717,7 +4752,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioConversationInitiator", + "name": "com.google.cloud.ces.v1beta.FileSearchTool$CorpusType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3726,7 +4761,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationSettings$ScenarioExecutionMode", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3735,7 +4770,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.EvaluationToolCallBehaviour", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3744,7 +4779,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Event", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$GenerationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3753,7 +4788,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Event$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3762,7 +4797,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Example", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3771,7 +4806,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Example$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3780,7 +4815,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3789,7 +4824,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3798,7 +4833,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3807,7 +4842,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecuteToolResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3816,7 +4851,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExecutionType", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3825,7 +4860,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3834,7 +4869,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3843,7 +4878,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$State", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3852,7 +4887,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3861,7 +4896,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3870,7 +4905,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3879,7 +4914,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExperimentConfig$VersionRelease$TrafficAllocation$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$LossAttributionAlgorithm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3888,7 +4923,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3897,7 +4932,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3906,7 +4941,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppRequest$ExportFormat", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3915,7 +4950,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3924,7 +4959,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportAppResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3933,7 +4968,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3942,7 +4977,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3951,7 +4986,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3960,7 +4995,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3969,7 +5004,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3978,7 +5013,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3987,7 +5022,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3996,7 +5031,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4005,7 +5040,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4014,7 +5049,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4023,7 +5058,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4032,7 +5067,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4041,7 +5076,52 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4050,7 +5130,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4059,7 +5139,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4068,7 +5148,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4077,7 +5157,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions", + "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$EvaluationType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4086,7 +5166,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4095,7 +5175,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4104,7 +5184,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExpressionCondition", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4113,7 +5193,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ExpressionCondition$Builder", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4122,7 +5202,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext", + "name": "com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse$UserProfile", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4131,7 +5211,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$Builder", + "name": "com.google.cloud.ces.v1beta.GetAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4140,7 +5220,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes", + "name": "com.google.cloud.ces.v1beta.GetAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4149,7 +5229,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileContext$FileBytes$Builder", + "name": "com.google.cloud.ces.v1beta.GetAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4158,7 +5238,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool", + "name": "com.google.cloud.ces.v1beta.GetAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4167,7 +5247,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool$Builder", + "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4176,7 +5256,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.FileSearchTool$CorpusType", + "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4185,7 +5265,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata", + "name": "com.google.cloud.ces.v1beta.GetAssistantSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4194,7 +5274,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.GetAssistantSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4203,7 +5283,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceOperationMetadata$GenerationType", + "name": "com.google.cloud.ces.v1beta.GetChangelogRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4212,7 +5292,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest", + "name": "com.google.cloud.ces.v1beta.GetChangelogRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4221,7 +5301,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4230,7 +5310,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4239,7 +5319,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext", + "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4248,7 +5328,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$AppVersionContext$Builder", + "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4257,7 +5337,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4266,7 +5346,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4275,7 +5355,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4284,7 +5364,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4293,7 +5373,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$EvaluationPersonasGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4302,7 +5382,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4311,7 +5391,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$HillClimbingFixConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4320,7 +5400,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4329,7 +5409,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4338,7 +5418,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$QualityReportGenerationConfig$LossAttributionAlgorithm", + "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4347,7 +5427,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions", + "name": "com.google.cloud.ces.v1beta.GetExampleRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4356,7 +5436,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$RefineInstructions$Builder", + "name": "com.google.cloud.ces.v1beta.GetExampleRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4365,7 +5445,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4374,7 +5454,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4383,7 +5463,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4392,7 +5472,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4401,7 +5481,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig", + "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4410,7 +5490,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceRequest$ToolGenerationConfig$OpenApiToolsetGenerationConfig$OperationGenerationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4419,7 +5499,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse", + "name": "com.google.cloud.ces.v1beta.GetToolRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4428,7 +5508,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources", + "name": "com.google.cloud.ces.v1beta.GetToolRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4437,7 +5517,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$AppResources$Builder", + "name": "com.google.cloud.ces.v1beta.GetToolsetRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4446,7 +5526,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Builder", + "name": "com.google.cloud.ces.v1beta.GetToolsetRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4455,7 +5535,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations", + "name": "com.google.cloud.ces.v1beta.GoAway", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4464,7 +5544,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Evaluations$Builder", + "name": "com.google.cloud.ces.v1beta.GoAway$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4473,7 +5553,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo", + "name": "com.google.cloud.ces.v1beta.GoldenRunMethod", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4482,7 +5562,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$GenerateResultInfo$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4491,7 +5571,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools", + "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4500,7 +5580,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateAppResourceResponse$Tools$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4509,7 +5589,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4518,7 +5598,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenRequest$Builder", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4527,7 +5607,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse", + "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4536,7 +5616,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateChatTokenResponse$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4545,7 +5625,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata", + "name": "com.google.cloud.ces.v1beta.Guardrail$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4554,7 +5634,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4563,7 +5643,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4572,7 +5652,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4581,7 +5661,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GenerateEvaluationRequest$EvaluationType", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4590,7 +5670,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAgentRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$MatchType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4599,7 +5679,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4608,7 +5688,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4617,7 +5697,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$PolicyScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4626,7 +5706,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4635,7 +5715,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4644,7 +5724,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetChangelogRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4653,7 +5733,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetChangelogRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4662,7 +5742,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetConversationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4671,7 +5751,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetConversationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4680,7 +5760,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmBlockThreshold", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4689,7 +5769,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetDeploymentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmCategory", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4698,7 +5778,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4707,7 +5787,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4716,7 +5796,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4725,7 +5805,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationExpectationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4734,7 +5814,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$DetectionMode", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4743,7 +5823,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Guardrail$Supervisor$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4752,7 +5832,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest", + "name": "com.google.cloud.ces.v1beta.Image", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4761,7 +5841,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationResultRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Image$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4770,7 +5850,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4779,7 +5859,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4788,7 +5868,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetExampleRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4797,7 +5877,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetExampleRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4806,7 +5886,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$ConflictResolutionStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4815,7 +5895,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetGuardrailRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportAppResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4824,7 +5904,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest", + "name": "com.google.cloud.ces.v1beta.ImportAppResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4833,7 +5913,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetScheduledEvaluationRunRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4842,7 +5922,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4851,7 +5931,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetSecuritySettingsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4860,7 +5940,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4869,7 +5949,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4878,7 +5958,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolsetRequest", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4887,7 +5967,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GetToolsetRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4896,7 +5976,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoAway", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4905,7 +5985,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoAway$Builder", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$ConflictResolutionStrategy", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4914,7 +5994,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoldenRunMethod", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4923,7 +6003,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions", + "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4932,7 +6012,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchSuggestions$Builder", + "name": "com.google.cloud.ces.v1beta.InputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4941,7 +6021,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool", + "name": "com.google.cloud.ces.v1beta.InputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4950,7 +6030,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$Builder", + "name": "com.google.cloud.ces.v1beta.InstagramCredentials", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4959,7 +6039,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig", + "name": "com.google.cloud.ces.v1beta.InstagramCredentials$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4968,7 +6048,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.GoogleSearchTool$PromptConfig$Builder", + "name": "com.google.cloud.ces.v1beta.InterruptionSignal", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4977,7 +6057,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail", + "name": "com.google.cloud.ces.v1beta.InterruptionSignal$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4986,7 +6066,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$Builder", + "name": "com.google.cloud.ces.v1beta.LanguageSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -4995,7 +6075,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback", + "name": "com.google.cloud.ces.v1beta.LanguageSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5004,7 +6084,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$CodeCallback$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5013,7 +6093,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter", + "name": "com.google.cloud.ces.v1beta.LatencyReport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5022,7 +6102,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5031,7 +6111,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ContentFilter$MatchType", + "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5040,7 +6120,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy", + "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5049,7 +6129,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5058,7 +6138,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPolicy$PolicyScope", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5067,7 +6147,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5076,7 +6156,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5085,7 +6165,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings", + "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5094,7 +6174,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$LlmPromptSecurity$DefaultSecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5103,7 +6183,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety", + "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5112,7 +6192,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$Builder", + "name": "com.google.cloud.ces.v1beta.ListAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5121,7 +6201,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmBlockThreshold", + "name": "com.google.cloud.ces.v1beta.ListAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5130,7 +6210,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$HarmCategory", + "name": "com.google.cloud.ces.v1beta.ListAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5139,7 +6219,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting", + "name": "com.google.cloud.ces.v1beta.ListAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5148,7 +6228,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Guardrail$ModelSafety$SafetySetting$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5157,7 +6237,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Image", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5166,7 +6246,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Image$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5175,7 +6255,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest", + "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5184,7 +6264,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5193,7 +6273,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions", + "name": "com.google.cloud.ces.v1beta.ListAppsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5202,7 +6282,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.ListAppsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5211,7 +6291,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppRequest$ImportOptions$ConflictResolutionStrategy", + "name": "com.google.cloud.ces.v1beta.ListAppsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5220,7 +6300,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppResponse", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5229,7 +6309,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportAppResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5238,7 +6318,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5247,7 +6327,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.ListAssistantSessionsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5256,7 +6336,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5265,7 +6345,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5274,7 +6354,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList", + "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5283,7 +6363,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ConversationList$Builder", + "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5292,7 +6372,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions", + "name": "com.google.cloud.ces.v1beta.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5301,7 +6381,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$Builder", + "name": "com.google.cloud.ces.v1beta.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5310,7 +6390,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsRequest$ImportOptions$ConflictResolutionStrategy", + "name": "com.google.cloud.ces.v1beta.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5319,7 +6399,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.ListConversationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5328,7 +6408,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ImportEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5337,7 +6417,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InputAudioConfig", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5346,7 +6426,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InputAudioConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5355,7 +6435,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InstagramCredentials", + "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5364,7 +6444,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InstagramCredentials$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5373,7 +6453,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InterruptionSignal", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5382,7 +6462,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.InterruptionSignal$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5391,7 +6471,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LanguageSettings", + "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5400,7 +6480,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LanguageSettings$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5409,7 +6489,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5418,7 +6498,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5427,7 +6507,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5436,7 +6516,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$CallbackLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5445,7 +6525,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5454,7 +6534,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$GuardrailLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5463,7 +6543,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics", + "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5472,7 +6552,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LatencyMetrics$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5481,7 +6561,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5490,7 +6570,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$LlmCallLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5499,7 +6579,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency", + "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5508,7 +6588,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LatencyReport$ToolLatency$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5517,7 +6597,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsRequest", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5526,7 +6606,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5535,7 +6615,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsResponse", + "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5544,7 +6624,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAgentsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListExamplesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5553,7 +6633,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest", + "name": "com.google.cloud.ces.v1beta.ListExamplesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5562,7 +6642,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListExamplesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5571,7 +6651,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse", + "name": "com.google.cloud.ces.v1beta.ListExamplesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5580,7 +6660,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppVersionsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5589,7 +6669,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsRequest", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5598,7 +6678,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5607,7 +6687,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsResponse", + "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5616,7 +6696,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListAppsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5625,7 +6705,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5634,7 +6714,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5643,7 +6723,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse", + "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5652,7 +6732,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListChangelogsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5661,7 +6741,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsRequest", + "name": "com.google.cloud.ces.v1beta.ListToolsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5670,7 +6750,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5679,7 +6759,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsResponse", + "name": "com.google.cloud.ces.v1beta.ListToolsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5688,7 +6768,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListConversationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5697,7 +6777,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest", + "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5706,7 +6786,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5715,7 +6795,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse", + "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5724,7 +6804,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListDeploymentsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.LoggingSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5733,7 +6813,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest", + "name": "com.google.cloud.ces.v1beta.LoggingSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5742,7 +6822,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5751,7 +6831,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse", + "name": "com.google.cloud.ces.v1beta.McpTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5760,7 +6840,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationDatasetsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.McpTool$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5769,7 +6849,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest", + "name": "com.google.cloud.ces.v1beta.McpToolDefinition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5778,7 +6858,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolDefinition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5787,7 +6867,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse", + "name": "com.google.cloud.ces.v1beta.McpToolOverride", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5796,7 +6876,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationExpectationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolOverride$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5805,7 +6885,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest", + "name": "com.google.cloud.ces.v1beta.McpToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5814,7 +6894,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.McpToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5823,7 +6903,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse", + "name": "com.google.cloud.ces.v1beta.Message", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5832,7 +6912,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationResultsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.Message$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5841,7 +6921,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5850,7 +6930,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5859,7 +6939,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.MockConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5868,7 +6948,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5877,7 +6957,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest", + "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5886,7 +6966,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.MockedToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5895,7 +6975,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse", + "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5904,7 +6984,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListEvaluationsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ModelSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5913,7 +6993,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesRequest", + "name": "com.google.cloud.ces.v1beta.ModelSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5922,7 +7002,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ModelSettings$ThinkingLevel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5931,7 +7011,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesResponse", + "name": "com.google.cloud.ces.v1beta.OAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5940,7 +7020,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListExamplesResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5949,7 +7029,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest", + "name": "com.google.cloud.ces.v1beta.OAuthConfig$OauthGrantType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5958,7 +7038,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Omnichannel", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5967,7 +7047,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse", + "name": "com.google.cloud.ces.v1beta.Omnichannel$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5976,7 +7056,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListGuardrailsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5985,7 +7065,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -5994,7 +7074,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6003,7 +7083,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6012,7 +7092,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6021,7 +7101,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6030,7 +7110,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6039,7 +7119,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6048,7 +7128,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6057,7 +7137,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6066,7 +7146,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6075,7 +7155,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse", + "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6084,7 +7164,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ListToolsetsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6093,7 +7173,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LoggingSettings", + "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6102,7 +7182,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.LoggingSettings$Builder", + "name": "com.google.cloud.ces.v1beta.OpenApiTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6111,7 +7191,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool", + "name": "com.google.cloud.ces.v1beta.OpenApiTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6120,7 +7200,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool$Builder", + "name": "com.google.cloud.ces.v1beta.OpenApiToolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6129,7 +7209,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpTool$State", + "name": "com.google.cloud.ces.v1beta.OpenApiToolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6138,7 +7218,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolDefinition", + "name": "com.google.cloud.ces.v1beta.OperationCompletedEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6147,7 +7227,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolDefinition$Builder", + "name": "com.google.cloud.ces.v1beta.OperationCompletedEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6156,7 +7236,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolOverride", + "name": "com.google.cloud.ces.v1beta.OperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6165,7 +7245,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolOverride$Builder", + "name": "com.google.cloud.ces.v1beta.OperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6174,7 +7254,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolset", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6183,7 +7263,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.McpToolset$Builder", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6192,7 +7272,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Message", + "name": "com.google.cloud.ces.v1beta.OptimizationConfig$OptimizationStatus", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6201,7 +7281,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Message$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6210,7 +7290,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6219,7 +7299,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MetricAnalysisSettings$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Option", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6228,7 +7308,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Option$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6237,7 +7317,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Question", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6246,7 +7326,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", + "name": "com.google.cloud.ces.v1beta.OptionQuestionsChunk$Question$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6255,7 +7335,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockedToolCall", + "name": "com.google.cloud.ces.v1beta.OutputAudioConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6264,7 +7344,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.OutputAudioConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6273,7 +7353,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ModelSettings", + "name": "com.google.cloud.ces.v1beta.PersonaRunConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6282,7 +7362,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ModelSettings$Builder", + "name": "com.google.cloud.ces.v1beta.PersonaRunConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6291,7 +7371,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig", + "name": "com.google.cloud.ces.v1beta.PythonCodeCondition", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6300,7 +7380,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.PythonCodeCondition$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6309,7 +7389,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OAuthConfig$OauthGrantType", + "name": "com.google.cloud.ces.v1beta.PythonFunction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6318,7 +7398,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Omnichannel", + "name": "com.google.cloud.ces.v1beta.PythonFunction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6327,7 +7407,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Omnichannel$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6336,7 +7416,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6345,7 +7425,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6354,7 +7434,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6363,7 +7443,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$CesAppConfig$Builder", + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6372,7 +7452,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig", + "name": "com.google.cloud.ces.v1beta.QualityReport$Issue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6381,7 +7461,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$ChannelConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RecognitionResult", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6390,7 +7470,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig", + "name": "com.google.cloud.ces.v1beta.RecognitionResult$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6399,7 +7479,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$RoutingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RedactionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6408,7 +7488,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig", + "name": "com.google.cloud.ces.v1beta.RedactionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6417,7 +7497,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$SubscriberConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RemoteA2aConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6426,7 +7506,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig", + "name": "com.google.cloud.ces.v1beta.RemoteA2aConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6435,7 +7515,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelIntegrationConfig$WhatsappConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RemoteAgentTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6444,7 +7524,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata", + "name": "com.google.cloud.ces.v1beta.RemoteAgentTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6453,7 +7533,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OmnichannelOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6462,7 +7542,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiTool", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6471,7 +7551,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiTool$Builder", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6480,7 +7560,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiToolset", + "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6489,7 +7569,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OpenApiToolset$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6498,7 +7578,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OperationMetadata", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6507,7 +7587,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6516,7 +7596,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig", + "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6525,7 +7605,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6534,7 +7614,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OptimizationConfig$OptimizationStatus", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6543,7 +7623,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OutputAudioConfig", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6552,7 +7632,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.OutputAudioConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6561,7 +7641,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PersonaRunConfig", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6570,7 +7650,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PersonaRunConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6579,7 +7659,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonCodeCondition", + "name": "com.google.cloud.ces.v1beta.RunAssistantRequest$InteractionType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6588,7 +7668,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonCodeCondition$Builder", + "name": "com.google.cloud.ces.v1beta.RunAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6597,7 +7677,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonFunction", + "name": "com.google.cloud.ces.v1beta.RunAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6606,7 +7686,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.PythonFunction$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6615,7 +7695,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport", + "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6624,7 +7704,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues", + "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6633,7 +7713,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$AgentIssues$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6642,7 +7722,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6651,7 +7731,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Issue", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6660,7 +7740,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.QualityReport$Issue$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6669,7 +7749,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RecognitionResult", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6678,7 +7758,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RecognitionResult$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6687,7 +7767,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RedactionConfig", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6696,7 +7776,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RedactionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6705,7 +7785,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RemoteAgentTool", + "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6714,7 +7794,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RemoteAgentTool$Builder", + "name": "com.google.cloud.ces.v1beta.RunSessionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6723,7 +7803,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest", + "name": "com.google.cloud.ces.v1beta.RunSessionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6732,7 +7812,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.RunSessionResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6741,7 +7821,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse", + "name": "com.google.cloud.ces.v1beta.RunSessionResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6750,7 +7830,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RestoreAppVersionResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6759,7 +7839,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6768,7 +7848,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6777,7 +7857,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6786,7 +7866,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolSchemaResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Frequency", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6795,7 +7875,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest", + "name": "com.google.cloud.ces.v1beta.Schema", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6804,7 +7884,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.Schema$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6813,7 +7893,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse", + "name": "com.google.cloud.ces.v1beta.Schema$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6822,7 +7902,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RetrieveToolsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SecuritySettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6831,7 +7911,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata", + "name": "com.google.cloud.ces.v1beta.SecuritySettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6840,7 +7920,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6849,7 +7929,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest", + "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6858,7 +7938,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6867,7 +7947,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse", + "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6876,7 +7956,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6885,7 +7965,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata", + "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6894,7 +7974,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsOperationMetadata$Builder", + "name": "com.google.cloud.ces.v1beta.SessionCheckpoint", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6903,7 +7983,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest", + "name": "com.google.cloud.ces.v1beta.SessionCheckpoint$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6912,7 +7992,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsRequest$Builder", + "name": "com.google.cloud.ces.v1beta.SessionConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6921,7 +8001,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse", + "name": "com.google.cloud.ces.v1beta.SessionConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6930,7 +8010,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunEvaluationResultMetricsResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6939,7 +8019,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionRequest", + "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6948,7 +8028,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionRequest$Builder", + "name": "com.google.cloud.ces.v1beta.SessionInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6957,7 +8037,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionResponse", + "name": "com.google.cloud.ces.v1beta.SessionInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6966,7 +8046,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.RunSessionResponse$Builder", + "name": "com.google.cloud.ces.v1beta.SessionInput$RecordingControl", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6975,7 +8055,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun", + "name": "com.google.cloud.ces.v1beta.SessionOutput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6984,7 +8064,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$Builder", + "name": "com.google.cloud.ces.v1beta.SessionOutput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -6993,7 +8073,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig", + "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7002,7 +8082,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7011,7 +8091,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ScheduledEvaluationRun$SchedulingConfig$Frequency", + "name": "com.google.cloud.ces.v1beta.Span", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7020,7 +8100,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema", + "name": "com.google.cloud.ces.v1beta.Span$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7029,7 +8109,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema$Builder", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7038,7 +8118,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Schema$Type", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7047,7 +8127,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SecuritySettings", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest$ClientCapability", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7056,7 +8136,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SecuritySettings$Builder", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7065,7 +8145,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig", + "name": "com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7074,7 +8154,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAccountAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7083,7 +8163,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig", + "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7092,7 +8172,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceAgentIdTokenAuthConfig$Builder", + "name": "com.google.cloud.ces.v1beta.SystemTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7101,7 +8181,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig", + "name": "com.google.cloud.ces.v1beta.SystemTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7110,7 +8190,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ServiceDirectoryConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7119,7 +8199,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7128,7 +8208,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7137,7 +8217,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters", + "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7146,7 +8226,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionConfig$RemoteDialogflowQueryParameters$Builder", + "name": "com.google.cloud.ces.v1beta.TimeZoneSettings", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7155,7 +8235,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionInput", + "name": "com.google.cloud.ces.v1beta.TimeZoneSettings$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7164,7 +8244,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionInput$Builder", + "name": "com.google.cloud.ces.v1beta.TlsConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7173,7 +8253,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput", + "name": "com.google.cloud.ces.v1beta.TlsConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7182,7 +8262,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$Builder", + "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7191,7 +8271,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo", + "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7200,7 +8280,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SessionOutput$DiagnosticInfo$Builder", + "name": "com.google.cloud.ces.v1beta.Tool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7209,7 +8289,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Span", + "name": "com.google.cloud.ces.v1beta.Tool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7218,7 +8298,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Span$Builder", + "name": "com.google.cloud.ces.v1beta.ToolCall", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7227,7 +8307,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig", + "name": "com.google.cloud.ces.v1beta.ToolCall$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7236,7 +8316,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SynthesizeSpeechConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ToolCalls", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7245,7 +8325,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SystemTool", + "name": "com.google.cloud.ces.v1beta.ToolCalls$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7254,7 +8334,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.SystemTool$Builder", + "name": "com.google.cloud.ces.v1beta.ToolFakeConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7263,7 +8343,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest", + "name": "com.google.cloud.ces.v1beta.ToolFakeConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7272,7 +8352,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceRequest$Builder", + "name": "com.google.cloud.ces.v1beta.ToolResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7281,7 +8361,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse", + "name": "com.google.cloud.ces.v1beta.ToolResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7290,7 +8370,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TestPersonaVoiceResponse$Builder", + "name": "com.google.cloud.ces.v1beta.ToolResponses", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7299,7 +8379,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TimeZoneSettings", + "name": "com.google.cloud.ces.v1beta.ToolResponses$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7308,7 +8388,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TimeZoneSettings$Builder", + "name": "com.google.cloud.ces.v1beta.Toolset", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7317,7 +8397,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig", + "name": "com.google.cloud.ces.v1beta.Toolset$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7326,7 +8406,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$Builder", + "name": "com.google.cloud.ces.v1beta.ToolsetTool", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7335,7 +8415,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert", + "name": "com.google.cloud.ces.v1beta.ToolsetTool$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7344,7 +8424,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TlsConfig$CaCert$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7353,7 +8433,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Tool", + "name": "com.google.cloud.ces.v1beta.TransferRule$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +8442,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Tool$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +8451,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCall", + "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +8460,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCall$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$Direction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +8469,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCalls", + "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +8478,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolCalls$Builder", + "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +8487,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolFakeConfig", + "name": "com.google.cloud.ces.v1beta.TriggerAction", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +8496,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolFakeConfig$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +8505,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponse", + "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +8514,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponse$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7443,7 +8523,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponses", + "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7452,7 +8532,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolResponses$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7461,7 +8541,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Toolset", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Response", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7470,7 +8550,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.Toolset$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$Response$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7479,7 +8559,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolsetTool", + "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7488,7 +8568,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.ToolsetTool$Builder", + "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7497,7 +8577,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7506,7 +8586,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$Builder", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7515,7 +8595,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer", + "name": "com.google.cloud.ces.v1beta.TurnCompletedEvent$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7524,7 +8604,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DeterministicTransfer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7533,7 +8613,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$Direction", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7542,7 +8622,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer", + "name": "com.google.cloud.ces.v1beta.TurnHandoffEvent$Reason", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7551,7 +8631,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TransferRule$DisablePlannerTransfer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7560,7 +8640,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction", + "name": "com.google.cloud.ces.v1beta.TurnMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7569,7 +8649,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Builder", + "name": "com.google.cloud.ces.v1beta.TurnMetadata$ContractStreamingPhase", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7578,7 +8658,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer", + "name": "com.google.cloud.ces.v1beta.TurnResumeSnapshot", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7587,7 +8667,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$GenerativeAnswer$Builder", + "name": "com.google.cloud.ces.v1beta.TurnResumeSnapshot$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7596,7 +8676,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately", + "name": "com.google.cloud.ces.v1beta.TypedPayload", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7605,7 +8685,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$RespondImmediately$Builder", + "name": "com.google.cloud.ces.v1beta.TypedPayload$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7614,7 +8694,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Response", + "name": "com.google.cloud.ces.v1beta.UiEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7623,7 +8703,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$Response$Builder", + "name": "com.google.cloud.ces.v1beta.UiEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7632,7 +8712,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent", + "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7641,7 +8721,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.TriggerAction$TransferAgent$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7650,7 +8730,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest", + "name": "com.google.cloud.ces.v1beta.UpdateAppRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7659,7 +8739,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAgentRequest$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAppRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7668,7 +8748,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAppRequest", + "name": "com.google.cloud.ces.v1beta.UpdateAppVersionRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7677,7 +8757,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.ces.v1beta.UpdateAppRequest$Builder", + "name": "com.google.cloud.ces.v1beta.UpdateAppVersionRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7901,6 +8981,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.UserResponseSuggestions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.UserResponseSuggestions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.VpcScSettings", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java index 7a1b32f636cd..715018ff64f5 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientHttpJsonTest.java @@ -232,6 +232,7 @@ public void getAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -304,6 +305,7 @@ public void getAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -376,6 +378,7 @@ public void createAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -455,6 +458,7 @@ public void createAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -534,6 +538,7 @@ public void createAppTest3() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -615,6 +620,7 @@ public void createAppTest4() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -696,6 +702,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -730,6 +737,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -790,6 +798,7 @@ public void updateAppExceptionTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateApp(app, updateMask); @@ -2630,6 +2639,7 @@ public void getToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -2682,6 +2692,7 @@ public void getToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3142,6 +3153,7 @@ public void createToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3196,6 +3208,7 @@ public void createToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3250,6 +3263,7 @@ public void createToolTest3() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3306,6 +3320,7 @@ public void createToolTest4() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3362,6 +3377,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockService.addResponse(expectedResponse); @@ -3376,6 +3392,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -3416,6 +3433,7 @@ public void updateToolExceptionTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateTool(tool, updateMask); @@ -4197,6 +4215,8 @@ public void getDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4252,6 +4272,8 @@ public void getDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4309,6 +4331,8 @@ public void createDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4366,6 +4390,8 @@ public void createDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4423,6 +4449,8 @@ public void createDeploymentTest3() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4482,6 +4510,8 @@ public void createDeploymentTest4() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4541,6 +4571,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -4558,6 +4590,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -4601,6 +4635,8 @@ public void updateDeploymentExceptionTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateDeployment(deployment, updateMask); @@ -5385,6 +5421,7 @@ public void getAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5435,6 +5472,7 @@ public void getAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5487,6 +5525,7 @@ public void createAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5539,6 +5578,7 @@ public void createAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5591,6 +5631,7 @@ public void createAppVersionTest3() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5645,6 +5686,7 @@ public void createAppVersionTest4() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -5690,6 +5732,80 @@ public void createAppVersionExceptionTest4() throws Exception { } } + @Test + public void updateAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockService.addResponse(expectedResponse); + + AppVersion appVersion = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AppVersion actualResponse = client.updateAppVersion(appVersion, 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 updateAppVersionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppVersion appVersion = + AppVersion.newBuilder() + .setName( + AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAppVersion(appVersion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteAppVersionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java index f70df1db3313..f2f5ed73f301 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AgentServiceClientTest.java @@ -227,6 +227,7 @@ public void getAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -293,6 +294,7 @@ public void getAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -359,6 +361,7 @@ public void createAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -436,6 +439,7 @@ public void createAppTest2() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -513,6 +517,7 @@ public void createAppTest3() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -593,6 +598,7 @@ public void createAppTest4() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); Operation resultOperation = Operation.newBuilder() @@ -673,6 +679,7 @@ public void updateAppTest() throws Exception { .addAllEvaluationPersonas(new ArrayList()) .setEvaluationSettings(EvaluationSettings.newBuilder().build()) .addAllValidationErrors(new ArrayList()) + .setDashboardSettings(DashboardSettings.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -2298,6 +2305,7 @@ public void getToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2344,6 +2352,7 @@ public void getToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2754,6 +2763,7 @@ public void createToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2803,6 +2813,7 @@ public void createToolTest2() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2852,6 +2863,7 @@ public void createToolTest3() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2904,6 +2916,7 @@ public void createToolTest4() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -2956,6 +2969,7 @@ public void updateToolTest() throws Exception { .setEtag("etag3123477") .setGeneratedSummary("generatedSummary-323053801") .setToolFakeConfig(ToolFakeConfig.newBuilder().build()) + .setReadOnly(true) .build(); mockAgentService.addResponse(expectedResponse); @@ -3656,6 +3670,8 @@ public void getDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3705,6 +3721,8 @@ public void getDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3754,6 +3772,8 @@ public void createDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3806,6 +3826,8 @@ public void createDeploymentTest2() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3858,6 +3880,8 @@ public void createDeploymentTest3() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3913,6 +3937,8 @@ public void createDeploymentTest4() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -3968,6 +3994,8 @@ public void updateDeploymentTest() throws Exception { .setExperimentConfig(ExperimentConfig.newBuilder().build()) .setWhatsappCredentials(WhatsAppCredentials.newBuilder().build()) .setInstagramCredentials(InstagramCredentials.newBuilder().build()) + .setModelSettings(ModelSettings.newBuilder().build()) + .setAgentRegistryDeployment(AgentRegistryDeployment.newBuilder().build()) .build(); mockAgentService.addResponse(expectedResponse); @@ -4668,6 +4696,7 @@ public void getAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4712,6 +4741,7 @@ public void getAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4756,6 +4786,7 @@ public void createAppVersionTest() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4803,6 +4834,7 @@ public void createAppVersionTest2() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4850,6 +4882,7 @@ public void createAppVersionTest3() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4900,6 +4933,7 @@ public void createAppVersionTest4() throws Exception { .setDescription("description-1724546052") .setCreator("creator1028554796") .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) .setSnapshot(AppSnapshot.newBuilder().build()) .setEtag("etag3123477") .build(); @@ -4941,6 +4975,54 @@ public void createAppVersionExceptionTest4() throws Exception { } } + @Test + public void updateAppVersionTest() throws Exception { + AppVersion expectedResponse = + AppVersion.newBuilder() + .setName(AppVersionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[VERSION]").toString()) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setCreator("creator1028554796") + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setSnapshot(AppSnapshot.newBuilder().build()) + .setEtag("etag3123477") + .build(); + mockAgentService.addResponse(expectedResponse); + + AppVersion appVersion = AppVersion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + AppVersion actualResponse = client.updateAppVersion(appVersion, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAgentService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAppVersionRequest actualRequest = ((UpdateAppVersionRequest) actualRequests.get(0)); + + Assert.assertEquals(appVersion, actualRequest.getAppVersion()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAppVersionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAgentService.addException(exception); + + try { + AppVersion appVersion = AppVersion.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateAppVersion(appVersion, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void deleteAppVersionTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java new file mode 100644 index 000000000000..71cbdbfb1c2a --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientHttpJsonTest.java @@ -0,0 +1,742 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.ces.v1beta.stub.HttpJsonAssistantServiceStub; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +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; +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 AssistantServiceClientHttpJsonTest { + private static MockHttpService mockService; + private static AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAssistantServiceStub.getMethodDescriptors(), + AssistantServiceSettings.getDefaultEndpoint()); + AssistantServiceSettings settings = + AssistantServiceSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AssistantServiceSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void listAssistantSessionsTest() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().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 listAssistantSessionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantSessionsTest2() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().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 listAssistantSessionsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + AssistantSession actualResponse = client.getAssistantSession(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 getAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + + AssistantSession actualResponse = client.getAssistantSession(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 getAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + 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 createAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + 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 createAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + client.deleteAssistantSession(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 deleteAssistantSessionExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockService.addResponse(expectedResponse); + + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + + client.deleteAssistantSession(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 deleteAssistantSessionExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303"; + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssistantTest() throws Exception { + RunAssistantResponse expectedResponse = + RunAssistantResponse.newBuilder() + .setOutput(AssistantOutput.newBuilder().build()) + .setState(AssistantSessionState.forNumber(0)) + .build(); + mockService.addResponse(expectedResponse); + + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + + RunAssistantResponse actualResponse = client.runAssistant(request); + 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 runAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + client.runAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void chatAiAssistantTest() throws Exception { + ChatAiAssistantResponse expectedResponse = + ChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + + ChatAiAssistantResponse actualResponse = client.chatAiAssistant(request); + 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 chatAiAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + client.chatAiAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("projects/project-3664") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + + Location actualResponse = client.getLocation(request); + 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 getLocationExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GetLocationRequest request = + GetLocationRequest.newBuilder() + .setName("projects/project-9062/locations/location-9062") + .build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java new file mode 100644 index 000000000000..bbe45b530559 --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/AssistantServiceClientTest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListAssistantSessionsPagedResponse; +import static com.google.cloud.ces.v1beta.AssistantServiceClient.ListLocationsPagedResponse; + +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.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +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 AssistantServiceClientTest { + private static MockAssistantService mockAssistantService; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AssistantServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockAssistantService = new MockAssistantService(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAssistantService, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AssistantServiceSettings settings = + AssistantServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AssistantServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void listAssistantSessionsTest() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantSessionsRequest actualRequest = + ((ListAssistantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantSessionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAssistantSessionsTest2() throws Exception { + AssistantSession responsesElement = AssistantSession.newBuilder().build(); + ListAssistantSessionsResponse expectedResponse = + ListAssistantSessionsResponse.newBuilder() + .setNextPageToken("") + .addAllAssistantSessions(Arrays.asList(responsesElement)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAssistantSessionsPagedResponse pagedListResponse = client.listAssistantSessions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAssistantSessionsList().get(0), resources.get(0)); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAssistantSessionsRequest actualRequest = + ((ListAssistantSessionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAssistantSessionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAssistantSessions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + AssistantSession actualResponse = client.getAssistantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantSessionRequest actualRequest = ((GetAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + AssistantSession actualResponse = client.getAssistantSession(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAssistantSessionRequest actualRequest = ((GetAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.getAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantSessionRequest actualRequest = + ((CreateAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(assistantSessionId, actualRequest.getAssistantSessionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createAssistantSessionTest2() throws Exception { + AssistantSession expectedResponse = + AssistantSession.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setRequestor("requestor693934258") + .addAllMessages(new ArrayList()) + .setState(AssistantSessionState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setUserResponseSuggestions(UserResponseSuggestions.newBuilder().build()) + .setDisplayName("displayName1714148973") + .addAllArtifacts(new ArrayList()) + .setSessionCheckpoint(SessionCheckpoint.newBuilder().build()) + .setActiveTurn(ActiveTurnInfo.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + String assistantSessionId = "assistantSessionId-1566358253"; + + AssistantSession actualResponse = client.createAssistantSession(parent, assistantSessionId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAssistantSessionRequest actualRequest = + ((CreateAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(assistantSessionId, actualRequest.getAssistantSessionId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String parent = "parent-995424086"; + String assistantSessionId = "assistantSessionId-1566358253"; + client.createAssistantSession(parent, assistantSessionId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + + client.deleteAssistantSession(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantSessionRequest actualRequest = + ((DeleteAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantSessionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + AssistantSessionName name = + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]"); + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteAssistantSessionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAssistantService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteAssistantSession(name); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAssistantSessionRequest actualRequest = + ((DeleteAssistantSessionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAssistantSessionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + String name = "name3373707"; + client.deleteAssistantSession(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void runAssistantTest() throws Exception { + RunAssistantResponse expectedResponse = + RunAssistantResponse.newBuilder() + .setOutput(AssistantOutput.newBuilder().build()) + .setState(AssistantSessionState.forNumber(0)) + .build(); + mockAssistantService.addResponse(expectedResponse); + + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + + RunAssistantResponse actualResponse = client.runAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + RunAssistantRequest actualRequest = ((RunAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getApp(), actualRequest.getApp()); + Assert.assertEquals(request.getAssistantSession(), actualRequest.getAssistantSession()); + Assert.assertEquals(request.getMessage(), actualRequest.getMessage()); + Assert.assertEquals(request.getInteractionType(), actualRequest.getInteractionType()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void runAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + RunAssistantRequest request = + RunAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage(AssistantMessage.newBuilder().build()) + .build(); + client.runAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void chatAiAssistantTest() throws Exception { + ChatAiAssistantResponse expectedResponse = + ChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .build(); + mockAssistantService.addResponse(expectedResponse); + + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + + ChatAiAssistantResponse actualResponse = client.chatAiAssistant(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAssistantService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ChatAiAssistantRequest actualRequest = ((ChatAiAssistantRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getApp(), actualRequest.getApp()); + Assert.assertEquals(request.getAssistantSession(), actualRequest.getAssistantSession()); + Assert.assertEquals(request.getMessage(), actualRequest.getMessage()); + Assert.assertEquals(request.getAttachedGcsUrisList(), actualRequest.getAttachedGcsUrisList()); + Assert.assertEquals(request.getContextToken(), actualRequest.getContextToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void chatAiAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAssistantService.addException(exception); + + try { + ChatAiAssistantRequest request = + ChatAiAssistantRequest.newBuilder() + .setApp(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setAssistantSession( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + client.chatAiAssistant(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java index 534dcf87ee80..bfcd3196b7dd 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java @@ -1712,6 +1712,7 @@ public void getEvaluationResultTest() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1781,6 +1782,7 @@ public void getEvaluationResultTest2() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java index 072eabe2d89f..48624eb53b36 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java @@ -1520,6 +1520,7 @@ public void getEvaluationResultTest() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockEvaluationService.addResponse(expectedResponse); @@ -1583,6 +1584,7 @@ public void getEvaluationResultTest2() throws Exception { .setEvaluationMetricsThresholds(EvaluationMetricsThresholds.newBuilder().build()) .setConfig(EvaluationConfig.newBuilder().build()) .setGoldenRunMethod(GoldenRunMethod.forNumber(0)) + .setRootSpan(Span.newBuilder().build()) .build(); mockEvaluationService.addResponse(expectedResponse); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java index 0898e91939a1..b46c798c9f27 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAgentServiceImpl.java @@ -1010,6 +1010,27 @@ public void createAppVersion( } } + @Override + public void updateAppVersion( + UpdateAppVersionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AppVersion) { + requests.add(request); + responseObserver.onNext(((AppVersion) 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 UpdateAppVersion, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AppVersion.class.getName(), + Exception.class.getName()))); + } + } + @Override public void deleteAppVersion( DeleteAppVersionRequest request, StreamObserver responseObserver) { diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AService.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java similarity index 84% rename from java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AService.java rename to java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java index 4eb8ad177848..468801beafdf 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AService.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantService.java @@ -14,7 +14,7 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.ces.v1beta; import com.google.api.core.BetaApi; import com.google.api.gax.grpc.testing.MockGrpcService; @@ -25,11 +25,11 @@ @BetaApi @Generated("by gapic-generator-java") -public class MockDataA2AService implements MockGrpcService { - private final MockDataA2AServiceImpl serviceImpl; +public class MockAssistantService implements MockGrpcService { + private final MockAssistantServiceImpl serviceImpl; - public MockDataA2AService() { - serviceImpl = new MockDataA2AServiceImpl(); + public MockAssistantService() { + serviceImpl = new MockAssistantServiceImpl(); } @Override diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java new file mode 100644 index 000000000000..abd86331a7ef --- /dev/null +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockAssistantServiceImpl.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta; + +import com.google.api.core.BetaApi; +import com.google.cloud.ces.v1beta.AssistantServiceGrpc.AssistantServiceImplBase; +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 MockAssistantServiceImpl extends AssistantServiceImplBase { + private List requests; + private Queue responses; + + public MockAssistantServiceImpl() { + 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 listAssistantSessions( + ListAssistantSessionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAssistantSessionsResponse) { + requests.add(request); + responseObserver.onNext(((ListAssistantSessionsResponse) 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 ListAssistantSessions, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListAssistantSessionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAssistantSession( + GetAssistantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AssistantSession) { + requests.add(request); + responseObserver.onNext(((AssistantSession) 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 GetAssistantSession, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AssistantSession.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createAssistantSession( + CreateAssistantSessionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AssistantSession) { + requests.add(request); + responseObserver.onNext(((AssistantSession) 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 CreateAssistantSession, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + AssistantSession.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAssistantSession( + DeleteAssistantSessionRequest 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 DeleteAssistantSession, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void runAssistant( + RunAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof RunAssistantResponse) { + requests.add(request); + responseObserver.onNext(((RunAssistantResponse) 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 RunAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + RunAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void chatAiAssistant( + ChatAiAssistantRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ChatAiAssistantResponse) { + requests.add(request); + responseObserver.onNext(((ChatAiAssistantResponse) 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 ChatAiAssistant, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ChatAiAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java index 1de577e63165..18a342217943 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockSessionServiceImpl.java @@ -137,4 +137,72 @@ public void onCompleted() { }; return requestObserver; } + + @Override + public void streamChatAiAssistant( + StreamChatAiAssistantRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof StreamChatAiAssistantResponse) { + requests.add(request); + responseObserver.onNext(((StreamChatAiAssistantResponse) 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 StreamChatAiAssistant, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + StreamChatAiAssistantResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cancelAssistantTurn( + CancelAssistantTurnRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CancelAssistantTurnResponse) { + requests.add(request); + responseObserver.onNext(((CancelAssistantTurnResponse) 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 CancelAssistantTurn, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CancelAssistantTurnResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void generateOnboardingSuggestions( + GenerateOnboardingSuggestionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateOnboardingSuggestionsResponse) { + requests.add(request); + responseObserver.onNext(((GenerateOnboardingSuggestionsResponse) 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 GenerateOnboardingSuggestions, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + GenerateOnboardingSuggestionsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java index b909cd0f26bf..ab144582cfdd 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientHttpJsonTest.java @@ -105,6 +105,9 @@ public void runSessionTest() throws Exception { .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) .setEnableTextStreaming(true) + .setIncludeLlmThoughtSummary(true) + .setExcludeDiagnosticInfo(true) + .setIncludeProgressUpdate(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -153,6 +156,9 @@ public void runSessionExceptionTest() throws Exception { .setRemoteDialogflowQueryParameters( SessionConfig.RemoteDialogflowQueryParameters.newBuilder().build()) .setEnableTextStreaming(true) + .setIncludeLlmThoughtSummary(true) + .setExcludeDiagnosticInfo(true) + .setIncludeProgressUpdate(true) .build()) .addAllInputs(new ArrayList()) .build(); @@ -180,6 +186,123 @@ public void bidiRunSessionUnsupportedMethodTest() throws Exception { // This empty test is generated for technical reasons. } + @Test + public void streamChatAiAssistantTest() throws Exception {} + + @Test + public void streamChatAiAssistantExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + } + + @Test + public void cancelAssistantTurnTest() throws Exception { + CancelAssistantTurnResponse expectedResponse = + CancelAssistantTurnResponse.newBuilder().setCancelled(true).build(); + mockService.addResponse(expectedResponse); + + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName( + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303") + .setTurnId("turnId-862429576") + .build(); + + CancelAssistantTurnResponse actualResponse = client.cancelAssistantTurn(request); + 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 cancelAssistantTurnExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName( + "projects/project-3303/locations/location-3303/apps/app-3303/assistantSessions/assistantSession-3303") + .setTurnId("turnId-862429576") + .build(); + client.cancelAssistantTurn(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateOnboardingSuggestionsTest() throws Exception { + GenerateOnboardingSuggestionsResponse expectedResponse = + GenerateOnboardingSuggestionsResponse.newBuilder() + .addAllSuggestions(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + mockService.addResponse(expectedResponse); + + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + + GenerateOnboardingSuggestionsResponse actualResponse = + client.generateOnboardingSuggestions(request); + 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 generateOnboardingSuggestionsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + client.generateOnboardingSuggestions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java index 25dc41228217..747c21fa9cd9 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/SessionServiceClientTest.java @@ -37,6 +37,7 @@ import com.google.common.collect.Lists; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; +import com.google.protobuf.Timestamp; import io.grpc.StatusRuntimeException; import java.io.IOException; import java.util.ArrayList; @@ -233,6 +234,176 @@ public void bidiRunSessionExceptionTest() throws Exception { } } + @Test + public void streamChatAiAssistantTest() throws Exception { + StreamChatAiAssistantResponse expectedResponse = + StreamChatAiAssistantResponse.newBuilder() + .setEventId("eventId-1376502443") + .setEventTime(Timestamp.newBuilder().build()) + .setUiEvent(UiEvent.newBuilder().build()) + .setTurnMetadata(TurnMetadata.newBuilder().build()) + .setSequenceNumber(-1309190777) + .setTurnInProgress(true) + .build(); + mockSessionService.addResponse(expectedResponse); + StreamChatAiAssistantRequest request = + StreamChatAiAssistantRequest.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build()) + .addAllClientCapabilities( + new ArrayList()) + .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build()) + .setResumeFromSequenceNumber(15486916) + .setAttachOnly(true) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamChatAiAssistantCallable(); + callable.serverStreamingCall(request, responseObserver); + + List actualResponses = responseObserver.future().get(); + Assert.assertEquals(1, actualResponses.size()); + Assert.assertEquals(expectedResponse, actualResponses.get(0)); + } + + @Test + public void streamChatAiAssistantExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + StreamChatAiAssistantRequest request = + StreamChatAiAssistantRequest.newBuilder() + .setName( + AssistantSessionName.of("[PROJECT]", "[LOCATION]", "[APP]", "[ASSISTANT_SESSION]") + .toString()) + .setMessage("message954925063") + .addAllAttachedGcsUris(new ArrayList()) + .setContextToken("contextToken1106626954") + .setConfirmationResponse(AssistantConfirmationResponse.newBuilder().build()) + .addAllClientCapabilities( + new ArrayList()) + .setOperationCompletedEvent(OperationCompletedEvent.newBuilder().build()) + .setResumeFromSequenceNumber(15486916) + .setAttachOnly(true) + .build(); + + MockStreamObserver responseObserver = new MockStreamObserver<>(); + + ServerStreamingCallable callable = + client.streamChatAiAssistantCallable(); + callable.serverStreamingCall(request, responseObserver); + + try { + List actualResponses = responseObserver.future().get(); + Assert.fail("No exception thrown"); + } catch (ExecutionException e) { + Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void cancelAssistantTurnTest() throws Exception { + CancelAssistantTurnResponse expectedResponse = + CancelAssistantTurnResponse.newBuilder().setCancelled(true).build(); + mockSessionService.addResponse(expectedResponse); + + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName("name3373707") + .setTurnId("turnId-862429576") + .build(); + + CancelAssistantTurnResponse actualResponse = client.cancelAssistantTurn(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSessionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelAssistantTurnRequest actualRequest = ((CancelAssistantTurnRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getTurnId(), actualRequest.getTurnId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelAssistantTurnExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + + try { + CancelAssistantTurnRequest request = + CancelAssistantTurnRequest.newBuilder() + .setName("name3373707") + .setTurnId("turnId-862429576") + .build(); + client.cancelAssistantTurn(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void generateOnboardingSuggestionsTest() throws Exception { + GenerateOnboardingSuggestionsResponse expectedResponse = + GenerateOnboardingSuggestionsResponse.newBuilder() + .addAllSuggestions(new ArrayList()) + .setContextToken("contextToken1106626954") + .build(); + mockSessionService.addResponse(expectedResponse); + + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + + GenerateOnboardingSuggestionsResponse actualResponse = + client.generateOnboardingSuggestions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockSessionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateOnboardingSuggestionsRequest actualRequest = + ((GenerateOnboardingSuggestionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getMaxSuggestions(), actualRequest.getMaxSuggestions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateOnboardingSuggestionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockSessionService.addException(exception); + + try { + GenerateOnboardingSuggestionsRequest request = + GenerateOnboardingSuggestionsRequest.newBuilder() + .setName(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .setMaxSuggestions(618824852) + .build(); + client.generateOnboardingSuggestions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java index 805a57be01bc..71f0bc0c71a9 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceGrpc.java @@ -2026,6 +2026,52 @@ private AgentServiceGrpc() {} return getCreateAppVersionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAppVersion", + requestType = com.google.cloud.ces.v1beta.UpdateAppVersionRequest.class, + responseType = com.google.cloud.ces.v1beta.AppVersion.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion> + getUpdateAppVersionMethod; + if ((getUpdateAppVersionMethod = AgentServiceGrpc.getUpdateAppVersionMethod) == null) { + synchronized (AgentServiceGrpc.class) { + if ((getUpdateAppVersionMethod = AgentServiceGrpc.getUpdateAppVersionMethod) == null) { + AgentServiceGrpc.getUpdateAppVersionMethod = + getUpdateAppVersionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAppVersion")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AppVersion.getDefaultInstance())) + .setSchemaDescriptor( + new AgentServiceMethodDescriptorSupplier("UpdateAppVersion")) + .build(); + } + } + } + return getUpdateAppVersionMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.cloud.ces.v1beta.DeleteAppVersionRequest, com.google.protobuf.Empty> getDeleteAppVersionMethod; @@ -2949,6 +2995,20 @@ default void createAppVersion( getCreateAppVersionMethod(), responseObserver); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + default void updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAppVersionMethod(), responseObserver); + } + /** * * @@ -3774,6 +3834,22 @@ public void createAppVersion( responseObserver); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public void updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAppVersionMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -4485,6 +4561,20 @@ public com.google.cloud.ces.v1beta.AppVersion createAppVersion( getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AppVersion updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAppVersionMethod(), getCallOptions(), request); + } + /** * * @@ -5174,6 +5264,19 @@ public com.google.cloud.ces.v1beta.AppVersion createAppVersion( getChannel(), getCreateAppVersionMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Updates the specified app version.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AppVersion updateAppVersion( + com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAppVersionMethod(), getCallOptions(), request); + } + /** * * @@ -5878,6 +5981,20 @@ public com.google.common.util.concurrent.ListenableFuture + * Updates the specified app version. + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AppVersion> + updateAppVersion(com.google.cloud.ces.v1beta.UpdateAppVersionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAppVersionMethod(), getCallOptions()), request); + } + /** * * @@ -5993,11 +6110,12 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6266,6 +6384,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_APP_VERSION: + serviceImpl.updateAppVersion( + (com.google.cloud.ces.v1beta.UpdateAppVersionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_DELETE_APP_VERSION: serviceImpl.deleteAppVersion( (com.google.cloud.ces.v1beta.DeleteAppVersionRequest) request, @@ -6596,6 +6720,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.ces.v1beta.CreateAppVersionRequest, com.google.cloud.ces.v1beta.AppVersion>(service, METHODID_CREATE_APP_VERSION))) + .addMethod( + getUpdateAppVersionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.UpdateAppVersionRequest, + com.google.cloud.ces.v1beta.AppVersion>(service, METHODID_UPDATE_APP_VERSION))) .addMethod( getDeleteAppVersionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -6724,6 +6854,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListAppVersionsMethod()) .addMethod(getGetAppVersionMethod()) .addMethod(getCreateAppVersionMethod()) + .addMethod(getUpdateAppVersionMethod()) .addMethod(getDeleteAppVersionMethod()) .addMethod(getRestoreAppVersionMethod()) .addMethod(getGenerateAppResourceMethod()) diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java new file mode 100644 index 000000000000..0aa2760858b3 --- /dev/null +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceGrpc.java @@ -0,0 +1,1111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.ces.v1beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
+ * The service that manages assistant-related resources in Customer Engagement
+ * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+ * applications to help users with building their agents.
+ * 
+ */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AssistantServiceGrpc { + + private AssistantServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.cloud.ces.v1beta.AssistantService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAssistantSessions", + requestType = com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + responseType = com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + getListAssistantSessionsMethod; + if ((getListAssistantSessionsMethod = AssistantServiceGrpc.getListAssistantSessionsMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getListAssistantSessionsMethod = AssistantServiceGrpc.getListAssistantSessionsMethod) + == null) { + AssistantServiceGrpc.getListAssistantSessionsMethod = + getListAssistantSessionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListAssistantSessions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ListAssistantSessions")) + .build(); + } + } + } + return getListAssistantSessionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAssistantSession", + requestType = com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + responseType = com.google.cloud.ces.v1beta.AssistantSession.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getGetAssistantSessionMethod; + if ((getGetAssistantSessionMethod = AssistantServiceGrpc.getGetAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getGetAssistantSessionMethod = AssistantServiceGrpc.getGetAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getGetAssistantSessionMethod = + getGetAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("GetAssistantSession")) + .build(); + } + } + } + return getGetAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAssistantSession", + requestType = com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + responseType = com.google.cloud.ces.v1beta.AssistantSession.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession> + getCreateAssistantSessionMethod; + if ((getCreateAssistantSessionMethod = AssistantServiceGrpc.getCreateAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getCreateAssistantSessionMethod = AssistantServiceGrpc.getCreateAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getCreateAssistantSessionMethod = + getCreateAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("CreateAssistantSession")) + .build(); + } + } + } + return getCreateAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAssistantSession", + requestType = com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, com.google.protobuf.Empty> + getDeleteAssistantSessionMethod; + if ((getDeleteAssistantSessionMethod = AssistantServiceGrpc.getDeleteAssistantSessionMethod) + == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getDeleteAssistantSessionMethod = AssistantServiceGrpc.getDeleteAssistantSessionMethod) + == null) { + AssistantServiceGrpc.getDeleteAssistantSessionMethod = + getDeleteAssistantSessionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteAssistantSession")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("DeleteAssistantSession")) + .build(); + } + } + } + return getDeleteAssistantSessionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "RunAssistant", + requestType = com.google.cloud.ces.v1beta.RunAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.RunAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse> + getRunAssistantMethod; + if ((getRunAssistantMethod = AssistantServiceGrpc.getRunAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getRunAssistantMethod = AssistantServiceGrpc.getRunAssistantMethod) == null) { + AssistantServiceGrpc.getRunAssistantMethod = + getRunAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RunAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.RunAssistantRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.RunAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("RunAssistant")) + .build(); + } + } + } + return getRunAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ChatAiAssistant", + requestType = com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + getChatAiAssistantMethod; + if ((getChatAiAssistantMethod = AssistantServiceGrpc.getChatAiAssistantMethod) == null) { + synchronized (AssistantServiceGrpc.class) { + if ((getChatAiAssistantMethod = AssistantServiceGrpc.getChatAiAssistantMethod) == null) { + AssistantServiceGrpc.getChatAiAssistantMethod = + getChatAiAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ChatAiAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AssistantServiceMethodDescriptorSupplier("ChatAiAssistant")) + .build(); + } + } + } + return getChatAiAssistantMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AssistantServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + }; + return AssistantServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AssistantServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + }; + return AssistantServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AssistantServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + }; + return AssistantServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AssistantServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AssistantServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + }; + return AssistantServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public interface AsyncService { + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + default void listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAssistantSessionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + default void getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + default void createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + default void deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAssistantSessionMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + default void runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getRunAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + default void chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getChatAiAssistantMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public abstract static class AssistantServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AssistantServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AssistantServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public void listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAssistantSessionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public void getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public void createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public void deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAssistantSessionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public void runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getRunAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public void chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getChatAiAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAssistantSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.RunAssistantResponse runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getRunAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getChatAiAssistantMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AssistantServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse listAssistantSessions( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAssistantSessionsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSession( + com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.cloud.ces.v1beta.AssistantSession createAssistantSession( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.protobuf.Empty deleteAssistantSession( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAssistantSessionMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.RunAssistantResponse runAssistant( + com.google.cloud.ces.v1beta.RunAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getRunAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse chatAiAssistant( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getChatAiAssistantMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AssistantService. + * + *
+   * The service that manages assistant-related resources in Customer Engagement
+   * Suite (CES). The assistant, Arc, is a conversational agent embedded in CES
+   * applications to help users with building their agents.
+   * 
+ */ + public static final class AssistantServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AssistantServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AssistantServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AssistantServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
+     * Lists all assistant sessions in the given app.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse> + listAssistantSessions(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAssistantSessionsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Gets details of the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AssistantSession> + getAssistantSession(com.google.cloud.ces.v1beta.GetAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Creates a new assistant session in the given app.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.AssistantSession> + createAssistantSession(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Deletes the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteAssistantSession(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAssistantSessionMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs the assistant agent for the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.RunAssistantResponse> + runAssistant(com.google.cloud.ces.v1beta.RunAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getRunAssistantMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.ChatAiAssistantResponse> + chatAiAssistant(com.google.cloud.ces.v1beta.ChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getChatAiAssistantMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_LIST_ASSISTANT_SESSIONS = 0; + private static final int METHODID_GET_ASSISTANT_SESSION = 1; + private static final int METHODID_CREATE_ASSISTANT_SESSION = 2; + private static final int METHODID_DELETE_ASSISTANT_SESSION = 3; + private static final int METHODID_RUN_ASSISTANT = 4; + private static final int METHODID_CHAT_AI_ASSISTANT = 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_LIST_ASSISTANT_SESSIONS: + serviceImpl.listAssistantSessions( + (com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse>) + responseObserver); + break; + case METHODID_GET_ASSISTANT_SESSION: + serviceImpl.getAssistantSession( + (com.google.cloud.ces.v1beta.GetAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_ASSISTANT_SESSION: + serviceImpl.createAssistantSession( + (com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_ASSISTANT_SESSION: + serviceImpl.deleteAssistantSession( + (com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_RUN_ASSISTANT: + serviceImpl.runAssistant( + (com.google.cloud.ces.v1beta.RunAssistantRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CHAT_AI_ASSISTANT: + serviceImpl.chatAiAssistant( + (com.google.cloud.ces.v1beta.ChatAiAssistantRequest) 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( + getListAssistantSessionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse>( + service, METHODID_LIST_ASSISTANT_SESSIONS))) + .addMethod( + getGetAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.GetAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession>( + service, METHODID_GET_ASSISTANT_SESSION))) + .addMethod( + getCreateAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest, + com.google.cloud.ces.v1beta.AssistantSession>( + service, METHODID_CREATE_ASSISTANT_SESSION))) + .addMethod( + getDeleteAssistantSessionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest, + com.google.protobuf.Empty>(service, METHODID_DELETE_ASSISTANT_SESSION))) + .addMethod( + getRunAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.RunAssistantRequest, + com.google.cloud.ces.v1beta.RunAssistantResponse>( + service, METHODID_RUN_ASSISTANT))) + .addMethod( + getChatAiAssistantMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ChatAiAssistantRequest, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse>( + service, METHODID_CHAT_AI_ASSISTANT))) + .build(); + } + + private abstract static class AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AssistantServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AssistantService"); + } + } + + private static final class AssistantServiceFileDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier { + AssistantServiceFileDescriptorSupplier() {} + } + + private static final class AssistantServiceMethodDescriptorSupplier + extends AssistantServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AssistantServiceMethodDescriptorSupplier(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 (AssistantServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AssistantServiceFileDescriptorSupplier()) + .addMethod(getListAssistantSessionsMethod()) + .addMethod(getGetAssistantSessionMethod()) + .addMethod(getCreateAssistantSessionMethod()) + .addMethod(getDeleteAssistantSessionMethod()) + .addMethod(getRunAssistantMethod()) + .addMethod(getChatAiAssistantMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java index 305fd619c56d..79d0f180e640 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceGrpc.java @@ -168,6 +168,158 @@ private SessionServiceGrpc() {} return getBidiRunSessionMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "StreamChatAiAssistant", + requestType = com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest.class, + responseType = com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + getStreamChatAiAssistantMethod; + if ((getStreamChatAiAssistantMethod = SessionServiceGrpc.getStreamChatAiAssistantMethod) + == null) { + synchronized (SessionServiceGrpc.class) { + if ((getStreamChatAiAssistantMethod = SessionServiceGrpc.getStreamChatAiAssistantMethod) + == null) { + SessionServiceGrpc.getStreamChatAiAssistantMethod = + getStreamChatAiAssistantMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "StreamChatAiAssistant")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("StreamChatAiAssistant")) + .build(); + } + } + } + return getStreamChatAiAssistantMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelAssistantTurn", + requestType = com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + responseType = com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + getCancelAssistantTurnMethod; + if ((getCancelAssistantTurnMethod = SessionServiceGrpc.getCancelAssistantTurnMethod) == null) { + synchronized (SessionServiceGrpc.class) { + if ((getCancelAssistantTurnMethod = SessionServiceGrpc.getCancelAssistantTurnMethod) + == null) { + SessionServiceGrpc.getCancelAssistantTurnMethod = + getCancelAssistantTurnMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CancelAssistantTurn")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier("CancelAssistantTurn")) + .build(); + } + } + } + return getCancelAssistantTurnMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateOnboardingSuggestions", + requestType = com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + responseType = com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + getGenerateOnboardingSuggestionsMethod; + if ((getGenerateOnboardingSuggestionsMethod = + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod) + == null) { + synchronized (SessionServiceGrpc.class) { + if ((getGenerateOnboardingSuggestionsMethod = + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod) + == null) { + SessionServiceGrpc.getGenerateOnboardingSuggestionsMethod = + getGenerateOnboardingSuggestionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateOnboardingSuggestions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new SessionServiceMethodDescriptorSupplier( + "GenerateOnboardingSuggestions")) + .build(); + } + } + } + return getGenerateOnboardingSuggestionsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static SessionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -334,6 +486,60 @@ default void streamRunSession( return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( getBidiRunSessionMethod(), responseObserver); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + default void streamChatAiAssistant( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getStreamChatAiAssistantMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + default void cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelAssistantTurnMethod(), responseObserver); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + default void generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateOnboardingSuggestionsMethod(), responseObserver); + } } /** @@ -476,6 +682,66 @@ public void streamRunSession( return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getBidiRunSessionMethod(), getCallOptions()), responseObserver); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + public void streamChatAiAssistant( + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncServerStreamingCall( + getChannel().newCall(getStreamChatAiAssistantMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public void cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCancelAssistantTurnMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public void generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateOnboardingSuggestionsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -599,6 +865,58 @@ public com.google.cloud.ces.v1beta.RunSessionResponse runSession( return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( getChannel(), getBidiRunSessionMethod(), getCallOptions()); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + ?, com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse> + streamChatAiAssistant(com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( + getChannel(), getStreamChatAiAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCancelAssistantTurnMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateOnboardingSuggestionsMethod(), getCallOptions(), request); + } } /** @@ -652,6 +970,54 @@ public java.util.Iterator stream return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamRunSessionMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Runs Arc, the AI assistant, for the specified assistant session in a
+     * streaming fashion.
+     * 
+ */ + public java.util.Iterator + streamChatAiAssistant(com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest request) { + return io.grpc.stub.ClientCalls.blockingServerStreamingCall( + getChannel(), getStreamChatAiAssistantMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse cancelAssistantTurn( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCancelAssistantTurnMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateOnboardingSuggestionsMethod(), getCallOptions(), request); + } } /** @@ -686,11 +1052,51 @@ protected SessionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRunSessionMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Cancels the assistant session's in-flight turn, if any: the explicit user
+     * stop for a turn running detached from any stream. A cancel landing on a
+     * task that does not host the turn preempts it through the session turn
+     * epoch instead, ending it within one lease renewal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse> + cancelAssistantTurn(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCancelAssistantTurnMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Generates personalized onboarding suggestions for the Arc
+     * zero state: classifies the requesting user (new / exploring / returning)
+     * from their assistant-session history in the app and returns suggestion
+     * chips (resume a session, continue work, or start something new) to render
+     * before any message is sent.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse> + generateOnboardingSuggestions( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateOnboardingSuggestionsMethod(), getCallOptions()), + request); + } } private static final int METHODID_RUN_SESSION = 0; private static final int METHODID_STREAM_RUN_SESSION = 1; - private static final int METHODID_BIDI_RUN_SESSION = 2; + private static final int METHODID_STREAM_CHAT_AI_ASSISTANT = 2; + private static final int METHODID_CANCEL_ASSISTANT_TURN = 3; + private static final int METHODID_GENERATE_ONBOARDING_SUGGESTIONS = 4; + private static final int METHODID_BIDI_RUN_SESSION = 5; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -721,6 +1127,26 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_STREAM_CHAT_AI_ASSISTANT: + serviceImpl.streamChatAiAssistant( + (com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse>) + responseObserver); + break; + case METHODID_CANCEL_ASSISTANT_TURN: + serviceImpl.cancelAssistantTurn( + (com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GENERATE_ONBOARDING_SUGGESTIONS: + serviceImpl.generateOnboardingSuggestions( + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -765,6 +1191,27 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.ces.v1beta.BidiSessionClientMessage, com.google.cloud.ces.v1beta.BidiSessionServerMessage>( service, METHODID_BIDI_RUN_SESSION))) + .addMethod( + getStreamChatAiAssistantMethod(), + io.grpc.stub.ServerCalls.asyncServerStreamingCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.StreamChatAiAssistantRequest, + com.google.cloud.ces.v1beta.StreamChatAiAssistantResponse>( + service, METHODID_STREAM_CHAT_AI_ASSISTANT))) + .addMethod( + getCancelAssistantTurnMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse>( + service, METHODID_CANCEL_ASSISTANT_TURN))) + .addMethod( + getGenerateOnboardingSuggestionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse>( + service, METHODID_GENERATE_ONBOARDING_SUGGESTIONS))) .build(); } @@ -819,6 +1266,9 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getRunSessionMethod()) .addMethod(getStreamRunSessionMethod()) .addMethod(getBidiRunSessionMethod()) + .addMethod(getStreamChatAiAssistantMethod()) + .addMethod(getCancelAssistantTurnMethod()) + .addMethod(getGenerateOnboardingSuggestionsMethod()) .build(); } } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java new file mode 100644 index 000000000000..5c4126f47ff3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfo.java @@ -0,0 +1,1883 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Live-attachment info for a session turn that is currently running,
+ * disconnected from its client, or parked for pickup by another server task.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ActiveTurnInfo} + */ +@com.google.protobuf.Generated +public final class ActiveTurnInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ActiveTurnInfo) + ActiveTurnInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ActiveTurnInfo"); + } + + // Use ActiveTurnInfo.newBuilder() to construct. + private ActiveTurnInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActiveTurnInfo() { + turnId_ = ""; + status_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ActiveTurnInfo.class, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder.class); + } + + /** + * + * + *
+   * How the running turn currently relates to clients and server tasks.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ActiveTurnInfo.Status} + */ + public enum Status implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + STATUS_UNSPECIFIED(0), + /** + * + * + *
+     * The turn is executing with at least one client attached.
+     * 
+ * + * RUNNING = 1; + */ + RUNNING(1), + /** + * + * + *
+     * The turn is executing with no client attached.
+     * 
+ * + * DISCONNECTED = 2; + */ + DISCONNECTED(2), + /** + * + * + *
+     * The turn is parked for pickup: the next attach continues it.
+     * 
+ * + * RESUMING = 3; + */ + RESUMING(3), + /** + * + * + *
+     * The turn's server lease has lapsed and no task is driving it; the next
+     * read seals it to a committed partial. Not attachable.
+     * 
+ * + * ABANDONED = 4; + */ + ABANDONED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Status"); + } + + /** + * + * + *
+     * Unspecified.
+     * 
+ * + * STATUS_UNSPECIFIED = 0; + */ + public static final int STATUS_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The turn is executing with at least one client attached.
+     * 
+ * + * RUNNING = 1; + */ + public static final int RUNNING_VALUE = 1; + + /** + * + * + *
+     * The turn is executing with no client attached.
+     * 
+ * + * DISCONNECTED = 2; + */ + public static final int DISCONNECTED_VALUE = 2; + + /** + * + * + *
+     * The turn is parked for pickup: the next attach continues it.
+     * 
+ * + * RESUMING = 3; + */ + public static final int RESUMING_VALUE = 3; + + /** + * + * + *
+     * The turn's server lease has lapsed and no task is driving it; the next
+     * read seals it to a committed partial. Not attachable.
+     * 
+ * + * ABANDONED = 4; + */ + public static final int ABANDONED_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 Status 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 Status forNumber(int value) { + switch (value) { + case 0: + return STATUS_UNSPECIFIED; + case 1: + return RUNNING; + case 2: + return DISCONNECTED; + case 3: + return RESUMING; + case 4: + return ABANDONED; + 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 Status findValueByNumber(int number) { + return Status.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ActiveTurnInfo.getDescriptor().getEnumTypes().get(0); + } + + private static final Status[] VALUES = values(); + + public static Status 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 Status(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ActiveTurnInfo.Status) + } + + private int bitField0_; + public static final int TURN_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 2; + private int status_ = 0; + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus() { + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status result = + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.forNumber(status_); + return result == null ? com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.UNRECOGNIZED : result; + } + + public static final int START_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp startTime_; + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .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_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .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. When the turn started.
+   * 
+ * + * .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 LAST_PROGRESS_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp lastProgressTime_; + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + @java.lang.Override + public boolean hasLastProgressTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLastProgressTime() { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder() { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + + public static final int ORPHAN_DEADLINE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp orphanDeadlineTime_; + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + @java.lang.Override + public boolean hasOrphanDeadlineTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getOrphanDeadlineTime() { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder() { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, turnId_); + } + if (status_ + != com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.STATUS_UNSPECIFIED.getNumber()) { + output.writeEnum(2, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getLastProgressTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getOrphanDeadlineTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, turnId_); + } + if (status_ + != com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.STATUS_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, status_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStartTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getLastProgressTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOrphanDeadlineTime()); + } + 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.ces.v1beta.ActiveTurnInfo)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ActiveTurnInfo other = + (com.google.cloud.ces.v1beta.ActiveTurnInfo) obj; + + if (!getTurnId().equals(other.getTurnId())) return false; + if (status_ != other.status_) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasLastProgressTime() != other.hasLastProgressTime()) return false; + if (hasLastProgressTime()) { + if (!getLastProgressTime().equals(other.getLastProgressTime())) return false; + } + if (hasOrphanDeadlineTime() != other.hasOrphanDeadlineTime()) return false; + if (hasOrphanDeadlineTime()) { + if (!getOrphanDeadlineTime().equals(other.getOrphanDeadlineTime())) 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) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + status_; + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasLastProgressTime()) { + hash = (37 * hash) + LAST_PROGRESS_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLastProgressTime().hashCode(); + } + if (hasOrphanDeadlineTime()) { + hash = (37 * hash) + ORPHAN_DEADLINE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getOrphanDeadlineTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo 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.ces.v1beta.ActiveTurnInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + 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.ces.v1beta.ActiveTurnInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ActiveTurnInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Live-attachment info for a session turn that is currently running,
+   * disconnected from its client, or parked for pickup by another server task.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ActiveTurnInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ActiveTurnInfo) + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ActiveTurnInfo.class, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ActiveTurnInfo.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetStartTimeFieldBuilder(); + internalGetLastProgressTimeFieldBuilder(); + internalGetOrphanDeadlineTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnId_ = ""; + status_ = 0; + startTime_ = null; + if (startTimeBuilder_ != null) { + startTimeBuilder_.dispose(); + startTimeBuilder_ = null; + } + lastProgressTime_ = null; + if (lastProgressTimeBuilder_ != null) { + lastProgressTimeBuilder_.dispose(); + lastProgressTimeBuilder_ = null; + } + orphanDeadlineTime_ = null; + if (orphanDeadlineTimeBuilder_ != null) { + orphanDeadlineTimeBuilder_.dispose(); + orphanDeadlineTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo build() { + com.google.cloud.ces.v1beta.ActiveTurnInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo buildPartial() { + com.google.cloud.ces.v1beta.ActiveTurnInfo result = + new com.google.cloud.ces.v1beta.ActiveTurnInfo(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ActiveTurnInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnId_ = turnId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.status_ = status_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.lastProgressTime_ = + lastProgressTimeBuilder_ == null ? lastProgressTime_ : lastProgressTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orphanDeadlineTime_ = + orphanDeadlineTimeBuilder_ == null + ? orphanDeadlineTime_ + : orphanDeadlineTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ActiveTurnInfo) { + return mergeFrom((com.google.cloud.ces.v1beta.ActiveTurnInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ActiveTurnInfo other) { + if (other == com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance()) return this; + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.status_ != 0) { + setStatusValue(other.getStatusValue()); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasLastProgressTime()) { + mergeLastProgressTime(other.getLastProgressTime()); + } + if (other.hasOrphanDeadlineTime()) { + mergeOrphanDeadlineTime(other.getOrphanDeadlineTime()); + } + 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: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + status_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetLastProgressTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOrphanDeadlineTimeFieldBuilder().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 java.lang.Object turnId_ = ""; + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifies the turn; echoed by resume snapshots on the streaming API.
+     * 
+ * + * string turn_id = 1; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int status_ = 0; + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + @java.lang.Override + public int getStatusValue() { + return status_; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @param value The enum numeric value on the wire for status to set. + * @return This builder for chaining. + */ + public Builder setStatusValue(int value) { + status_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus() { + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status result = + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.forNumber(status_); + return result == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.Status.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(com.google.cloud.ces.v1beta.ActiveTurnInfo.Status value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + status_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Current attachment status.
+     * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + bitField0_ = (bitField0_ & ~0x00000002); + status_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetStartTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn started.
+     * 
+ * + * .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. When the turn started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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 lastProgressTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + lastProgressTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + public boolean hasLastProgressTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + public com.google.protobuf.Timestamp getLastProgressTime() { + if (lastProgressTimeBuilder_ == null) { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } else { + return lastProgressTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProgressTime(com.google.protobuf.Timestamp value) { + if (lastProgressTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + lastProgressTime_ = value; + } else { + lastProgressTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLastProgressTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (lastProgressTimeBuilder_ == null) { + lastProgressTime_ = builderForValue.build(); + } else { + lastProgressTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLastProgressTime(com.google.protobuf.Timestamp value) { + if (lastProgressTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && lastProgressTime_ != null + && lastProgressTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getLastProgressTimeBuilder().mergeFrom(value); + } else { + lastProgressTime_ = value; + } + } else { + lastProgressTimeBuilder_.mergeFrom(value); + } + if (lastProgressTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLastProgressTime() { + bitField0_ = (bitField0_ & ~0x00000008); + lastProgressTime_ = null; + if (lastProgressTimeBuilder_ != null) { + lastProgressTimeBuilder_.dispose(); + lastProgressTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getLastProgressTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetLastProgressTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder() { + if (lastProgressTimeBuilder_ != null) { + return lastProgressTimeBuilder_.getMessageOrBuilder(); + } else { + return lastProgressTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : lastProgressTime_; + } + } + + /** + * + * + *
+     * Output only. When the turn last persisted progress.
+     * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetLastProgressTimeFieldBuilder() { + if (lastProgressTimeBuilder_ == null) { + lastProgressTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLastProgressTime(), getParentForChildren(), isClean()); + lastProgressTime_ = null; + } + return lastProgressTimeBuilder_; + } + + private com.google.protobuf.Timestamp orphanDeadlineTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + orphanDeadlineTimeBuilder_; + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + public boolean hasOrphanDeadlineTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + public com.google.protobuf.Timestamp getOrphanDeadlineTime() { + if (orphanDeadlineTimeBuilder_ == null) { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } else { + return orphanDeadlineTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOrphanDeadlineTime(com.google.protobuf.Timestamp value) { + if (orphanDeadlineTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + orphanDeadlineTime_ = value; + } else { + orphanDeadlineTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOrphanDeadlineTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (orphanDeadlineTimeBuilder_ == null) { + orphanDeadlineTime_ = builderForValue.build(); + } else { + orphanDeadlineTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOrphanDeadlineTime(com.google.protobuf.Timestamp value) { + if (orphanDeadlineTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && orphanDeadlineTime_ != null + && orphanDeadlineTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getOrphanDeadlineTimeBuilder().mergeFrom(value); + } else { + orphanDeadlineTime_ = value; + } + } else { + orphanDeadlineTimeBuilder_.mergeFrom(value); + } + if (orphanDeadlineTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOrphanDeadlineTime() { + bitField0_ = (bitField0_ & ~0x00000010); + orphanDeadlineTime_ = null; + if (orphanDeadlineTimeBuilder_ != null) { + orphanDeadlineTimeBuilder_.dispose(); + orphanDeadlineTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getOrphanDeadlineTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOrphanDeadlineTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder() { + if (orphanDeadlineTimeBuilder_ != null) { + return orphanDeadlineTimeBuilder_.getMessageOrBuilder(); + } else { + return orphanDeadlineTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : orphanDeadlineTime_; + } + } + + /** + * + * + *
+     * Output only. When the turn will be wound down if no client attaches.
+     * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetOrphanDeadlineTimeFieldBuilder() { + if (orphanDeadlineTimeBuilder_ == null) { + orphanDeadlineTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getOrphanDeadlineTime(), getParentForChildren(), isClean()); + orphanDeadlineTime_ = null; + } + return orphanDeadlineTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ActiveTurnInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ActiveTurnInfo) + private static final com.google.cloud.ces.v1beta.ActiveTurnInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ActiveTurnInfo(); + } + + public static com.google.cloud.ces.v1beta.ActiveTurnInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActiveTurnInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ActiveTurnInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java new file mode 100644 index 000000000000..28a30b3ab242 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ActiveTurnInfoOrBuilder.java @@ -0,0 +1,206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ActiveTurnInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ActiveTurnInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+   * Identifies the turn; echoed by resume snapshots on the streaming API.
+   * 
+ * + * string turn_id = 1; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The enum numeric value on the wire for status. + */ + int getStatusValue(); + + /** + * + * + *
+   * Current attachment status.
+   * 
+ * + * .google.cloud.ces.v1beta.ActiveTurnInfo.Status status = 2; + * + * @return The status. + */ + com.google.cloud.ces.v1beta.ActiveTurnInfo.Status getStatus(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + + /** + * + * + *
+   * Output only. When the turn started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the lastProgressTime field is set. + */ + boolean hasLastProgressTime(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The lastProgressTime. + */ + com.google.protobuf.Timestamp getLastProgressTime(); + + /** + * + * + *
+   * Output only. When the turn last persisted progress.
+   * 
+ * + * + * .google.protobuf.Timestamp last_progress_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getLastProgressTimeOrBuilder(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the orphanDeadlineTime field is set. + */ + boolean hasOrphanDeadlineTime(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The orphanDeadlineTime. + */ + com.google.protobuf.Timestamp getOrphanDeadlineTime(); + + /** + * + * + *
+   * Output only. When the turn will be wound down if no client attaches.
+   * 
+ * + * + * .google.protobuf.Timestamp orphan_deadline_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getOrphanDeadlineTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java index d00005b91b87..e99845263e86 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Agent.java @@ -2915,113 +2915,69 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getDefaultInstanc } } - public interface AgentToolsetOrBuilder + public interface RemoteA2aAgentOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.AgentToolset) + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) com.google.protobuf.MessageOrBuilder { /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ - java.lang.String getToolset(); + boolean hasA2AConfig(); /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. - */ - com.google.protobuf.ByteString getToolsetBytes(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - java.util.List getToolIdsList(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - int getToolIdsCount(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. + * @return The a2aConfig. */ - java.lang.String getToolIds(int index); + com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig(); /** * * *
-     * Optional. The tools IDs to filter the toolset.
+     * Required. The A2A connection configuration.
      * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - com.google.protobuf.ByteString getToolIdsBytes(int index); + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder(); } /** * * *
-   * A toolset with a selection of its tools.
+   * The agent which will transfer execution to a remote
+   * [A2A](https://github.com/a2aproject/A2A) agent.
    * 
* - * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + * Protobuf type {@code google.cloud.ces.v1beta.Agent.RemoteA2aAgent} */ - public static final class AgentToolset extends com.google.protobuf.GeneratedMessage + public static final class RemoteA2aAgent extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.AgentToolset) - AgentToolsetOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + RemoteA2aAgentOrBuilder { private static final long serialVersionUID = 0L; static { @@ -3031,161 +2987,89 @@ public static final class AgentToolset extends com.google.protobuf.GeneratedMess /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "AgentToolset"); + "RemoteA2aAgent"); } - // Use AgentToolset.newBuilder() to construct. - private AgentToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use RemoteA2aAgent.newBuilder() to construct. + private RemoteA2aAgent(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private AgentToolset() { - toolset_ = ""; - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } + private RemoteA2aAgent() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1beta.Agent.AgentToolset.class, - com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.class, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder.class); } - public static final int TOOLSET_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object toolset_ = ""; + private int bitField0_; + public static final int A2A_CONFIG_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.RemoteA2aConfig a2AConfig_; /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ @java.lang.Override - public java.lang.String getToolset() { - java.lang.Object ref = toolset_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toolset_ = s; - return s; - } + public boolean hasA2AConfig() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-     * Required. The resource name of the toolset.
-     * Format:
-     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * Required. The A2A connection configuration.
      * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. + * @return The a2aConfig. */ @java.lang.Override - public com.google.protobuf.ByteString getToolsetBytes() { - java.lang.Object ref = toolset_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - toolset_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOOL_IDS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList toolIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - public com.google.protobuf.ProtocolStringList getToolIdsList() { - return toolIds_; - } - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - public int getToolIdsCount() { - return toolIds_.size(); - } - - /** - * - * - *
-     * Optional. The tools IDs to filter the toolset.
-     * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. - */ - public java.lang.String getToolIds(int index) { - return toolIds_.get(index); + public com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig() { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } /** * * *
-     * Optional. The tools IDs to filter the toolset.
+     * Required. The A2A connection configuration.
      * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public com.google.protobuf.ByteString getToolIdsBytes(int index) { - return toolIds_.getByteString(index); + @java.lang.Override + public com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder() { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } private byte memoizedIsInitialized = -1; @@ -3202,11 +3086,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); - } - for (int i = 0; i < toolIds_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIds_.getRaw(i)); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getA2AConfig()); } getUnknownFields().writeTo(output); } @@ -3217,16 +3098,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(toolset_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); - } - { - int dataSize = 0; - for (int i = 0; i < toolIds_.size(); i++) { - dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); - } - size += dataSize; - size += 1 * getToolIdsList().size(); + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getA2AConfig()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -3238,14 +3111,16 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.ces.v1beta.Agent.AgentToolset)) { + if (!(obj instanceof com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent)) { return super.equals(obj); } - com.google.cloud.ces.v1beta.Agent.AgentToolset other = - (com.google.cloud.ces.v1beta.Agent.AgentToolset) obj; + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent other = + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) obj; - if (!getToolset().equals(other.getToolset())) return false; - if (!getToolIdsList().equals(other.getToolIdsList())) return false; + if (hasA2AConfig() != other.hasA2AConfig()) return false; + if (hasA2AConfig()) { + if (!getA2AConfig().equals(other.getA2AConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3257,82 +3132,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TOOLSET_FIELD_NUMBER; - hash = (53 * hash) + getToolset().hashCode(); - if (getToolIdsCount() > 0) { - hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; - hash = (53 * hash) + getToolIdsList().hashCode(); + if (hasA2AConfig()) { + hash = (37 * hash) + A2A_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getA2AConfig().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent 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.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( 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.ces.v1beta.Agent.AgentToolset parseFrom(byte[] data) + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -3349,7 +3222,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.ces.v1beta.Agent.AgentToolset prototype) { + public static Builder newBuilder(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -3368,60 +3241,73 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-     * A toolset with a selection of its tools.
+     * The agent which will transfer execution to a remote
+     * [A2A](https://github.com/a2aproject/A2A) agent.
      * 
* - * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + * Protobuf type {@code google.cloud.ces.v1beta.Agent.RemoteA2aAgent} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.AgentToolset) - com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.ces.v1beta.Agent.AgentToolset.class, - com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.class, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder.class); } - // Construct using com.google.cloud.ces.v1beta.Agent.AgentToolset.newBuilder() - private Builder() {} + // Construct using com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetA2AConfigFieldBuilder(); + } } @java.lang.Override public Builder clear() { super.clear(); bitField0_ = 0; - toolset_ = ""; - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + a2AConfig_ = null; + if (a2AConfigBuilder_ != null) { + a2AConfigBuilder_.dispose(); + a2AConfigBuilder_ = null; + } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.cloud.ces.v1beta.AgentProto - .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + .internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { - return com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { - com.google.cloud.ces.v1beta.Agent.AgentToolset result = buildPartial(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent build() { + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -3429,9 +3315,9 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { } @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { - com.google.cloud.ces.v1beta.Agent.AgentToolset result = - new com.google.cloud.ces.v1beta.Agent.AgentToolset(this); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent buildPartial() { + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result = + new com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -3439,44 +3325,31 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { return result; } - private void buildPartial0(com.google.cloud.ces.v1beta.Agent.AgentToolset result) { + private void buildPartial0(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.toolset_ = toolset_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - toolIds_.makeImmutable(); - result.toolIds_ = toolIds_; + result.a2AConfig_ = a2AConfigBuilder_ == null ? a2AConfig_ : a2AConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; } + result.bitField0_ |= to_bitField0_; } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.ces.v1beta.Agent.AgentToolset) { - return mergeFrom((com.google.cloud.ces.v1beta.Agent.AgentToolset) other); + if (other instanceof com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) { + return mergeFrom((com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.AgentToolset other) { - if (other == com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent other) { + if (other == com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance()) return this; - if (!other.getToolset().isEmpty()) { - toolset_ = other.toolset_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.toolIds_.isEmpty()) { - if (toolIds_.isEmpty()) { - toolIds_ = other.toolIds_; - bitField0_ |= 0x00000002; - } else { - ensureToolIdsIsMutable(); - toolIds_.addAll(other.toolIds_); - } - onChanged(); + if (other.hasA2AConfig()) { + mergeA2AConfig(other.getA2AConfig()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -3506,17 +3379,11 @@ public Builder mergeFrom( break; case 10: { - toolset_ = input.readStringRequireUtf8(); + input.readMessage( + internalGetA2AConfigFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureToolIdsIsMutable(); - toolIds_.add(s); - break; - } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3536,59 +3403,50 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object toolset_ = ""; + private com.google.cloud.ces.v1beta.RemoteA2aConfig a2AConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder> + a2AConfigBuilder_; /** * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The toolset. + * @return Whether the a2aConfig field is set. */ - public java.lang.String getToolset() { - java.lang.Object ref = toolset_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - toolset_ = s; - return s; - } else { - return (java.lang.String) ref; - } + public boolean hasA2AConfig() { + return ((bitField0_ & 0x00000001) != 0); } /** * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The bytes for toolset. + * @return The a2aConfig. */ - public com.google.protobuf.ByteString getToolsetBytes() { - java.lang.Object ref = toolset_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - toolset_ = b; - return b; + public com.google.cloud.ces.v1beta.RemoteA2aConfig getA2AConfig() { + if (a2AConfigBuilder_ == null) { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; } else { - return (com.google.protobuf.ByteString) ref; + return a2AConfigBuilder_.getMessage(); } } @@ -3596,23 +3454,22 @@ public com.google.protobuf.ByteString getToolsetBytes() { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The toolset to set. - * @return This builder for chaining. */ - public Builder setToolset(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setA2AConfig(com.google.cloud.ces.v1beta.RemoteA2aConfig value) { + if (a2AConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + a2AConfig_ = value; + } else { + a2AConfigBuilder_.setMessage(value); } - toolset_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -3622,20 +3479,21 @@ public Builder setToolset(java.lang.String value) { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @return This builder for chaining. */ - public Builder clearToolset() { - toolset_ = getDefaultInstance().getToolset(); - bitField0_ = (bitField0_ & ~0x00000001); + public Builder setA2AConfig( + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder builderForValue) { + if (a2AConfigBuilder_ == null) { + a2AConfig_ = builderForValue.build(); + } else { + a2AConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; onChanged(); return this; } @@ -3644,123 +3502,29 @@ public Builder clearToolset() { * * *
-       * Required. The resource name of the toolset.
-       * Format:
-       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * Required. The A2A connection configuration.
        * 
* * - * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; * - * - * @param value The bytes for toolset to set. - * @return This builder for chaining. */ - public Builder setToolsetBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - toolset_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList toolIds_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureToolIdsIsMutable() { - if (!toolIds_.isModifiable()) { - toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + public Builder mergeA2AConfig(com.google.cloud.ces.v1beta.RemoteA2aConfig value) { + if (a2AConfigBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && a2AConfig_ != null + && a2AConfig_ != com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance()) { + getA2AConfigBuilder().mergeFrom(value); + } else { + a2AConfig_ = value; + } + } else { + a2AConfigBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000002; - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the toolIds. - */ - public com.google.protobuf.ProtocolStringList getToolIdsList() { - toolIds_.makeImmutable(); - return toolIds_; - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of toolIds. - */ - public int getToolIdsCount() { - return toolIds_.size(); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The toolIds at the given index. - */ - public java.lang.String getToolIds(int index) { - return toolIds_.get(index); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the toolIds at the given index. - */ - public com.google.protobuf.ByteString getToolIdsBytes(int index) { - return toolIds_.getByteString(index); - } - - /** - * - * - *
-       * Optional. The tools IDs to filter the toolset.
-       * 
- * - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The toolIds to set. - * @return This builder for chaining. - */ - public Builder setToolIds(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + if (a2AConfig_ != null) { + bitField0_ |= 0x00000001; + onChanged(); } - ensureToolIdsIsMutable(); - toolIds_.set(index, value); - bitField0_ |= 0x00000002; - onChanged(); return this; } @@ -3768,21 +3532,20 @@ public Builder setToolIds(int index, java.lang.String value) { * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addToolIds(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder clearA2AConfig() { + bitField0_ = (bitField0_ & ~0x00000001); + a2AConfig_ = null; + if (a2AConfigBuilder_ != null) { + a2AConfigBuilder_.dispose(); + a2AConfigBuilder_ = null; } - ensureToolIdsIsMutable(); - toolIds_.add(value); - bitField0_ |= 0x00000002; onChanged(); return this; } @@ -3791,83 +3554,86 @@ public Builder addToolIds(java.lang.String value) { * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addAllToolIds(java.lang.Iterable values) { - ensureToolIdsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); - bitField0_ |= 0x00000002; + public com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder getA2AConfigBuilder() { + bitField0_ |= 0x00000001; onChanged(); - return this; + return internalGetA2AConfigFieldBuilder().getBuilder(); } /** * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder clearToolIds() { - toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); - ; - onChanged(); - return this; + public com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder getA2AConfigOrBuilder() { + if (a2AConfigBuilder_ != null) { + return a2AConfigBuilder_.getMessageOrBuilder(); + } else { + return a2AConfig_ == null + ? com.google.cloud.ces.v1beta.RemoteA2aConfig.getDefaultInstance() + : a2AConfig_; + } } /** * * *
-       * Optional. The tools IDs to filter the toolset.
+       * Required. The A2A connection configuration.
        * 
* - * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the toolIds to add. - * @return This builder for chaining. + * + * .google.cloud.ces.v1beta.RemoteA2aConfig a2a_config = 1 [(.google.api.field_behavior) = REQUIRED]; + * */ - public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder> + internalGetA2AConfigFieldBuilder() { + if (a2AConfigBuilder_ == null) { + a2AConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.RemoteA2aConfig, + com.google.cloud.ces.v1beta.RemoteA2aConfig.Builder, + com.google.cloud.ces.v1beta.RemoteA2aConfigOrBuilder>( + getA2AConfig(), getParentForChildren(), isClean()); + a2AConfig_ = null; } - checkByteStringIsUtf8(value); - ensureToolIdsIsMutable(); - toolIds_.add(value); - bitField0_ |= 0x00000002; - onChanged(); - return this; + return a2AConfigBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) } - // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.AgentToolset) - private static final com.google.cloud.ces.v1beta.Agent.AgentToolset DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.RemoteA2aAgent) + private static final com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.AgentToolset(); + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent(); } - public static com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstance() { + public static com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent 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 AgentToolset parsePartialFrom( + public RemoteA2aAgent parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -3887,17 +3653,1004 @@ public AgentToolset 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.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentToolsetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Agent.AgentToolset) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + java.lang.String getToolset(); + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + com.google.protobuf.ByteString getToolsetBytes(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + java.util.List getToolIdsList(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + int getToolIdsCount(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + java.lang.String getToolIds(int index); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + com.google.protobuf.ByteString getToolIdsBytes(int index); + } + + /** + * + * + *
+   * A toolset with a selection of its tools.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + */ + public static final class AgentToolset extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Agent.AgentToolset) + AgentToolsetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentToolset"); + } + + // Use AgentToolset.newBuilder() to construct. + private AgentToolset(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentToolset() { + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Agent.AgentToolset.class, + com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + } + + public static final int TOOLSET_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object toolset_ = ""; + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + @java.lang.Override + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } + } + + /** + * + * + *
+     * Required. The resource name of the toolset.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+     * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOL_IDS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + return toolIds_; + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
+     * Optional. The tools IDs to filter the toolset.
+     * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.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.GeneratedMessage.isStringEmpty(toolset_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolset_); + } + for (int i = 0; i < toolIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIds_.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.GeneratedMessage.isStringEmpty(toolset_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolset_); + } + { + int dataSize = 0; + for (int i = 0; i < toolIds_.size(); i++) { + dataSize += computeStringSizeNoTag(toolIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getToolIdsList().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.ces.v1beta.Agent.AgentToolset)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Agent.AgentToolset other = + (com.google.cloud.ces.v1beta.Agent.AgentToolset) obj; + + if (!getToolset().equals(other.getToolset())) return false; + if (!getToolIdsList().equals(other.getToolIdsList())) 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) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + if (getToolIdsCount() > 0) { + hash = (37 * hash) + TOOL_IDS_FIELD_NUMBER; + hash = (53 * hash) + getToolIdsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset 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.ces.v1beta.Agent.AgentToolset parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + 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.ces.v1beta.Agent.AgentToolset parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.Agent.AgentToolset prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A toolset with a selection of its tools.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Agent.AgentToolset} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Agent.AgentToolset) + com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Agent.AgentToolset.class, + com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Agent.AgentToolset.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + toolset_ = ""; + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AgentProto + .internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset build() { + com.google.cloud.ces.v1beta.Agent.AgentToolset result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.AgentToolset buildPartial() { + com.google.cloud.ces.v1beta.Agent.AgentToolset result = + new com.google.cloud.ces.v1beta.Agent.AgentToolset(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Agent.AgentToolset result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.toolset_ = toolset_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + toolIds_.makeImmutable(); + result.toolIds_ = toolIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Agent.AgentToolset) { + return mergeFrom((com.google.cloud.ces.v1beta.Agent.AgentToolset) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent.AgentToolset other) { + if (other == com.google.cloud.ces.v1beta.Agent.AgentToolset.getDefaultInstance()) + return this; + if (!other.getToolset().isEmpty()) { + toolset_ = other.toolset_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.toolIds_.isEmpty()) { + if (toolIds_.isEmpty()) { + toolIds_ = other.toolIds_; + bitField0_ |= 0x00000002; + } else { + ensureToolIdsIsMutable(); + toolIds_.addAll(other.toolIds_); + } + 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: + { + toolset_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureToolIdsIsMutable(); + toolIds_.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; + } + + private int bitField0_; + + private java.lang.Object toolset_ = ""; + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The toolset. + */ + public java.lang.String getToolset() { + java.lang.Object ref = toolset_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + toolset_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolset. + */ + public com.google.protobuf.ByteString getToolsetBytes() { + java.lang.Object ref = toolset_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + toolset_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolset to set. + * @return This builder for chaining. + */ + public Builder setToolset(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolset() { + toolset_ = getDefaultInstance().getToolset(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Required. The resource name of the toolset.
+       * Format:
+       * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
+       * 
+ * + * + * string toolset = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolset to set. + * @return This builder for chaining. + */ + public Builder setToolsetBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolset_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList toolIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureToolIdsIsMutable() { + if (!toolIds_.isModifiable()) { + toolIds_ = new com.google.protobuf.LazyStringArrayList(toolIds_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the toolIds. + */ + public com.google.protobuf.ProtocolStringList getToolIdsList() { + toolIds_.makeImmutable(); + return toolIds_; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of toolIds. + */ + public int getToolIdsCount() { + return toolIds_.size(); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The toolIds at the given index. + */ + public java.lang.String getToolIds(int index) { + return toolIds_.get(index); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the toolIds at the given index. + */ + public com.google.protobuf.ByteString getToolIdsBytes(int index) { + return toolIds_.getByteString(index); + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The toolIds to set. + * @return This builder for chaining. + */ + public Builder setToolIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The toolIds to add. + * @return This builder for chaining. + */ + public Builder addAllToolIds(java.lang.Iterable values) { + ensureToolIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, toolIds_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearToolIds() { + toolIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The tools IDs to filter the toolset.
+       * 
+ * + * repeated string tool_ids = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the toolIds to add. + * @return This builder for chaining. + */ + public Builder addToolIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureToolIdsIsMutable(); + toolIds_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Agent.AgentToolset) + private static final com.google.cloud.ces.v1beta.Agent.AgentToolset DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Agent.AgentToolset(); + } + + public static com.google.cloud.ces.v1beta.Agent.AgentToolset getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentToolset parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.Agent.AgentToolset getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } @@ -3914,6 +4667,7 @@ public enum AgentTypeCase com.google.protobuf.AbstractMessage.InternalOneOfEnum { LLM_AGENT(26), REMOTE_DIALOGFLOW_AGENT(27), + REMOTE_A2A_AGENT(41), AGENTTYPE_NOT_SET(0); private final int value; @@ -3937,6 +4691,8 @@ public static AgentTypeCase forNumber(int value) { return LLM_AGENT; case 27: return REMOTE_DIALOGFLOW_AGENT; + case 41: + return REMOTE_A2A_AGENT; case 0: return AGENTTYPE_NOT_SET; default: @@ -4095,6 +4851,69 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogfl return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } + public static final int REMOTE_A2A_AGENT_FIELD_NUMBER = 41; + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteA2aAgent field is set. + */ + @java.lang.Override + public boolean hasRemoteA2AAgent() { + return agentTypeCase_ == 41; + } + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteA2aAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent() { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder() { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -5790,6 +6609,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validationErrors_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 32, validationErrors_.getRaw(i)); } + if (agentTypeCase_ == 41) { + output.writeMessage(41, (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_); + } getUnknownFields().writeTo(output); } @@ -5900,6 +6722,11 @@ public int getSerializedSize() { size += dataSize; size += 2 * getValidationErrorsList().size(); } + if (agentTypeCase_ == 41) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 41, (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -5953,6 +6780,9 @@ public boolean equals(final java.lang.Object obj) { case 27: if (!getRemoteDialogflowAgent().equals(other.getRemoteDialogflowAgent())) return false; break; + case 41: + if (!getRemoteA2AAgent().equals(other.getRemoteA2AAgent())) return false; + break; case 0: default: } @@ -6048,6 +6878,10 @@ public int hashCode() { hash = (37 * hash) + REMOTE_DIALOGFLOW_AGENT_FIELD_NUMBER; hash = (53 * hash) + getRemoteDialogflowAgent().hashCode(); break; + case 41: + hash = (37 * hash) + REMOTE_A2A_AGENT_FIELD_NUMBER; + hash = (53 * hash) + getRemoteA2AAgent().hashCode(); + break; case 0: default: } @@ -6216,6 +7050,9 @@ public Builder clear() { if (remoteDialogflowAgentBuilder_ != null) { remoteDialogflowAgentBuilder_.clear(); } + if (remoteA2AAgentBuilder_ != null) { + remoteA2AAgentBuilder_.clear(); + } name_ = ""; displayName_ = ""; description_ = ""; @@ -6233,42 +7070,42 @@ public Builder clear() { beforeAgentCallbacks_ = null; beforeAgentCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); if (afterAgentCallbacksBuilder_ == null) { afterAgentCallbacks_ = java.util.Collections.emptyList(); } else { afterAgentCallbacks_ = null; afterAgentCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); if (beforeModelCallbacksBuilder_ == null) { beforeModelCallbacks_ = java.util.Collections.emptyList(); } else { beforeModelCallbacks_ = null; beforeModelCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); if (afterModelCallbacksBuilder_ == null) { afterModelCallbacks_ = java.util.Collections.emptyList(); } else { afterModelCallbacks_ = null; afterModelCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); if (beforeToolCallbacksBuilder_ == null) { beforeToolCallbacks_ = java.util.Collections.emptyList(); } else { beforeToolCallbacks_ = null; beforeToolCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); if (afterToolCallbacksBuilder_ == null) { afterToolCallbacks_ = java.util.Collections.emptyList(); } else { afterToolCallbacks_ = null; afterToolCallbacksBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -6287,7 +7124,7 @@ public Builder clear() { toolsets_ = null; toolsetsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); generatedSummary_ = ""; if (transferRulesBuilder_ == null) { transferRules_ = java.util.Collections.emptyList(); @@ -6295,7 +7132,7 @@ public Builder clear() { transferRules_ = null; transferRulesBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); agentTypeCase_ = 0; agentType_ = null; @@ -6336,72 +7173,72 @@ public com.google.cloud.ces.v1beta.Agent buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Agent result) { if (beforeAgentCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0)) { + if (((bitField0_ & 0x00000400) != 0)) { beforeAgentCallbacks_ = java.util.Collections.unmodifiableList(beforeAgentCallbacks_); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } result.beforeAgentCallbacks_ = beforeAgentCallbacks_; } else { result.beforeAgentCallbacks_ = beforeAgentCallbacksBuilder_.build(); } if (afterAgentCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0)) { + if (((bitField0_ & 0x00000800) != 0)) { afterAgentCallbacks_ = java.util.Collections.unmodifiableList(afterAgentCallbacks_); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } result.afterAgentCallbacks_ = afterAgentCallbacks_; } else { result.afterAgentCallbacks_ = afterAgentCallbacksBuilder_.build(); } if (beforeModelCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { + if (((bitField0_ & 0x00001000) != 0)) { beforeModelCallbacks_ = java.util.Collections.unmodifiableList(beforeModelCallbacks_); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } result.beforeModelCallbacks_ = beforeModelCallbacks_; } else { result.beforeModelCallbacks_ = beforeModelCallbacksBuilder_.build(); } if (afterModelCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0)) { + if (((bitField0_ & 0x00002000) != 0)) { afterModelCallbacks_ = java.util.Collections.unmodifiableList(afterModelCallbacks_); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } result.afterModelCallbacks_ = afterModelCallbacks_; } else { result.afterModelCallbacks_ = afterModelCallbacksBuilder_.build(); } if (beforeToolCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0)) { + if (((bitField0_ & 0x00004000) != 0)) { beforeToolCallbacks_ = java.util.Collections.unmodifiableList(beforeToolCallbacks_); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } result.beforeToolCallbacks_ = beforeToolCallbacks_; } else { result.beforeToolCallbacks_ = beforeToolCallbacksBuilder_.build(); } if (afterToolCallbacksBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { + if (((bitField0_ & 0x00008000) != 0)) { afterToolCallbacks_ = java.util.Collections.unmodifiableList(afterToolCallbacks_); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } result.afterToolCallbacks_ = afterToolCallbacks_; } else { result.afterToolCallbacks_ = afterToolCallbacksBuilder_.build(); } if (toolsetsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0)) { + if (((bitField0_ & 0x00100000) != 0)) { toolsets_ = java.util.Collections.unmodifiableList(toolsets_); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } result.toolsets_ = toolsets_; } else { result.toolsets_ = toolsetsBuilder_.build(); } if (transferRulesBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0)) { + if (((bitField0_ & 0x00400000) != 0)) { transferRules_ = java.util.Collections.unmodifiableList(transferRules_); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } result.transferRules_ = transferRules_; } else { @@ -6411,51 +7248,51 @@ private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Agent result private void buildPartial0(com.google.cloud.ces.v1beta.Agent 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.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.description_ = description_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.modelSettings_ = modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.instruction_ = instruction_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { tools_.makeImmutable(); result.tools_ = tools_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { childAgents_.makeImmutable(); result.childAgents_ = childAgents_; } - if (((from_bitField0_ & 0x00008000) != 0)) { + if (((from_bitField0_ & 0x00010000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { guardrails_.makeImmutable(); result.guardrails_ = guardrails_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.etag_ = etag_; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.generatedSummary_ = generatedSummary_; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { validationErrors_.makeImmutable(); result.validationErrors_ = validationErrors_; } @@ -6471,6 +7308,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1beta.Agent result) { if (agentTypeCase_ == 27 && remoteDialogflowAgentBuilder_ != null) { result.agentType_ = remoteDialogflowAgentBuilder_.build(); } + if (agentTypeCase_ == 41 && remoteA2AAgentBuilder_ != null) { + result.agentType_ = remoteA2AAgentBuilder_.build(); + } } @java.lang.Override @@ -6487,17 +7327,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (other == com.google.cloud.ces.v1beta.Agent.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } if (other.hasModelSettings()) { @@ -6505,13 +7345,13 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getInstruction().isEmpty()) { instruction_ = other.instruction_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.tools_.isEmpty()) { if (tools_.isEmpty()) { tools_ = other.tools_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } else { ensureToolsIsMutable(); tools_.addAll(other.tools_); @@ -6521,7 +7361,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.childAgents_.isEmpty()) { if (childAgents_.isEmpty()) { childAgents_ = other.childAgents_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureChildAgentsIsMutable(); childAgents_.addAll(other.childAgents_); @@ -6532,7 +7372,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeAgentCallbacks_.isEmpty()) { if (beforeAgentCallbacks_.isEmpty()) { beforeAgentCallbacks_ = other.beforeAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); } else { ensureBeforeAgentCallbacksIsMutable(); beforeAgentCallbacks_.addAll(other.beforeAgentCallbacks_); @@ -6545,7 +7385,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeAgentCallbacksBuilder_.dispose(); beforeAgentCallbacksBuilder_ = null; beforeAgentCallbacks_ = other.beforeAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); beforeAgentCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeAgentCallbacksFieldBuilder() @@ -6559,7 +7399,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterAgentCallbacks_.isEmpty()) { if (afterAgentCallbacks_.isEmpty()) { afterAgentCallbacks_ = other.afterAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); } else { ensureAfterAgentCallbacksIsMutable(); afterAgentCallbacks_.addAll(other.afterAgentCallbacks_); @@ -6572,7 +7412,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterAgentCallbacksBuilder_.dispose(); afterAgentCallbacksBuilder_ = null; afterAgentCallbacks_ = other.afterAgentCallbacks_; - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); afterAgentCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterAgentCallbacksFieldBuilder() @@ -6586,7 +7426,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeModelCallbacks_.isEmpty()) { if (beforeModelCallbacks_.isEmpty()) { beforeModelCallbacks_ = other.beforeModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); } else { ensureBeforeModelCallbacksIsMutable(); beforeModelCallbacks_.addAll(other.beforeModelCallbacks_); @@ -6599,7 +7439,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeModelCallbacksBuilder_.dispose(); beforeModelCallbacksBuilder_ = null; beforeModelCallbacks_ = other.beforeModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); beforeModelCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeModelCallbacksFieldBuilder() @@ -6613,7 +7453,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterModelCallbacks_.isEmpty()) { if (afterModelCallbacks_.isEmpty()) { afterModelCallbacks_ = other.afterModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); } else { ensureAfterModelCallbacksIsMutable(); afterModelCallbacks_.addAll(other.afterModelCallbacks_); @@ -6626,7 +7466,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterModelCallbacksBuilder_.dispose(); afterModelCallbacksBuilder_ = null; afterModelCallbacks_ = other.afterModelCallbacks_; - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); afterModelCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterModelCallbacksFieldBuilder() @@ -6640,7 +7480,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.beforeToolCallbacks_.isEmpty()) { if (beforeToolCallbacks_.isEmpty()) { beforeToolCallbacks_ = other.beforeToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); } else { ensureBeforeToolCallbacksIsMutable(); beforeToolCallbacks_.addAll(other.beforeToolCallbacks_); @@ -6653,7 +7493,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { beforeToolCallbacksBuilder_.dispose(); beforeToolCallbacksBuilder_ = null; beforeToolCallbacks_ = other.beforeToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); beforeToolCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetBeforeToolCallbacksFieldBuilder() @@ -6667,7 +7507,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.afterToolCallbacks_.isEmpty()) { if (afterToolCallbacks_.isEmpty()) { afterToolCallbacks_ = other.afterToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); } else { ensureAfterToolCallbacksIsMutable(); afterToolCallbacks_.addAll(other.afterToolCallbacks_); @@ -6680,7 +7520,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { afterToolCallbacksBuilder_.dispose(); afterToolCallbacksBuilder_ = null; afterToolCallbacks_ = other.afterToolCallbacks_; - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); afterToolCallbacksBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetAfterToolCallbacksFieldBuilder() @@ -6699,7 +7539,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.guardrails_.isEmpty()) { if (guardrails_.isEmpty()) { guardrails_ = other.guardrails_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } else { ensureGuardrailsIsMutable(); guardrails_.addAll(other.guardrails_); @@ -6708,14 +7548,14 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } if (toolsetsBuilder_ == null) { if (!other.toolsets_.isEmpty()) { if (toolsets_.isEmpty()) { toolsets_ = other.toolsets_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); } else { ensureToolsetsIsMutable(); toolsets_.addAll(other.toolsets_); @@ -6728,7 +7568,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { toolsetsBuilder_.dispose(); toolsetsBuilder_ = null; toolsets_ = other.toolsets_; - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); toolsetsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetToolsetsFieldBuilder() @@ -6740,14 +7580,14 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { } if (!other.getGeneratedSummary().isEmpty()) { generatedSummary_ = other.generatedSummary_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (transferRulesBuilder_ == null) { if (!other.transferRules_.isEmpty()) { if (transferRules_.isEmpty()) { transferRules_ = other.transferRules_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); } else { ensureTransferRulesIsMutable(); transferRules_.addAll(other.transferRules_); @@ -6760,7 +7600,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { transferRulesBuilder_.dispose(); transferRulesBuilder_ = null; transferRules_ = other.transferRules_; - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); transferRulesBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetTransferRulesFieldBuilder() @@ -6773,7 +7613,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { if (!other.validationErrors_.isEmpty()) { if (validationErrors_.isEmpty()) { validationErrors_ = other.validationErrors_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } else { ensureValidationErrorsIsMutable(); validationErrors_.addAll(other.validationErrors_); @@ -6791,6 +7631,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Agent other) { mergeRemoteDialogflowAgent(other.getRemoteDialogflowAgent()); break; } + case REMOTE_A2A_AGENT: + { + mergeRemoteA2AAgent(other.getRemoteA2AAgent()); + break; + } case AGENTTYPE_NOT_SET: { break; @@ -6825,32 +7670,32 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: { input.readMessage( internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 34 case 50: { instruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 50 case 58: @@ -6871,14 +7716,14 @@ public Builder mergeFrom( { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 122 case 130: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 130 case 138: @@ -6969,7 +7814,7 @@ public Builder mergeFrom( case 194: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 194 case 210: @@ -7002,7 +7847,7 @@ public Builder mergeFrom( case 234: { generatedSummary_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 234 case 242: @@ -7025,6 +7870,13 @@ public Builder mergeFrom( validationErrors_.add(s); break; } // case 258 + case 330: + { + input.readMessage( + internalGetRemoteA2AAgentFieldBuilder().getBuilder(), extensionRegistry); + agentTypeCase_ = 41; + break; + } // case 330 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -7053,60 +7905,309 @@ public Builder clearAgentType() { agentTypeCase_ = 0; agentType_ = null; onChanged(); - return this; + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> + llmAgentBuilder_; + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the llmAgent field is set. + */ + @java.lang.Override + public boolean hasLlmAgent() { + return agentTypeCase_ == 26; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The llmAgent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } else { + if (agentTypeCase_ == 26) { + return llmAgentBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + onChanged(); + } else { + llmAgentBuilder_.setMessage(value); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder builderForValue) { + if (llmAgentBuilder_ == null) { + agentType_ = builderForValue.build(); + onChanged(); + } else { + llmAgentBuilder_.setMessage(builderForValue.build()); + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26 + && agentType_ != com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance()) { + agentType_ = + com.google.cloud.ces.v1beta.Agent.LlmAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_) + .mergeFrom(value) + .buildPartial(); + } else { + agentType_ = value; + } + onChanged(); + } else { + if (agentTypeCase_ == 26) { + llmAgentBuilder_.mergeFrom(value); + } else { + llmAgentBuilder_.setMessage(value); + } + } + agentTypeCase_ = 26; + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLlmAgent() { + if (llmAgentBuilder_ == null) { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + onChanged(); + } + } else { + if (agentTypeCase_ == 26) { + agentTypeCase_ = 0; + agentType_ = null; + } + llmAgentBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder getLlmAgentBuilder() { + return internalGetLlmAgentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { + if ((agentTypeCase_ == 26) && (llmAgentBuilder_ != null)) { + return llmAgentBuilder_.getMessageOrBuilder(); + } else { + if (agentTypeCase_ == 26) { + return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + } + return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The default agent type.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> + internalGetLlmAgentFieldBuilder() { + if (llmAgentBuilder_ == null) { + if (!(agentTypeCase_ == 26)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + } + llmAgentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Agent.LlmAgent, + com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, + com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_, + getParentForChildren(), + isClean()); + agentType_ = null; + } + agentTypeCase_ = 26; + onChanged(); + return llmAgentBuilder_; } - private int bitField0_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> - llmAgentBuilder_; + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> + remoteDialogflowAgentBuilder_; /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the llmAgent field is set. + * @return Whether the remoteDialogflowAgent field is set. */ @java.lang.Override - public boolean hasLlmAgent() { - return agentTypeCase_ == 26; + public boolean hasRemoteDialogflowAgent() { + return agentTypeCase_ == 27; } /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The llmAgent. + * @return The remoteDialogflowAgent. */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26) { - return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } else { - if (agentTypeCase_ == 26) { - return llmAgentBuilder_.getMessage(); + if (agentTypeCase_ == 27) { + return remoteDialogflowAgentBuilder_.getMessage(); } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } } @@ -7114,24 +8215,32 @@ public com.google.cloud.ces.v1beta.Agent.LlmAgent getLlmAgent() { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { - if (llmAgentBuilder_ == null) { + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentType_ = value; onChanged(); } else { - llmAgentBuilder_.setMessage(value); + remoteDialogflowAgentBuilder_.setMessage(value); } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7139,21 +8248,29 @@ public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder builderForValue) { - if (llmAgentBuilder_ == null) { + public Builder setRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder builderForValue) { + if (remoteDialogflowAgentBuilder_ == null) { agentType_ = builderForValue.build(); onChanged(); } else { - llmAgentBuilder_.setMessage(builderForValue.build()); + remoteDialogflowAgentBuilder_.setMessage(builderForValue.build()); } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7161,20 +8278,29 @@ public Builder setLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder bu * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26 - && agentType_ != com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance()) { + public Builder mergeRemoteDialogflowAgent( + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27 + && agentType_ + != com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance()) { agentType_ = - com.google.cloud.ces.v1beta.Agent.LlmAgent.newBuilder( - (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_) + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_) .mergeFrom(value) .buildPartial(); } else { @@ -7182,13 +8308,13 @@ public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { } onChanged(); } else { - if (agentTypeCase_ == 26) { - llmAgentBuilder_.mergeFrom(value); + if (agentTypeCase_ == 27) { + remoteDialogflowAgentBuilder_.mergeFrom(value); } else { - llmAgentBuilder_.setMessage(value); + remoteDialogflowAgentBuilder_.setMessage(value); } } - agentTypeCase_ = 26; + agentTypeCase_ = 27; return this; } @@ -7196,26 +8322,33 @@ public Builder mergeLlmAgent(com.google.cloud.ces.v1beta.Agent.LlmAgent value) { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearLlmAgent() { - if (llmAgentBuilder_ == null) { - if (agentTypeCase_ == 26) { + public Builder clearRemoteDialogflowAgent() { + if (remoteDialogflowAgentBuilder_ == null) { + if (agentTypeCase_ == 27) { agentTypeCase_ = 0; agentType_ = null; onChanged(); } } else { - if (agentTypeCase_ == 26) { + if (agentTypeCase_ == 27) { agentTypeCase_ = 0; agentType_ = null; } - llmAgentBuilder_.clear(); + remoteDialogflowAgentBuilder_.clear(); } return this; } @@ -7224,37 +8357,53 @@ public Builder clearLlmAgent() { * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder getLlmAgentBuilder() { - return internalGetLlmAgentFieldBuilder().getBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder + getRemoteDialogflowAgentBuilder() { + return internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder() { - if ((agentTypeCase_ == 26) && (llmAgentBuilder_ != null)) { - return llmAgentBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder + getRemoteDialogflowAgentOrBuilder() { + if ((agentTypeCase_ == 27) && (remoteDialogflowAgentBuilder_ != null)) { + return remoteDialogflowAgentBuilder_.getMessageOrBuilder(); } else { - if (agentTypeCase_ == 26) { - return (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_; + if (agentTypeCase_ == 27) { + return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } } @@ -7262,100 +8411,95 @@ public com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder getLlmAgentOrBuilder( * * *
-     * Optional. The default agent type.
+     * Optional. The remote
+     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
+     * agent to be used for the agent execution. If this field is set, all other
+     * agent level properties will be ignored.
+     *
+     * Note: If the Dialogflow agent is in a different project from the app, you
+     * should grant `roles/dialogflow.client` to the CES service agent
+     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
      * 
* * - * .google.cloud.ces.v1beta.Agent.LlmAgent llm_agent = 26 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder> - internalGetLlmAgentFieldBuilder() { - if (llmAgentBuilder_ == null) { - if (!(agentTypeCase_ == 26)) { - agentType_ = com.google.cloud.ces.v1beta.Agent.LlmAgent.getDefaultInstance(); + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> + internalGetRemoteDialogflowAgentFieldBuilder() { + if (remoteDialogflowAgentBuilder_ == null) { + if (!(agentTypeCase_ == 27)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); } - llmAgentBuilder_ = + remoteDialogflowAgentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.LlmAgent, - com.google.cloud.ces.v1beta.Agent.LlmAgent.Builder, - com.google.cloud.ces.v1beta.Agent.LlmAgentOrBuilder>( - (com.google.cloud.ces.v1beta.Agent.LlmAgent) agentType_, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_, getParentForChildren(), isClean()); agentType_ = null; } - agentTypeCase_ = 26; + agentTypeCase_ = 27; onChanged(); - return llmAgentBuilder_; + return remoteDialogflowAgentBuilder_; } private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> - remoteDialogflowAgentBuilder_; + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder> + remoteA2AAgentBuilder_; /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return Whether the remoteDialogflowAgent field is set. + * @return Whether the remoteA2aAgent field is set. */ @java.lang.Override - public boolean hasRemoteDialogflowAgent() { - return agentTypeCase_ == 27; + public boolean hasRemoteA2AAgent() { + return agentTypeCase_ == 41; } /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The remoteDialogflowAgent. + * @return The remoteA2aAgent. */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogflowAgent() { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27) { - return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent() { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } else { - if (agentTypeCase_ == 27) { - return remoteDialogflowAgentBuilder_.getMessage(); + if (agentTypeCase_ == 41) { + return remoteA2AAgentBuilder_.getMessage(); } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } } @@ -7363,32 +8507,25 @@ public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent getRemoteDialogfl * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { - if (remoteDialogflowAgentBuilder_ == null) { + public Builder setRemoteA2AAgent(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent value) { + if (remoteA2AAgentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } agentType_ = value; onChanged(); } else { - remoteDialogflowAgentBuilder_.setMessage(value); + remoteA2AAgentBuilder_.setMessage(value); } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7396,29 +8533,23 @@ public Builder setRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder setRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder builderForValue) { - if (remoteDialogflowAgentBuilder_ == null) { + public Builder setRemoteA2AAgent( + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder builderForValue) { + if (remoteA2AAgentBuilder_ == null) { agentType_ = builderForValue.build(); onChanged(); } else { - remoteDialogflowAgentBuilder_.setMessage(builderForValue.build()); + remoteA2AAgentBuilder_.setMessage(builderForValue.build()); } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7426,29 +8557,22 @@ public Builder setRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder mergeRemoteDialogflowAgent( - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent value) { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27 + public Builder mergeRemoteA2AAgent(com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent value) { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41 && agentType_ - != com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance()) { + != com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance()) { agentType_ = - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.newBuilder( - (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_) + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.newBuilder( + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_) .mergeFrom(value) .buildPartial(); } else { @@ -7456,13 +8580,13 @@ public Builder mergeRemoteDialogflowAgent( } onChanged(); } else { - if (agentTypeCase_ == 27) { - remoteDialogflowAgentBuilder_.mergeFrom(value); + if (agentTypeCase_ == 41) { + remoteA2AAgentBuilder_.mergeFrom(value); } else { - remoteDialogflowAgentBuilder_.setMessage(value); + remoteA2AAgentBuilder_.setMessage(value); } } - agentTypeCase_ = 27; + agentTypeCase_ = 41; return this; } @@ -7470,33 +8594,27 @@ public Builder mergeRemoteDialogflowAgent( * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public Builder clearRemoteDialogflowAgent() { - if (remoteDialogflowAgentBuilder_ == null) { - if (agentTypeCase_ == 27) { + public Builder clearRemoteA2AAgent() { + if (remoteA2AAgentBuilder_ == null) { + if (agentTypeCase_ == 41) { agentTypeCase_ = 0; agentType_ = null; onChanged(); } } else { - if (agentTypeCase_ == 27) { + if (agentTypeCase_ == 41) { agentTypeCase_ = 0; agentType_ = null; } - remoteDialogflowAgentBuilder_.clear(); + remoteA2AAgentBuilder_.clear(); } return this; } @@ -7505,53 +8623,39 @@ public Builder clearRemoteDialogflowAgent() { * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder - getRemoteDialogflowAgentBuilder() { - return internalGetRemoteDialogflowAgentFieldBuilder().getBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder getRemoteA2AAgentBuilder() { + return internalGetRemoteA2AAgentFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - public com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder - getRemoteDialogflowAgentOrBuilder() { - if ((agentTypeCase_ == 27) && (remoteDialogflowAgentBuilder_ != null)) { - return remoteDialogflowAgentBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder() { + if ((agentTypeCase_ == 41) && (remoteA2AAgentBuilder_ != null)) { + return remoteA2AAgentBuilder_.getMessageOrBuilder(); } else { - if (agentTypeCase_ == 27) { - return (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_; + if (agentTypeCase_ == 41) { + return (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_; } - return com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); + return com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); } } @@ -7559,42 +8663,36 @@ public Builder clearRemoteDialogflowAgent() { * * *
-     * Optional. The remote
-     * [Dialogflow](https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents)
-     * agent to be used for the agent execution. If this field is set, all other
-     * agent level properties will be ignored.
-     *
-     * Note: If the Dialogflow agent is in a different project from the app, you
-     * should grant `roles/dialogflow.client` to the CES service agent
-     * `service-<PROJECT-NUMBER>@gcp-sa-ces.iam.gserviceaccount.com`.
+     * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+     * used for the agent execution.
      * 
* * - * .google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent remote_dialogflow_agent = 27 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder> - internalGetRemoteDialogflowAgentFieldBuilder() { - if (remoteDialogflowAgentBuilder_ == null) { - if (!(agentTypeCase_ == 27)) { - agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.getDefaultInstance(); - } - remoteDialogflowAgentBuilder_ = + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder> + internalGetRemoteA2AAgentFieldBuilder() { + if (remoteA2AAgentBuilder_ == null) { + if (!(agentTypeCase_ == 41)) { + agentType_ = com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.getDefaultInstance(); + } + remoteA2AAgentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent.Builder, - com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder>( - (com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgent) agentType_, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent.Builder, + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder>( + (com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent) agentType_, getParentForChildren(), isClean()); agentType_ = null; } - agentTypeCase_ = 27; + agentTypeCase_ = 41; onChanged(); - return remoteDialogflowAgentBuilder_; + return remoteA2AAgentBuilder_; } private java.lang.Object name_ = ""; @@ -7665,7 +8763,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7684,7 +8782,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -7708,7 +8806,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -7778,7 +8876,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -7796,7 +8894,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -7819,7 +8917,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -7889,7 +8987,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7907,7 +9005,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -7930,7 +9028,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -7956,7 +9054,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * @return Whether the modelSettings field is set. */ public boolean hasModelSettings() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -8002,7 +9100,7 @@ public Builder setModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) } else { modelSettingsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8025,7 +9123,7 @@ public Builder setModelSettings( } else { modelSettingsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -8043,7 +9141,7 @@ public Builder setModelSettings( */ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { if (modelSettingsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && modelSettings_ != null && modelSettings_ != com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance()) { getModelSettingsBuilder().mergeFrom(value); @@ -8054,7 +9152,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings valu modelSettingsBuilder_.mergeFrom(value); } if (modelSettings_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -8072,7 +9170,7 @@ public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings valu * */ public Builder clearModelSettings() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); modelSettings_ = null; if (modelSettingsBuilder_ != null) { modelSettingsBuilder_.dispose(); @@ -8094,7 +9192,7 @@ public Builder clearModelSettings() { * */ public com.google.cloud.ces.v1beta.ModelSettings.Builder getModelSettingsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetModelSettingsFieldBuilder().getBuilder(); } @@ -8213,7 +9311,7 @@ public Builder setInstruction(java.lang.String value) { throw new NullPointerException(); } instruction_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8231,7 +9329,7 @@ public Builder setInstruction(java.lang.String value) { */ public Builder clearInstruction() { instruction_ = getDefaultInstance().getInstruction(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -8254,7 +9352,7 @@ public Builder setInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); instruction_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -8266,7 +9364,7 @@ private void ensureToolsIsMutable() { if (!tools_.isModifiable()) { tools_ = new com.google.protobuf.LazyStringArrayList(tools_); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; } /** @@ -8366,7 +9464,7 @@ public Builder setTools(int index, java.lang.String value) { } ensureToolsIsMutable(); tools_.set(index, value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8392,7 +9490,7 @@ public Builder addTools(java.lang.String value) { } ensureToolsIsMutable(); tools_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8415,7 +9513,7 @@ public Builder addTools(java.lang.String value) { public Builder addAllTools(java.lang.Iterable values) { ensureToolsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8436,7 +9534,7 @@ public Builder addAllTools(java.lang.Iterable values) { */ public Builder clearTools() { tools_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); ; onChanged(); return this; @@ -8464,7 +9562,7 @@ public Builder addToolsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureToolsIsMutable(); tools_.add(value); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -8476,7 +9574,7 @@ private void ensureChildAgentsIsMutable() { if (!childAgents_.isModifiable()) { childAgents_ = new com.google.protobuf.LazyStringArrayList(childAgents_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -8576,7 +9674,7 @@ public Builder setChildAgents(int index, java.lang.String value) { } ensureChildAgentsIsMutable(); childAgents_.set(index, value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8602,7 +9700,7 @@ public Builder addChildAgents(java.lang.String value) { } ensureChildAgentsIsMutable(); childAgents_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8625,7 +9723,7 @@ public Builder addChildAgents(java.lang.String value) { public Builder addAllChildAgents(java.lang.Iterable values) { ensureChildAgentsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, childAgents_); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8646,7 +9744,7 @@ public Builder addAllChildAgents(java.lang.Iterable values) { */ public Builder clearChildAgents() { childAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); ; onChanged(); return this; @@ -8674,7 +9772,7 @@ public Builder addChildAgentsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureChildAgentsIsMutable(); childAgents_.add(value); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -8683,10 +9781,10 @@ public Builder addChildAgentsBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureBeforeAgentCallbacksIsMutable() { - if (!((bitField0_ & 0x00000200) != 0)) { + if (!((bitField0_ & 0x00000400) != 0)) { beforeAgentCallbacks_ = new java.util.ArrayList(beforeAgentCallbacks_); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; } } @@ -8967,7 +10065,7 @@ public Builder addAllBeforeAgentCallbacks( public Builder clearBeforeAgentCallbacks() { if (beforeAgentCallbacksBuilder_ == null) { beforeAgentCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); } else { beforeAgentCallbacksBuilder_.clear(); @@ -9133,7 +10231,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeAgentCallbacksBuild com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeAgentCallbacks_, - ((bitField0_ & 0x00000200) != 0), + ((bitField0_ & 0x00000400) != 0), getParentForChildren(), isClean()); beforeAgentCallbacks_ = null; @@ -9145,10 +10243,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeAgentCallbacksBuild java.util.Collections.emptyList(); private void ensureAfterAgentCallbacksIsMutable() { - if (!((bitField0_ & 0x00000400) != 0)) { + if (!((bitField0_ & 0x00000800) != 0)) { afterAgentCallbacks_ = new java.util.ArrayList(afterAgentCallbacks_); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; } } @@ -9429,7 +10527,7 @@ public Builder addAllAfterAgentCallbacks( public Builder clearAfterAgentCallbacks() { if (afterAgentCallbacksBuilder_ == null) { afterAgentCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); onChanged(); } else { afterAgentCallbacksBuilder_.clear(); @@ -9595,7 +10693,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterAgentCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterAgentCallbacks_, - ((bitField0_ & 0x00000400) != 0), + ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); afterAgentCallbacks_ = null; @@ -9607,10 +10705,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterAgentCallbacksBuilde java.util.Collections.emptyList(); private void ensureBeforeModelCallbacksIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { + if (!((bitField0_ & 0x00001000) != 0)) { beforeModelCallbacks_ = new java.util.ArrayList(beforeModelCallbacks_); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; } } @@ -9902,7 +11000,7 @@ public Builder addAllBeforeModelCallbacks( public Builder clearBeforeModelCallbacks() { if (beforeModelCallbacksBuilder_ == null) { beforeModelCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); onChanged(); } else { beforeModelCallbacksBuilder_.clear(); @@ -10075,7 +11173,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeModelCallbacksBuild com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeModelCallbacks_, - ((bitField0_ & 0x00000800) != 0), + ((bitField0_ & 0x00001000) != 0), getParentForChildren(), isClean()); beforeModelCallbacks_ = null; @@ -10087,10 +11185,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeModelCallbacksBuild java.util.Collections.emptyList(); private void ensureAfterModelCallbacksIsMutable() { - if (!((bitField0_ & 0x00001000) != 0)) { + if (!((bitField0_ & 0x00002000) != 0)) { afterModelCallbacks_ = new java.util.ArrayList(afterModelCallbacks_); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; } } @@ -10382,7 +11480,7 @@ public Builder addAllAfterModelCallbacks( public Builder clearAfterModelCallbacks() { if (afterModelCallbacksBuilder_ == null) { afterModelCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); } else { afterModelCallbacksBuilder_.clear(); @@ -10555,7 +11653,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterModelCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterModelCallbacks_, - ((bitField0_ & 0x00001000) != 0), + ((bitField0_ & 0x00002000) != 0), getParentForChildren(), isClean()); afterModelCallbacks_ = null; @@ -10567,10 +11665,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterModelCallbacksBuilde java.util.Collections.emptyList(); private void ensureBeforeToolCallbacksIsMutable() { - if (!((bitField0_ & 0x00002000) != 0)) { + if (!((bitField0_ & 0x00004000) != 0)) { beforeToolCallbacks_ = new java.util.ArrayList(beforeToolCallbacks_); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; } } @@ -10862,7 +11960,7 @@ public Builder addAllBeforeToolCallbacks( public Builder clearBeforeToolCallbacks() { if (beforeToolCallbacksBuilder_ == null) { beforeToolCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); onChanged(); } else { beforeToolCallbacksBuilder_.clear(); @@ -11035,7 +12133,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeToolCallbacksBuilde com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( beforeToolCallbacks_, - ((bitField0_ & 0x00002000) != 0), + ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); beforeToolCallbacks_ = null; @@ -11047,10 +12145,10 @@ public com.google.cloud.ces.v1beta.Callback.Builder addBeforeToolCallbacksBuilde java.util.Collections.emptyList(); private void ensureAfterToolCallbacksIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { + if (!((bitField0_ & 0x00008000) != 0)) { afterToolCallbacks_ = new java.util.ArrayList(afterToolCallbacks_); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; } } @@ -11342,7 +12440,7 @@ public Builder addAllAfterToolCallbacks( public Builder clearAfterToolCallbacks() { if (afterToolCallbacksBuilder_ == null) { afterToolCallbacks_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); + bitField0_ = (bitField0_ & ~0x00008000); onChanged(); } else { afterToolCallbacksBuilder_.clear(); @@ -11514,7 +12612,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterToolCallbacksBuilder com.google.cloud.ces.v1beta.Callback.Builder, com.google.cloud.ces.v1beta.CallbackOrBuilder>( afterToolCallbacks_, - ((bitField0_ & 0x00004000) != 0), + ((bitField0_ & 0x00008000) != 0), getParentForChildren(), isClean()); afterToolCallbacks_ = null; @@ -11543,7 +12641,7 @@ public com.google.cloud.ces.v1beta.Callback.Builder addAfterToolCallbacksBuilder * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -11589,7 +12687,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11611,7 +12709,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -11629,7 +12727,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -11640,7 +12738,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -11658,7 +12756,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -11680,7 +12778,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -11755,7 +12853,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00010000) != 0); + return ((bitField0_ & 0x00020000) != 0); } /** @@ -11801,7 +12899,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11823,7 +12921,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return this; } @@ -11841,7 +12939,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0) + if (((bitField0_ & 0x00020000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -11852,7 +12950,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); } return this; @@ -11870,7 +12968,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -11892,7 +12990,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -11953,7 +13051,7 @@ private void ensureGuardrailsIsMutable() { if (!guardrails_.isModifiable()) { guardrails_ = new com.google.protobuf.LazyStringArrayList(guardrails_); } - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; } /** @@ -12058,7 +13156,7 @@ public Builder setGuardrails(int index, java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.set(index, value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12085,7 +13183,7 @@ public Builder addGuardrails(java.lang.String value) { } ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12109,7 +13207,7 @@ public Builder addGuardrails(java.lang.String value) { public Builder addAllGuardrails(java.lang.Iterable values) { ensureGuardrailsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, guardrails_); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12131,7 +13229,7 @@ public Builder addAllGuardrails(java.lang.Iterable values) { */ public Builder clearGuardrails() { guardrails_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); ; onChanged(); return this; @@ -12160,7 +13258,7 @@ public Builder addGuardrailsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureGuardrailsIsMutable(); guardrails_.add(value); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -12236,7 +13334,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -12256,7 +13354,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); onChanged(); return this; } @@ -12281,7 +13379,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -12290,10 +13388,10 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureToolsetsIsMutable() { - if (!((bitField0_ & 0x00080000) != 0)) { + if (!((bitField0_ & 0x00100000) != 0)) { toolsets_ = new java.util.ArrayList(toolsets_); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; } } @@ -12541,7 +13639,7 @@ public Builder addAllToolsets( public Builder clearToolsets() { if (toolsetsBuilder_ == null) { toolsets_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); onChanged(); } else { toolsetsBuilder_.clear(); @@ -12684,7 +13782,7 @@ public com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder addToolsetsBuilder com.google.cloud.ces.v1beta.Agent.AgentToolset, com.google.cloud.ces.v1beta.Agent.AgentToolset.Builder, com.google.cloud.ces.v1beta.Agent.AgentToolsetOrBuilder>( - toolsets_, ((bitField0_ & 0x00080000) != 0), getParentForChildren(), isClean()); + toolsets_, ((bitField0_ & 0x00100000) != 0), getParentForChildren(), isClean()); toolsets_ = null; } return toolsetsBuilder_; @@ -12758,7 +13856,7 @@ public Builder setGeneratedSummary(java.lang.String value) { throw new NullPointerException(); } generatedSummary_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12777,7 +13875,7 @@ public Builder setGeneratedSummary(java.lang.String value) { */ public Builder clearGeneratedSummary() { generatedSummary_ = getDefaultInstance().getGeneratedSummary(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -12801,7 +13899,7 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); generatedSummary_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -12810,10 +13908,10 @@ public Builder setGeneratedSummaryBytes(com.google.protobuf.ByteString value) { java.util.Collections.emptyList(); private void ensureTransferRulesIsMutable() { - if (!((bitField0_ & 0x00200000) != 0)) { + if (!((bitField0_ & 0x00400000) != 0)) { transferRules_ = new java.util.ArrayList(transferRules_); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; } } @@ -13072,7 +14170,7 @@ public Builder addAllTransferRules( public Builder clearTransferRules() { if (transferRulesBuilder_ == null) { transferRules_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); onChanged(); } else { transferRulesBuilder_.clear(); @@ -13223,7 +14321,7 @@ public com.google.cloud.ces.v1beta.TransferRule.Builder addTransferRulesBuilder( com.google.cloud.ces.v1beta.TransferRule.Builder, com.google.cloud.ces.v1beta.TransferRuleOrBuilder>( transferRules_, - ((bitField0_ & 0x00200000) != 0), + ((bitField0_ & 0x00400000) != 0), getParentForChildren(), isClean()); transferRules_ = null; @@ -13238,7 +14336,7 @@ private void ensureValidationErrorsIsMutable() { if (!validationErrors_.isModifiable()) { validationErrors_ = new com.google.protobuf.LazyStringArrayList(validationErrors_); } - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; } /** @@ -13333,7 +14431,7 @@ public Builder setValidationErrors(int index, java.lang.String value) { } ensureValidationErrorsIsMutable(); validationErrors_.set(index, value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13358,7 +14456,7 @@ public Builder addValidationErrors(java.lang.String value) { } ensureValidationErrorsIsMutable(); validationErrors_.add(value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13380,7 +14478,7 @@ public Builder addValidationErrors(java.lang.String value) { public Builder addAllValidationErrors(java.lang.Iterable values) { ensureValidationErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, validationErrors_); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -13400,7 +14498,7 @@ public Builder addAllValidationErrors(java.lang.Iterable value */ public Builder clearValidationErrors() { validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); ; onChanged(); return this; @@ -13427,7 +14525,7 @@ public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureValidationErrorsIsMutable(); validationErrors_.add(value); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java index b1d6182faca2..d8041dca673a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentCardProto.java @@ -52,10 +52,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_AgentSkill_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_AgentSkill_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_RemoteAgentTool_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,15 +87,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { java.lang.String[] descriptorData = { "\n" + "(google/cloud/ces/v1beta/agent_card.pro" - + "to\022\027google.cloud.ces.v1beta\032\037google/api/field_behavior.proto\"\331\001\n" + + "to\022\027google.cloud.ces.v1beta\032\037google/api/" + + "field_behavior.proto\032\"google/cloud/ces/v1beta/auth.proto\"\331\001\n" + "\tAgentCard\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\022K\n" - + "\024supported_interfaces\030\003 \003(\0132\'.google" - + ".cloud.ces.v1beta.AgentInterfaceB\004\342A\001\002\022\025\n" + + "\024supported_interfaces\030\003" + + " \003(\0132\'.google.cloud.ces.v1beta.AgentInterfaceB\004\342A\001\002\022\025\n" + "\007version\030\005 \001(\tB\004\342A\001\002\0229\n" - + "\006skills\030\006 \003(\0132#." - + "google.cloud.ces.v1beta.AgentSkillB\004\342A\001\002\"s\n" + + "\006skills\030\006" + + " \003(\0132#.google.cloud.ces.v1beta.AgentSkillB\004\342A\001\002\"s\n" + "\016AgentInterface\022\021\n" + "\003url\030\001 \001(\tB\004\342A\001\002\022\036\n" + "\020protocol_binding\030\002 \001(\tB\004\342A\001\002\022\016\n" @@ -88,20 +109,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004tags\030\004 \003(\tB\004\342A\001\002\022\020\n" + "\010examples\030\005 \003(\t\022\023\n" + "\013input_modes\030\006 \003(\t\022\024\n" - + "\014output_modes\030\007 \003(\t\"~\n" + + "\014output_modes\030\007 \003(\t\"\331\004\n" + + "\017RemoteA2aConfig\022>\n\n" + + "agent_card\030\001 \001(\0132\".goo" + + "gle.cloud.ces.v1beta.AgentCardB\004\342A\001\001H\000\022\036\n" + + "\016agent_registry\030\002 \001(\tB\004\342A\001\001H\000\022L\n" + + "\022api_authentication\030\003" + + " \001(\0132*.google.cloud.ces.v1beta.ApiAuthenticationB\004\342A\001\001\022h\n" + + "\026input_variable_mapping\030\004 \003(\0132B.google.cloud.ces." + + "v1beta.RemoteA2aConfig.InputVariableMappingEntryB\004\342A\001\001\022j\n" + + "\027output_variable_mapping\030\005 \003(\0132C.google.cloud.ces.v1beta.Remote" + + "A2aConfig.OutputVariableMappingEntryB\004\342A\001\001\022\037\n" + + "\021streaming_enabled\030\006 \001(\010B\004\342A\001\001\022\030\n\n" + + "context_id\030\007 \001(\tB\004\342A\001\001\032;\n" + + "\031InputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032<\n" + + "\032OutputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B\014\n\n" + + "agent_spec\"\273\004\n" + "\017RemoteAgentTool\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\022<\n\n" + "agent_card\030\003" - + " \001(\0132\".google.cloud.ces.v1beta.AgentCardB\004\342A\001\002B^\n" - + "\033com.google.cloud.ces.v1betaB\016AgentCardProtoP\001Z-cloud.google.com/go/ces" - + "/apiv1beta/cespb;cespbb\006proto3" + + " \001(\0132\".google.cloud.ces.v1beta.AgentCardB\004\342A\001\002\022L\n" + + "\022api_authentication\030\004 \001(\0132*.go" + + "ogle.cloud.ces.v1beta.ApiAuthenticationB\004\342A\001\001\022\034\n" + + "\016stateful_agent\030\005 \001(\010B\004\342A\001\001\022h\n" + + "\026input_variable_mapping\030\006 \003(\0132B.google.clo" + + "ud.ces.v1beta.RemoteAgentTool.InputVariableMappingEntryB\004\342A\001\001\022j\n" + + "\027output_variable_mapping\030\007 \003(\0132C.google.cloud.ces.v1beta" + + ".RemoteAgentTool.OutputVariableMappingEntryB\004\342A\001\001\032;\n" + + "\031InputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032<\n" + + "\032OutputVariableMappingEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001B^\n" + + "\033com.google.cloud.ces.v1betaB\016AgentCardProtoP\001Z-cloud.google.com/" + + "go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.ces.v1beta.AuthProto.getDescriptor(), }); internal_static_google_cloud_ces_v1beta_AgentCard_descriptor = getDescriptor().getMessageType(0); @@ -127,16 +181,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Id", "Name", "Description", "Tags", "Examples", "InputModes", "OutputModes", }); - internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor, + new java.lang.String[] { + "AgentCard", + "AgentRegistry", + "ApiAuthentication", + "InputVariableMapping", + "OutputVariableMapping", + "StreamingEnabled", + "ContextId", + "AgentSpec", + }); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_InputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteA2aConfig_OutputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor = + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_RemoteAgentTool_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor, new java.lang.String[] { - "Name", "Description", "AgentCard", + "Name", + "Description", + "AgentCard", + "ApiAuthentication", + "StatefulAgent", + "InputVariableMapping", + "OutputVariableMapping", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_InputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor = + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RemoteAgentTool_OutputVariableMappingEntry_descriptor, + new java.lang.String[] { + "Key", "Value", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.ces.v1beta.AuthProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java index b425dfae3b7c..8892a9698567 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentOrBuilder.java @@ -134,6 +134,52 @@ public interface AgentOrBuilder com.google.cloud.ces.v1beta.Agent.RemoteDialogflowAgentOrBuilder getRemoteDialogflowAgentOrBuilder(); + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the remoteA2aAgent field is set. + */ + boolean hasRemoteA2AAgent(); + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The remoteA2aAgent. + */ + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgent getRemoteA2AAgent(); + + /** + * + * + *
+   * Optional. The remote [A2A](https://github.com/a2aproject/A2A) agent to be
+   * used for the agent execution.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Agent.RemoteA2aAgent remote_a2a_agent = 41 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Agent.RemoteA2aAgentOrBuilder getRemoteA2AAgentOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java index ed42c6291520..2aa68d7998f0 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentProto.java @@ -60,6 +60,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Agent_RemoteDialogflowAgent_OutputVariableMappingEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -77,47 +81,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#google/cloud/ces/v1beta/agent.proto\022\027g" + "oogle.cloud.ces.v1beta\032\037google/api/field" + "_behavior.proto\032\031google/api/resource.pro" - + "to\032-google/cloud/ces/v1beta/agent_transfers.proto\032$google/cloud/ces/v1beta/commo" - + "n.proto\032\037google/protobuf/timestamp.proto\"\264\020\n" + + "to\032(google/cloud/ces/v1beta/agent_card.proto\032-google/cloud/ces/v1beta/agent_tran" + + "sfers.proto\032$google/cloud/ces/v1beta/com" + + "mon.proto\032\037google/protobuf/timestamp.proto\"\333\021\n" + "\005Agent\022B\n" - + "\tllm_agent\030\032 \001(\0132\'.google.c" - + "loud.ces.v1beta.Agent.LlmAgentB\004\342A\001\001H\000\022]\n" - + "\027remote_dialogflow_agent\030\033 \001(\01324.google" - + ".cloud.ces.v1beta.Agent.RemoteDialogflowAgentB\004\342A\001\001H\000\022\022\n" + + "\tllm_agent\030\032 \001(\0132\'.google" + + ".cloud.ces.v1beta.Agent.LlmAgentB\004\342A\001\001H\000\022]\n" + + "\027remote_dialogflow_agent\030\033 \001(\01324.goog" + + "le.cloud.ces.v1beta.Agent.RemoteDialogflowAgentB\004\342A\001\001H\000\022O\n" + + "\020remote_a2a_agent\030) \001(" + + "\0132-.google.cloud.ces.v1beta.Agent.RemoteA2aAgentB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022D\n" - + "\016model_settings\030\004 \001(\0132&.googl" - + "e.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\031\n" + + "\016model_settings\030\004 \001(\0132&.go" + + "ogle.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\031\n" + "\013instruction\030\006 \001(\tB\004\342A\001\001\022/\n" + "\005tools\030\007 \003(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/Tool\0227\n" + "\014child_agents\030\010 \003(\tB!\342A\001\001\372A\032\n" + "\030ces.googleapis.com/Agent\022G\n" - + "\026before_agent_callbacks\030\022 " - + "\003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" - + "\025after_agent_callbacks\030\023" - + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022G\n" + + "\026before_agent_callbacks\030\022" + + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + + "\025after_agent_callbacks\030\023 \003(\0132!" + + ".google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022G\n" + "\026before_model_callbacks\030\024" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025after_model_callbacks\030\025" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025before_tool_callbacks\030\026" + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022E\n" - + "\024after_tool_callbacks\030\027 " - + "\003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\0225\n" + + "\024after_tool_callbacks\030\027" + + " \003(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\0225\n" + "\013create_time\030\017" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\020" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0229\n\n" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0229\n" + + "\n" + "guardrails\030\021 \003(\tB%\342A\001\001\372A\036\n" + "\034ces.googleapis.com/Guardrail\022\014\n" + "\004etag\030\030 \001(\t\022C\n" + "\010toolsets\030\034" + " \003(\0132+.google.cloud.ces.v1beta.Agent.AgentToolsetB\004\342A\001\001\022\037\n" + "\021generated_summary\030\035 \001(\tB\004\342A\001\003\022C\n" - + "\016transfer_rules\030\036 \003(\0132%.goog" - + "le.cloud.ces.v1beta.TransferRuleB\004\342A\001\001\022\037\n" + + "\016transfer_rules\030\036 \003(\0132%.g" + + "oogle.cloud.ces.v1beta.TransferRuleB\004\342A\001\001\022\037\n" + "\021validation_errors\030 \003(\tB\004\342A\001\003\032\n\n" + "\010LlmAgent\032\324\004\n" + "\025RemoteDialogflowAgent\022A\n" @@ -125,10 +133,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ")dialogflow.googleapis.com/DialogflowAgent\022\025\n" + "\007flow_id\030\002 \001(\tB\004\342A\001\001\022\034\n" + "\016environment_id\030\003 \001(\tB\004\342A\001\001\022t\n" - + "\026input_variable_mapping\030\004 \003(\0132N.google.cloud.ces" - + ".v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\004\342A\001\001\022v\n" - + "\027output_variable_mapping\030\005 \003(\0132O.google.cloud.ces." - + "v1beta.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\004\342A\001\001\0224\n" + + "\026input_variable_mapping\030\004 \003(\0132N.google.cloud." + + "ces.v1beta.Agent.RemoteDialogflowAgent.InputVariableMappingEntryB\004\342A\001\001\022v\n" + + "\027output_variable_mapping\030\005 \003(\0132O.google.cloud.c" + + "es.v1beta.Agent.RemoteDialogflowAgent.OutputVariableMappingEntryB\004\342A\001\001\0224\n" + "&respect_response_interruption_settings\030\006 \001(\010B\004\342A\001\001\022$\n" + "\026language_code_variable\030\007 \001(\tB\004\342A\001\001\032;\n" + "\031InputVariableMappingEntry\022\013\n" @@ -136,18 +144,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001\032<\n" + "\032OutputVariableMappingEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\032\\\n" + + "\005value\030\002 \001(\t:\0028\001\032T\n" + + "\016RemoteA2aAgent\022B\n\n" + + "a2a_config\030\001 " + + "\001(\0132(.google.cloud.ces.v1beta.RemoteA2aConfigB\004\342A\001\002\032\\\n" + "\014AgentToolset\0224\n" + "\007toolset\030\001 \001(\tB#\342A\001\002\372A\034\n" + "\032ces.googleapis.com/Toolset\022\026\n" + "\010tool_ids\030\004 \003(\tB\004\342A\001\001:o\352Al\n" - + "\030ces.googleapis.com/Agent\022Aprojects/{project}/locations/{l" - + "ocation}/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + + "\030ces.googleapis.com/Agent\022Aprojects/{project}/loc" + + "ations/{location}/apps/{app}/agents/{agent}*\006agents2\005agentB\014\n\n" + "agent_typeB\300\001\n" + "\033com.google.cloud.ces.v1betaB\n" + "AgentProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{project}/locations/{locati" - + "on}/agents/{agent}b\006proto3" + + ")dialogflow.googleapis.com/DialogflowAgent\0226projects/{project}/location" + + "s/{location}/agents/{agent}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -155,6 +166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.Descriptors.FileDescriptor[] { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1beta.AgentCardProto.getDescriptor(), com.google.cloud.ces.v1beta.AgentTransfersProto.getDescriptor(), com.google.cloud.ces.v1beta.CommonProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), @@ -166,6 +178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "LlmAgent", "RemoteDialogflowAgent", + "RemoteA2AAgent", "Name", "DisplayName", "Description", @@ -227,8 +240,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor = + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor = internal_static_google_cloud_ces_v1beta_Agent_descriptor.getNestedType(2); + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_Agent_RemoteA2aAgent_descriptor, + new java.lang.String[] { + "A2AConfig", + }); + internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor = + internal_static_google_cloud_ces_v1beta_Agent_descriptor.getNestedType(3); internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Agent_AgentToolset_descriptor, @@ -238,6 +259,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1beta.AgentCardProto.getDescriptor(); com.google.cloud.ces.v1beta.AgentTransfersProto.getDescriptor(); com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java new file mode 100644 index 000000000000..9830b11c260d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeployment.java @@ -0,0 +1,624 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Configuration and status for Agent Registry deployment.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AgentRegistryDeployment} + */ +@com.google.protobuf.Generated +public final class AgentRegistryDeployment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AgentRegistryDeployment) + AgentRegistryDeploymentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AgentRegistryDeployment"); + } + + // Use AgentRegistryDeployment.newBuilder() to construct. + private AgentRegistryDeployment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentRegistryDeployment() { + agentRegistryServiceName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.class, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder.class); + } + + public static final int AGENT_REGISTRY_SERVICE_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentRegistryServiceName_ = ""; + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + @java.lang.Override + public java.lang.String getAgentRegistryServiceName() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRegistryServiceName_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentRegistryServiceNameBytes() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentRegistryServiceName_ = 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.GeneratedMessage.isStringEmpty(agentRegistryServiceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agentRegistryServiceName_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentRegistryServiceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, agentRegistryServiceName_); + } + 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.ces.v1beta.AgentRegistryDeployment)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AgentRegistryDeployment other = + (com.google.cloud.ces.v1beta.AgentRegistryDeployment) obj; + + if (!getAgentRegistryServiceName().equals(other.getAgentRegistryServiceName())) 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) + AGENT_REGISTRY_SERVICE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAgentRegistryServiceName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment 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.ces.v1beta.AgentRegistryDeployment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + 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.ces.v1beta.AgentRegistryDeployment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AgentRegistryDeployment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration and status for Agent Registry deployment.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AgentRegistryDeployment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AgentRegistryDeployment) + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.class, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AgentRegistryDeployment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentRegistryServiceName_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.ChannelProfileProto + .internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment build() { + com.google.cloud.ces.v1beta.AgentRegistryDeployment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment buildPartial() { + com.google.cloud.ces.v1beta.AgentRegistryDeployment result = + new com.google.cloud.ces.v1beta.AgentRegistryDeployment(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AgentRegistryDeployment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentRegistryServiceName_ = agentRegistryServiceName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AgentRegistryDeployment) { + return mergeFrom((com.google.cloud.ces.v1beta.AgentRegistryDeployment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AgentRegistryDeployment other) { + if (other == com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance()) + return this; + if (!other.getAgentRegistryServiceName().isEmpty()) { + agentRegistryServiceName_ = other.agentRegistryServiceName_; + 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: + { + agentRegistryServiceName_ = 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 agentRegistryServiceName_ = ""; + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + public java.lang.String getAgentRegistryServiceName() { + java.lang.Object ref = agentRegistryServiceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentRegistryServiceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + public com.google.protobuf.ByteString getAgentRegistryServiceNameBytes() { + java.lang.Object ref = agentRegistryServiceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentRegistryServiceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The agentRegistryServiceName to set. + * @return This builder for chaining. + */ + public Builder setAgentRegistryServiceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentRegistryServiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAgentRegistryServiceName() { + agentRegistryServiceName_ = getDefaultInstance().getAgentRegistryServiceName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Output only. The resource name of the deployed Agent Registry
+     * service. Format:
+     * `projects/{project}/locations/{location}/services/{service}`
+     * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for agentRegistryServiceName to set. + * @return This builder for chaining. + */ + public Builder setAgentRegistryServiceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentRegistryServiceName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AgentRegistryDeployment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AgentRegistryDeployment) + private static final com.google.cloud.ces.v1beta.AgentRegistryDeployment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AgentRegistryDeployment(); + } + + public static com.google.cloud.ces.v1beta.AgentRegistryDeployment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentRegistryDeployment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AgentRegistryDeployment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java new file mode 100644 index 000000000000..84ea4fff8551 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentRegistryDeploymentOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/deployment.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AgentRegistryDeploymentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AgentRegistryDeployment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The agentRegistryServiceName. + */ + java.lang.String getAgentRegistryServiceName(); + + /** + * + * + *
+   * Optional. Output only. The resource name of the deployed Agent Registry
+   * service. Format:
+   * `projects/{project}/locations/{location}/services/{service}`
+   * 
+ * + * + * string agent_registry_service_name = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for agentRegistryServiceName. + */ + com.google.protobuf.ByteString getAgentRegistryServiceNameBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java index 8af0155ae4c6..4b67d74ab6c6 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AgentServiceProto.java @@ -224,6 +224,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_CreateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_CreateDeploymentRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_UpdateDeploymentRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -276,6 +280,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_CreateAppVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_CreateAppVersionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UpdateAppVersionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UpdateAppVersionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_RestoreAppVersionRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -454,26 +462,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ExportAppResponse\022\025\n" + "\013app_content\030\001 \001(\014H\000\022\021\n" + "\007app_uri\030\002 \001(\tH\000B\005\n" - + "\003app\"\226\004\n" + + "\003app\"\211\005\n" + "\020ImportAppRequest\022\021\n" + "\007gcs_uri\030\004 \001(\tH\000\022\025\n" - + "\013app_content\030\005 \001(\014H\000\022/\n" + + "\013app_content\030\005 \001(\014H\000\022\"\n" + + "\022json_patch_content\030\t \001(\tB\004\342A\001\001H\001\022\"\n" + + "\022json_patch_gcs_uri\030\n" + + " \001(\tB\004\342A\001\001H\001\022/\n" + "\006parent\030\001 \001(" + "\tB\037\342A\001\002\372A\030\022\026ces.googleapis.com/App\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\024\n" + "\006app_id\030\003 \001(\tB\004\342A\001\001\022U\n" + "\016import_options\030\006" + " \001(\01327.google.cloud.ces.v1beta.ImportAppRequest.ImportOptionsB\004\342A\001\001\022\035\n" - + "\017ignore_app_lock\030\007 \001(\010B\004\342A\001\001\032\367\001\n\r" + + "\017ignore_app_lock\030\007 \001(\010B\004\342A\001\001\032\224\002\n\r" + "ImportOptions\022~\n" - + "\034conflict_resolution_strategy\030\001 " - + "\001(\0162R.google.cloud.ces.v1beta.ImportAppR" - + "equest.ImportOptions.ConflictResolutionStrategyB\004\342A\001\001\"f\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162R.go" + + "ogle.cloud.ces.v1beta.ImportAppRequest.I" + + "mportOptions.ConflictResolutionStrategyB\004\342A\001\001\022\033\n\r" + + "validate_only\030\002 \001(\010B\004\342A\001\001\"f\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007REPLACE\020\001\022\r\n" + "\tOVERWRITE\020\002B\005\n" - + "\003app\"P\n" + + "\003appB\014\n\n" + + "json_patch\"P\n" + "\021ImportAppResponse\022)\n" + "\004name\030\001 \001(\tB\033\372A\030\n" + "\026ces.googleapis.com/App\022\020\n" @@ -498,8 +511,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005agent\030\003" + " \001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\"\200\001\n" + "\022UpdateAgentRequest\0223\n" - + "\005agent\030\001" - + " \001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\0225\n" + + "\005agent\030\001 " + + "\001(\0132\036.google.cloud.ces.v1beta.AgentB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"n\n" + "\022DeleteAgentRequest\022/\n" @@ -531,8 +544,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB#\342A\001\002\372A\034\022\032ces.googleapis.com/Example\022\030\n\n" + "example_id\030\002 \001(\tB\004\342A\001\001\0227\n" - + "\007example\030\003 \001(\0132 " - + ".google.cloud.ces.v1beta.ExampleB\004\342A\001\002\"\206\001\n" + + "\007example\030\003 \001(\0132" + + " .google.cloud.ces.v1beta.ExampleB\004\342A\001\002\"\206\001\n" + "\024UpdateExampleRequest\0227\n" + "\007example\030\001 \001(\0132" + " .google.cloud.ces.v1beta.ExampleB\004\342A\001\002\0225\n" @@ -575,8 +588,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022B\n" - + "\006source\030\005 \001(\0162,.go" - + "ogle.cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\022C\n" + + "\006source\030\005 \001(\0162,.google." + + "cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\022C\n" + "\007sources\030\006" + " \003(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\004\342A\001\001\"r\n" + "\031ListConversationsResponse\022<\n\r" @@ -590,8 +603,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031DeleteConversationRequest\0226\n" + "\004name\030\001 \001(\tB(\342A\001\002\372A!\n" + "\037ces.googleapis.com/Conversation\022D\n" - + "\006source\030\002" - + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\006\030\001\342A\001\001\"\234\001\n" + + "\006source\030\002 \001" + + "(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\006\030\001\342A\001\001\"\234\001\n" + "\037BatchDeleteConversationsRequest\0228\n" + "\006parent\030\001 \001(" + "\tB(\342A\001\002\372A!\022\037ces.googleapis.com/Conversation\022?\n\r" @@ -618,11 +631,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB%\342A\001\002\372A\036\022\034ces.googleapis.com/Guardrail\022\032\n" + "\014guardrail_id\030\002 \001(\tB\004\342A\001\001\022;\n" - + "\tguardrail\030\003 \001(\0132\"." - + "google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\"\214\001\n" + + "\tguardrail\030\003" + + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\"\214\001\n" + "\026UpdateGuardrailRequest\022;\n" - + "\tguardrail\030\001" - + " \001(\0132\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\0225\n" + + "\tguardrail\030\001 \001(\013" + + "2\".google.cloud.ces.v1beta.GuardrailB\004\342A\001\002\0225\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"v\n" + "\026DeleteGuardrailRequest\0223\n" @@ -647,7 +660,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB&\342A\001\002\372A\037\022\035ces.googleapis.com/Deployment\022\033\n\r" + "deployment_id\030\003 \001(\tB\004\342A\001\001\022=\n\n" + "deployment\030\002" - + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\"\217\001\n" + + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\"P\n" + + "\025DeployChannelResponse\0227\n\n" + + "deployment\030\001 \001(\0132#.google.cloud.ces.v1beta.Deployment\"\217\001\n" + "\027UpdateDeploymentRequest\022=\n\n" + "deployment\030\001" + " \001(\0132#.google.cloud.ces.v1beta.DeploymentB\004\342A\001\002\0225\n" @@ -707,8 +722,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB&\342A\001\002\372A\037\022\035ces.googleapis.com/AppVersion\022\034\n" + "\016app_version_id\030\002 \001(\tB\004\342A\001\001\022>\n" - + "\013app_version\030\003 \001(\0132#." - + "google.cloud.ces.v1beta.AppVersionB\004\342A\001\002\"P\n" + + "\013app_version\030\003 \001(\0132#.goo" + + "gle.cloud.ces.v1beta.AppVersionB\004\342A\001\002\"\220\001\n" + + "\027UpdateAppVersionRequest\022>\n" + + "\013app_version\030\001" + + " \001(\0132#.google.cloud.ces.v1beta.AppVersionB\004\342A\001\002\0225\n" + + "\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"P\n" + "\030RestoreAppVersionRequest\0224\n" + "\004name\030\001 \001(\tB&\342A\001\002\372A\037\n" + "\035ces.googleapis.com/AppVersion\"\033\n" @@ -717,26 +737,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005agent\030\002 \001(\0132\036.google.cloud.ces.v1beta.AgentH\000\022-\n" + "\004tool\030\004 \001(\0132\035.google.cloud.ces.v1beta.ToolH\000\0223\n" + "\007toolset\030\006 \001(\0132 .google.cloud.ces.v1beta.ToolsetH\000\022d\n" - + "\023app_version_context\030\014 \001(\013" - + "2E.google.cloud.ces.v1beta.GenerateAppResourceRequest.AppVersionContextH\000\022/\n" + + "\023app_version_context\030\014 \001(\0132E.google.cloud." + + "ces.v1beta.GenerateAppResourceRequest.AppVersionContextH\000\022/\n" + "\006parent\030\001 \001(\tB\037\342A\001\002\372A\030\n" + "\026ces.googleapis.com/App\022i\n" - + "\023refine_instructions\030\003 \003(\0132F.google" - + ".cloud.ces.v1beta.GenerateAppResourceRequest.RefineInstructionsB\004\342A\001\001\022n\n" - + "\026tool_generation_config\030\005 \001(\0132H.google.cloud.ces" - + ".v1beta.GenerateAppResourceRequest.ToolGenerationConfigB\004\342A\001\001\022l\n" - + "\025app_generation_config\030\007 \001(\0132G.google.cloud.ces.v1beta.G" - + "enerateAppResourceRequest.AppGenerationConfigB\004\342A\001\001\022z\n" - + "\034evaluation_generation_config\030\010 \001(\0132N.google.cloud.ces.v1beta.Gene" - + "rateAppResourceRequest.EvaluationGenerationConfigB\004\342A\001\001\022\213\001\n" - + "%evaluation_personas_generation_config\030\t \001(\0132V.google.cloud.c" - + "es.v1beta.GenerateAppResourceRequest.Eva" - + "luationPersonasGenerationConfigB\004\342A\001\001\022\201\001\n" + + "\023refine_instructions\030\003 \003(\0132F.google.cloud.ces.v1bet" + + "a.GenerateAppResourceRequest.RefineInstructionsB\004\342A\001\001\022n\n" + + "\026tool_generation_config\030\005 \001(\0132H.google.cloud.ces.v1beta.Generate" + + "AppResourceRequest.ToolGenerationConfigB\004\342A\001\001\022l\n" + + "\025app_generation_config\030\007 \001(\0132G.g" + + "oogle.cloud.ces.v1beta.GenerateAppResourceRequest.AppGenerationConfigB\004\342A\001\001\022z\n" + + "\034evaluation_generation_config\030\010 \001(\0132N.goog" + + "le.cloud.ces.v1beta.GenerateAppResourceR" + + "equest.EvaluationGenerationConfigB\004\342A\001\001\022\213\001\n" + + "%evaluation_personas_generation_config\030\t" + + " \001(\0132V.google.cloud.ces.v1beta.Genera" + + "teAppResourceRequest.EvaluationPersonasGenerationConfigB\004\342A\001\001\022\201\001\n" + " quality_report_generation_config\030\n" - + " \001(\0132Q.google.cloud.ces.v1beta.GenerateAppRe" - + "sourceRequest.QualityReportGenerationConfigB\004\342A\001\001\022q\n" - + "\030hill_climbing_fix_config\030\013 \001(\0132I.google.cloud.ces.v1beta.GenerateAp" - + "pResourceRequest.HillClimbingFixConfigB\004\342A\001\001\032\210\001\n" + + " \001(\0132Q.google.cloud." + + "ces.v1beta.GenerateAppResourceRequest.QualityReportGenerationConfigB\004\342A\001\001\022q\n" + + "\030hill_climbing_fix_config\030\013 \001(\0132I.google.clo" + + "ud.ces.v1beta.GenerateAppResourceRequest.HillClimbingFixConfigB\004\342A\001\001\032\210\001\n" + "\021AppVersionContext\0227\n" + "\013app_version\030\001 \001(\tB\"\372A\037\n" + "\035ces.googleapis.com/AppVersion\022:\n" @@ -750,16 +771,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014instructions\030\004 \001(\tB\004\342A\001\002\032\363\004\n" + "\024ToolGenerationConfig\022\025\n" + "\007context\030\001 \001(\tB\004\342A\001\001\022A\n\r" - + "file_contexts\030\003" - + " \003(\0132$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022\231\001\n" - + "\"open_api_toolset_generation_config\030\002 \001(\0132g.google.cloud.ces." - + "v1beta.GenerateAppResourceRequest.ToolGe" - + "nerationConfig.OpenApiToolsetGenerationConfigB\004\342A\001\001\032\344\002\n" + + "file_contexts\030\003 \003(\0132$.go" + + "ogle.cloud.ces.v1beta.FileContextB\004\342A\001\001\022\231\001\n" + + "\"open_api_toolset_generation_config\030\002" + + " \001(\0132g.google.cloud.ces.v1beta.GenerateA" + + "ppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenerationConfigB\004\342A\001\001\032\344\002\n" + "\036OpenApiToolsetGenerationConfig\022\021\n" + "\003uri\030\001 \001(\tB\004\342A\001\002\022\256\001\n" - + "\034operation_generation_configs\030\002 \003(\0132\201\001.google.cloud" - + ".ces.v1beta.GenerateAppResourceRequest.ToolGenerationConfig.OpenApiToolsetGenera" - + "tionConfig.OperationGenerationConfigB\004\342A\001\002\032~\n" + + "\034operation_generation_configs\030\002" + + " \003(\0132\201\001.google.cloud.ces.v1beta.Gene" + + "rateAppResourceRequest.ToolGenerationCon" + + "fig.OpenApiToolsetGenerationConfig.OperationGenerationConfigB\004\342A\001\002\032~\n" + "\031OperationGenerationConfig\022\024\n" + "\006method\030\001 \001(\tB\004\342A\001\002\022\022\n" + "\004path\030\002 \001(\tB\004\342A\001\002\022\032\n" @@ -767,44 +789,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "response_json\030\004 \001(\tB\004\342A\001\002\032\372\001\n" + "\023AppGenerationConfig\022\025\n" + "\007context\030\001 \001(\tB\004\342A\001\001\022A\n\r" - + "file_contexts\030\002 \003(\013" - + "2$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022I\n\n" + + "file_contexts\030\002" + + " \003(\0132$.google.cloud.ces.v1beta.FileContextB\004\342A\001\001\022I\n\n" + "dataset_id\030\003 \001(\tB5\342A\001\001\372A.\n" + ",contactcenterinsights.googleapis.com/Dataset\022\"\n" + "\024generate_evaluations\030\004 \001(\010B\004\342A\001\001\022\032\n" + "\014gcs_location\030\005 \001(\tB\004\342A\001\001\032g\n" - + "\032EvaluationGenerationConfig\022I\n\n" + + "\032EvaluationGenerationConfig\022I\n" + + "\n" + "dataset_id\030\001 \001(\tB5\342A\001\001\372A.\n" + ",contactcenterinsights.googleapis.com/Dataset\032$\n" + "\"EvaluationPersonasGenerationConfig\032\324\002\n" + "\035QualityReportGenerationConfig\022A\n" + "\016evaluation_run\030\001 \001(\tB)\342A\001\002\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\203\001\n" - + "\talgorithm\030\002 \001(\0162j.google.cloud.ces.v1beta.Genera" - + "teAppResourceRequest.QualityReportGenera" - + "tionConfig.LossAttributionAlgorithmB\004\342A\001\001\"j\n" + + "\talgorithm\030\002 \001(\0162j.google.cloud.ces.v1beta.GenerateAppResourceReq" + + "uest.QualityReportGenerationConfig.LossAttributionAlgorithmB\004\342A\001\001\"j\n" + "\030LossAttributionAlgorithm\022*\n" + "&LOSS_ATTRIBUTION_ALGORITHM_UNSPECIFIED\020\000\022\017\n" + "\013APP_CENTRIC\020\001\022\021\n\r" + "AGENT_CENTRIC\020\002\032]\n" + "\025HillClimbingFixConfig\022D\n" - + "\016quality_report\030\001 \001(\0132&" - + ".google.cloud.ces.v1beta.QualityReportB\004\342A\001\002B\n\n" + + "\016quality_report\030\001" + + " \001(\0132&.google.cloud.ces.v1beta.QualityReportB\004\342A\001\002B\n\n" + "\010resource\"\264\007\n" + "\033GenerateAppResourceResponse\022/\n" + "\005agent\030\001 \001(\0132\036.google.cloud.ces.v1beta.AgentH\000\0223\n" + "\007toolset\030\003 \001(\0132 .google.cloud.ces.v1beta.ToolsetH\000\022<\n" + "\014app_snapshot\030\004 \001(\0132$.google.cloud.ces.v1beta.AppSnapshotH\000\022K\n" - + "\005tools\030\005 \001(\0132:.google.clo" - + "ud.ces.v1beta.GenerateAppResourceResponse.ToolsH\000\022W\n" - + "\013evaluations\030\006 \001(\0132@.google." - + "cloud.ces.v1beta.GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" - + "app_resources\030\007 \001(" - + "\0132A.google.cloud.ces.v1beta.GenerateAppResourceResponse.AppResourcesH\000\022@\n" - + "\016quality_report\030\010" - + " \001(\0132&.google.cloud.ces.v1beta.QualityReportH\000\022e\n" - + "\024generate_result_info\030\002 \001(\0132G.google.cloud.ces.v1beta.Generat" - + "eAppResourceResponse.GenerateResultInfo\032G\n" + + "\005tools\030\005" + + " \001(\0132:.google.cloud.ces.v1beta.GenerateAppResourceResponse.ToolsH\000\022W\n" + + "\013evaluations\030\006 \001(\0132@.google.cloud.ces.v1beta" + + ".GenerateAppResourceResponse.EvaluationsH\000\022Z\n\r" + + "app_resources\030\007 \001(\0132A.google.cloud" + + ".ces.v1beta.GenerateAppResourceResponse.AppResourcesH\000\022@\n" + + "\016quality_report\030\010 \001(\0132&" + + ".google.cloud.ces.v1beta.QualityReportH\000\022e\n" + + "\024generate_result_info\030\002 \001(\0132G.google." + + "cloud.ces.v1beta.GenerateAppResourceResponse.GenerateResultInfo\032G\n" + "\013Evaluations\0228\n" + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\0325\n" + "\005Tools\022,\n" @@ -816,22 +838,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013explanation\030\001 \001(\tB\024\n" + "\022generated_resource\"\221\003\n\r" + "QualityReport\022H\n" - + "\006issues\030\001 \003(" - + "\01322.google.cloud.ces.v1beta.QualityReport.AgentIssuesB\004\342A\001\001\022\035\n" + + "\006issues\030\001 \003(\01322.google.cloud" + + ".ces.v1beta.QualityReport.AgentIssuesB\004\342A\001\001\022\035\n" + "\017evaluation_runs\030\002 \003(\tB\004\342A\001\001\022J\n" - + "\016general_issues\030\003 \003(\0132,.goo" - + "gle.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\032c\n" + + "\016general_issues\030\003" + + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\032c\n" + "\005Issue\022\031\n" + "\013description\030\001 \001(\tB\004\342A\001\001\022\036\n" + "\020occurrence_count\030\002 \001(\005B\004\342A\001\001\022\037\n" + "\021proposed_solution\030\003 \001(\tB\004\342A\001\001\032f\n" + "\013AgentIssues\022\023\n" + "\005agent\030\001 \001(\tB\004\342A\001\001\022B\n" - + "\006issues\030\002 \003(\0132" - + ",.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\"\361\004\n" + + "\006issues\030\002" + + " \003(\0132,.google.cloud.ces.v1beta.QualityReport.IssueB\004\342A\001\001\"\361\004\n" + "$GenerateAppResourceOperationMetadata\022k\n" - + "\017generation_type\030\001 \001(\0162L.google.cloud.ces.v1beta.GenerateAppResou" - + "rceOperationMetadata.GenerationTypeB\004\342A\001\003\022\025\n" + + "\017generation_type\030\001 \001(\0162L.google.cloud.ces" + + ".v1beta.GenerateAppResourceOperationMetadata.GenerationTypeB\004\342A\001\003\022\025\n" + "\007message\030\002 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" @@ -868,259 +890,267 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#ces.googleapis.com/SecuritySettings\"\242\001\n" + "\035UpdateSecuritySettingsRequest\022J\n" - + "\021security_settings\030\001 \001(\0132).google" - + ".cloud.ces.v1beta.SecuritySettingsB\004\342A\001\002\0225\n" + + "\021security_settings\030\001" + + " \001(\0132).google.cloud.ces.v1beta.SecuritySettingsB\004\342A\001\002\0225\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\0012\326M\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\0012\266O\n" + "\014AgentService\022\236\001\n" - + "\010ListApps\022(.google.cloud.ces.v1beta.ListApps" - + "Request\032).google.cloud.ces.v1beta.ListAp" - + "psResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1beta/{parent=projects/*/locations/*}/apps\022\213\001\n" - + "\006GetApp\022&.google.cloud.ces.v1beta.GetAppReq" - + "uest\032\034.google.cloud.ces.v1beta.App\";\332A\004n" - + "ame\202\323\344\223\002.\022,/v1beta/{name=projects/*/locations/*/apps/*}\022\314\001\n" - + "\tCreateApp\022).google.c" - + "loud.ces.v1beta.CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + + "\010ListApps\022(.google.cloud.ces.v1beta.ListAppsRequest\032).google" + + ".cloud.ces.v1beta.ListAppsResponse\"=\332A\006p" + + "arent\202\323\344\223\002.\022,/v1beta/{parent=projects/*/locations/*}/apps\022\213\001\n" + + "\006GetApp\022&.google.cloud.ces.v1beta.GetAppRequest\032\034.google.cl" + + "oud.ces.v1beta.App\";\332A\004name\202\323\344\223\002.\022,/v1be" + + "ta/{name=projects/*/locations/*/apps/*}\022\314\001\n" + + "\tCreateApp\022).google.cloud.ces.v1beta." + + "CreateAppRequest\032\035.google.longrunning.Operation\"u\312A\030\n" + "\003App\022\021OperationMetadata\332A\021parent,app,app_id\332A\n" - + "paren" - + "t,app\202\323\344\223\0023\",/v1beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" - + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRequest\032" - + "\034.google.cloud.ces.v1beta.App\"O\332A\017app,up" - + "date_mask\202\323\344\223\002720/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" - + "\tDeleteApp\022).google.cloud.ces.v1beta.DeleteApp" - + "Request\032\035.google.longrunning.Operation\"h\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMet" - + "adata\332A\004name\202\323\344\223\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" - + "\tExportApp\022)" - + ".google.cloud.ces.v1beta.ExportAppRequest\032\035.google.longrunning.Operation\"q\312A&\n" - + "\021ExportAppResponse\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\002;\"6/v1beta/{name=projects/*/locations/*/apps/*}:exportApp:\001*\022\337\001\n" - + "\tImportApp\022).google.cloud.ces.v1beta.ImportAppReq" - + "uest\032\035.google.longrunning.Operation\"\207\001\312A&\n" - + "\021ImportAppResponse\022\021OperationMetadata\332" - + "A\032parent,display_name,app_id\202\323\344\223\002;\"6/v1b" - + "eta/{parent=projects/*/locations/*}/apps:importApp:\001*\022\274\001\n" - + "\023GetSecuritySettings\0223.google.cloud.ces.v1beta.GetSecuritySetti" - + "ngsRequest\032).google.cloud.ces.v1beta.Sec", - "uritySettings\"E\332A\004name\202\323\344\223\0028\0226/v1beta/{n" - + "ame=projects/*/locations/*/securitySetti" - + "ngs}\022\201\002\n\026UpdateSecuritySettings\0226.google" - + ".cloud.ces.v1beta.UpdateSecuritySettings" - + "Request\032).google.cloud.ces.v1beta.Securi" - + "tySettings\"\203\001\332A\035security_settings,update" - + "_mask\202\323\344\223\002]2H/v1beta/{security_settings." - + "name=projects/*/locations/*/securitySett" - + "ings}:\021security_settings\022\255\001\n\nListAgents\022" - + "*.google.cloud.ces.v1beta.ListAgentsRequ" - + "est\032+.google.cloud.ces.v1beta.ListAgents" - + "Response\"F\332A\006parent\202\323\344\223\0027\0225/v1beta/{pare" - + "nt=projects/*/locations/*/apps/*}/agents" - + "\022\232\001\n\010GetAgent\022(.google.cloud.ces.v1beta." - + "GetAgentRequest\032\036.google.cloud.ces.v1bet" - + "a.Agent\"D\332A\004name\202\323\344\223\0027\0225/v1beta/{name=pr" - + "ojects/*/locations/*/apps/*/agents/*}\022\307\001" - + "\n\013CreateAgent\022+.google.cloud.ces.v1beta." - + "CreateAgentRequest\032\036.google.cloud.ces.v1" - + "beta.Agent\"k\332A\025parent,agent,agent_id\332A\014p" - + "arent,agent\202\323\344\223\002>\"5/v1beta/{parent=proje" - + "cts/*/locations/*/apps/*}/agents:\005agent\022" - + "\272\001\n\013UpdateAgent\022+.google.cloud.ces.v1bet" - + "a.UpdateAgentRequest\032\036.google.cloud.ces." - + "v1beta.Agent\"^\332A\021agent,update_mask\202\323\344\223\002D" - + "2;/v1beta/{agent.name=projects/*/locatio" - + "ns/*/apps/*/agents/*}:\005agent\022\230\001\n\013DeleteA" - + "gent\022+.google.cloud.ces.v1beta.DeleteAge" - + "ntRequest\032\026.google.protobuf.Empty\"D\332A\004na" - + "me\202\323\344\223\0027*5/v1beta/{name=projects/*/locat" - + "ions/*/apps/*/agents/*}\022\265\001\n\014ListExamples" - + "\022,.google.cloud.ces.v1beta.ListExamplesR" - + "equest\032-.google.cloud.ces.v1beta.ListExa" - + "mplesResponse\"H\332A\006parent\202\323\344\223\0029\0227/v1beta/" - + "{parent=projects/*/locations/*/apps/*}/e" - + "xamples\022\242\001\n\nGetExample\022*.google.cloud.ce" - + "s.v1beta.GetExampleRequest\032 .google.clou" - + "d.ces.v1beta.Example\"F\332A\004name\202\323\344\223\0029\0227/v1" - + "beta/{name=projects/*/locations/*/apps/*" - + "/examples/*}\022\327\001\n\rCreateExample\022-.google." - + "cloud.ces.v1beta.CreateExampleRequest\032 ." - + "google.cloud.ces.v1beta.Example\"u\332A\031pare" - + "nt,example,example_id\332A\016parent,example\202\323" - + "\344\223\002B\"7/v1beta/{parent=projects/*/locatio" - + "ns/*/apps/*}/examples:\007example\022\310\001\n\rUpdat" - + "eExample\022-.google.cloud.ces.v1beta.Updat" - + "eExampleRequest\032 .google.cloud.ces.v1bet" - + "a.Example\"f\332A\023example,update_mask\202\323\344\223\002J2" - + "?/v1beta/{example.name=projects/*/locati" - + "ons/*/apps/*/examples/*}:\007example\022\236\001\n\rDe" - + "leteExample\022-.google.cloud.ces.v1beta.De" - + "leteExampleRequest\032\026.google.protobuf.Emp" - + "ty\"F\332A\004name\202\323\344\223\0029*7/v1beta/{name=project" - + "s/*/locations/*/apps/*/examples/*}\022\251\001\n\tL" - + "istTools\022).google.cloud.ces.v1beta.ListT" - + "oolsRequest\032*.google.cloud.ces.v1beta.Li" - + "stToolsResponse\"E\332A\006parent\202\323\344\223\0026\0224/v1bet" + + "parent,app\202\323\344\223\0023\",/v1" + + "beta/{parent=projects/*/locations/*}/apps:\003app\022\245\001\n" + + "\tUpdateApp\022).google.cloud.ces.v1beta.UpdateAppRequest\032\034.google.cloud.c" + + "es.v1beta.App\"O\332A\017app,update_mask\202\323\344\223\00272" + + "0/v1beta/{app.name=projects/*/locations/*/apps/*}:\003app\022\277\001\n" + + "\tDeleteApp\022).google.cl" + + "oud.ces.v1beta.DeleteAppRequest\032\035.google.longrunning.Operation\"h\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223" + + "\002.*,/v1beta/{name=projects/*/locations/*/apps/*}\022\310\001\n" + + "\tExportApp\022).google.cloud.ce" + + "s.v1beta.ExportAppRequest\032\035.google.longrunning.Operation\"q\312A&\n" + + "\021ExportAppResponse" + + "\022\021OperationMetadata\332A\004name\202\323\344\223\002;\"6/v1bet" + + "a/{name=projects/*/locations/*/apps/*}:e", + "xportApp:\001*\022\337\001\n\tImportApp\022).google.cloud" + + ".ces.v1beta.ImportAppRequest\032\035.google.lo" + + "ngrunning.Operation\"\207\001\312A&\n\021ImportAppResp" + + "onse\022\021OperationMetadata\332A\032parent,display" + + "_name,app_id\202\323\344\223\002;\"6/v1beta/{parent=proj" + + "ects/*/locations/*}/apps:importApp:\001*\022\274\001" + + "\n\023GetSecuritySettings\0223.google.cloud.ces" + + ".v1beta.GetSecuritySettingsRequest\032).goo" + + "gle.cloud.ces.v1beta.SecuritySettings\"E\332" + + "A\004name\202\323\344\223\0028\0226/v1beta/{name=projects/*/l" + + "ocations/*/securitySettings}\022\201\002\n\026UpdateS" + + "ecuritySettings\0226.google.cloud.ces.v1bet" + + "a.UpdateSecuritySettingsRequest\032).google" + + ".cloud.ces.v1beta.SecuritySettings\"\203\001\332A\035" + + "security_settings,update_mask\202\323\344\223\002]2H/v1" + + "beta/{security_settings.name=projects/*/" + + "locations/*/securitySettings}:\021security_" + + "settings\022\255\001\n\nListAgents\022*.google.cloud.c" + + "es.v1beta.ListAgentsRequest\032+.google.clo" + + "ud.ces.v1beta.ListAgentsResponse\"F\332A\006par" + + "ent\202\323\344\223\0027\0225/v1beta/{parent=projects/*/lo" + + "cations/*/apps/*}/agents\022\232\001\n\010GetAgent\022(." + + "google.cloud.ces.v1beta.GetAgentRequest\032" + + "\036.google.cloud.ces.v1beta.Agent\"D\332A\004name" + + "\202\323\344\223\0027\0225/v1beta/{name=projects/*/locatio" + + "ns/*/apps/*/agents/*}\022\307\001\n\013CreateAgent\022+." + + "google.cloud.ces.v1beta.CreateAgentReque" + + "st\032\036.google.cloud.ces.v1beta.Agent\"k\332A\025p" + + "arent,agent,agent_id\332A\014parent,agent\202\323\344\223\002" + + ">\"5/v1beta/{parent=projects/*/locations/" + + "*/apps/*}/agents:\005agent\022\272\001\n\013UpdateAgent\022" + + "+.google.cloud.ces.v1beta.UpdateAgentReq" + + "uest\032\036.google.cloud.ces.v1beta.Agent\"^\332A" + + "\021agent,update_mask\202\323\344\223\002D2;/v1beta/{agent" + + ".name=projects/*/locations/*/apps/*/agen" + + "ts/*}:\005agent\022\230\001\n\013DeleteAgent\022+.google.cl" + + "oud.ces.v1beta.DeleteAgentRequest\032\026.goog" + + "le.protobuf.Empty\"D\332A\004name\202\323\344\223\0027*5/v1bet" + + "a/{name=projects/*/locations/*/apps/*/ag" + + "ents/*}\022\265\001\n\014ListExamples\022,.google.cloud." + + "ces.v1beta.ListExamplesRequest\032-.google." + + "cloud.ces.v1beta.ListExamplesResponse\"H\332" + + "A\006parent\202\323\344\223\0029\0227/v1beta/{parent=projects" + + "/*/locations/*/apps/*}/examples\022\242\001\n\nGetE" + + "xample\022*.google.cloud.ces.v1beta.GetExam" + + "pleRequest\032 .google.cloud.ces.v1beta.Exa" + + "mple\"F\332A\004name\202\323\344\223\0029\0227/v1beta/{name=proje" + + "cts/*/locations/*/apps/*/examples/*}\022\327\001\n" + + "\rCreateExample\022-.google.cloud.ces.v1beta" + + ".CreateExampleRequest\032 .google.cloud.ces" + + ".v1beta.Example\"u\332A\031parent,example,examp" + + "le_id\332A\016parent,example\202\323\344\223\002B\"7/v1beta/{p" + + "arent=projects/*/locations/*/apps/*}/exa" + + "mples:\007example\022\310\001\n\rUpdateExample\022-.googl" + + "e.cloud.ces.v1beta.UpdateExampleRequest\032" + + " .google.cloud.ces.v1beta.Example\"f\332A\023ex" + + "ample,update_mask\202\323\344\223\002J2?/v1beta/{exampl" + + "e.name=projects/*/locations/*/apps/*/exa" + + "mples/*}:\007example\022\236\001\n\rDeleteExample\022-.go" + + "ogle.cloud.ces.v1beta.DeleteExampleReque" + + "st\032\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\002" + + "9*7/v1beta/{name=projects/*/locations/*/" + + "apps/*/examples/*}\022\251\001\n\tListTools\022).googl" + + "e.cloud.ces.v1beta.ListToolsRequest\032*.go" + + "ogle.cloud.ces.v1beta.ListToolsResponse\"" + + "E\332A\006parent\202\323\344\223\0026\0224/v1beta/{parent=projec" + + "ts/*/locations/*/apps/*}/tools\022\226\001\n\007GetTo" + + "ol\022\'.google.cloud.ces.v1beta.GetToolRequ" + + "est\032\035.google.cloud.ces.v1beta.Tool\"C\332A\004n" + + "ame\202\323\344\223\0026\0224/v1beta/{name=projects/*/loca" + + "tions/*/apps/*/tools/*}\022\311\001\n\021ListConversa" + + "tions\0221.google.cloud.ces.v1beta.ListConv" + + "ersationsRequest\0322.google.cloud.ces.v1be" + + "ta.ListConversationsResponse\"M\332A\006parent\202" + + "\323\344\223\002>\022\022*\022\022* * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -354,7 +354,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -378,7 +378,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -1067,7 +1067,7 @@ public Builder clearSource() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Override @@ -1089,7 +1089,7 @@ public boolean hasPrebuiltAmbientNoise() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Override @@ -1114,7 +1114,7 @@ public int getPrebuiltAmbientNoiseValue() { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @param value The enum numeric value on the wire for prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1139,7 +1139,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Override @@ -1171,7 +1171,7 @@ public Builder setPrebuiltAmbientNoiseValue(int value) { * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @param value The prebuiltAmbientNoise to set. * @return This builder for chaining. */ @@ -1200,7 +1200,7 @@ public Builder setPrebuiltAmbientNoise( * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java index 3bc3be3c7aff..eb2e635e0552 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AmbientSoundConfigOrBuilder.java @@ -39,7 +39,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return Whether the prebuiltAmbientNoise field is set. */ @java.lang.Deprecated @@ -58,7 +58,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The enum numeric value on the wire for prebuiltAmbientNoise. */ @java.lang.Deprecated @@ -77,7 +77,7 @@ public interface AmbientSoundConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.AmbientSoundConfig.prebuilt_ambient_noise is deprecated. - * See google/cloud/ces/v1beta/app.proto;l=313 + * See google/cloud/ces/v1beta/app.proto;l=410 * @return The prebuiltAmbientNoise. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java index c378c0b663aa..3b08c78806bb 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/App.java @@ -3252,6 +3252,68 @@ public com.google.protobuf.ByteString getValidationErrorsBytes(int index) { return validationErrors_.getByteString(index); } + public static final int DASHBOARD_SETTINGS_FIELD_NUMBER = 43; + private com.google.cloud.ces.v1beta.DashboardSettings dashboardSettings_; + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + @java.lang.Override + public boolean hasDashboardSettings() { + return ((bitField0_ & 0x00004000) != 0); + } + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings() { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder() { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3357,6 +3419,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < validationErrors_.size(); i++) { com.google.protobuf.GeneratedMessage.writeString(output, 39, validationErrors_.getRaw(i)); } + if (((bitField0_ & 0x00004000) != 0)) { + output.writeMessage(43, getDashboardSettings()); + } getUnknownFields().writeTo(output); } @@ -3487,6 +3552,9 @@ public int getSerializedSize() { size += dataSize; size += 2 * getValidationErrorsList().size(); } + if (((bitField0_ & 0x00004000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(43, getDashboardSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3577,6 +3645,10 @@ public boolean equals(final java.lang.Object obj) { if (!getEvaluationSettings().equals(other.getEvaluationSettings())) return false; } if (!getValidationErrorsList().equals(other.getValidationErrorsList())) return false; + if (hasDashboardSettings() != other.hasDashboardSettings()) return false; + if (hasDashboardSettings()) { + if (!getDashboardSettings().equals(other.getDashboardSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -3688,6 +3760,10 @@ public int hashCode() { hash = (37 * hash) + VALIDATION_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getValidationErrorsList().hashCode(); } + if (hasDashboardSettings()) { + hash = (37 * hash) + DASHBOARD_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDashboardSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -3869,6 +3945,7 @@ private void maybeForceBuilderInitialization() { internalGetVpcScSettingsFieldBuilder(); internalGetEvaluationPersonasFieldBuilder(); internalGetEvaluationSettingsFieldBuilder(); + internalGetDashboardSettingsFieldBuilder(); } } @@ -3980,6 +4057,11 @@ public Builder clear() { evaluationSettingsBuilder_ = null; } validationErrors_ = com.google.protobuf.LazyStringArrayList.emptyList(); + dashboardSettings_ = null; + if (dashboardSettingsBuilder_ != null) { + dashboardSettingsBuilder_.dispose(); + dashboardSettingsBuilder_ = null; + } return this; } @@ -4172,6 +4254,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.App result) { validationErrors_.makeImmutable(); result.validationErrors_ = validationErrors_; } + if (((from_bitField0_ & 0x40000000) != 0)) { + result.dashboardSettings_ = + dashboardSettingsBuilder_ == null + ? dashboardSettings_ + : dashboardSettingsBuilder_.build(); + to_bitField0_ |= 0x00004000; + } result.bitField0_ |= to_bitField0_; } @@ -4375,6 +4464,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.App other) { } onChanged(); } + if (other.hasDashboardSettings()) { + mergeDashboardSettings(other.getDashboardSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -4628,6 +4720,13 @@ public Builder mergeFrom( validationErrors_.add(s); break; } // case 314 + case 346: + { + input.readMessage( + internalGetDashboardSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x40000000; + break; + } // case 346 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -10546,6 +10645,229 @@ public Builder addValidationErrorsBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.ces.v1beta.DashboardSettings dashboardSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder> + dashboardSettingsBuilder_; + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + public boolean hasDashboardSettings() { + return ((bitField0_ & 0x40000000) != 0); + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + public com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings() { + if (dashboardSettingsBuilder_ == null) { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } else { + return dashboardSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardSettings(com.google.cloud.ces.v1beta.DashboardSettings value) { + if (dashboardSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dashboardSettings_ = value; + } else { + dashboardSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDashboardSettings( + com.google.cloud.ces.v1beta.DashboardSettings.Builder builderForValue) { + if (dashboardSettingsBuilder_ == null) { + dashboardSettings_ = builderForValue.build(); + } else { + dashboardSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x40000000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDashboardSettings(com.google.cloud.ces.v1beta.DashboardSettings value) { + if (dashboardSettingsBuilder_ == null) { + if (((bitField0_ & 0x40000000) != 0) + && dashboardSettings_ != null + && dashboardSettings_ + != com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance()) { + getDashboardSettingsBuilder().mergeFrom(value); + } else { + dashboardSettings_ = value; + } + } else { + dashboardSettingsBuilder_.mergeFrom(value); + } + if (dashboardSettings_ != null) { + bitField0_ |= 0x40000000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDashboardSettings() { + bitField0_ = (bitField0_ & ~0x40000000); + dashboardSettings_ = null; + if (dashboardSettingsBuilder_ != null) { + dashboardSettingsBuilder_.dispose(); + dashboardSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DashboardSettings.Builder getDashboardSettingsBuilder() { + bitField0_ |= 0x40000000; + onChanged(); + return internalGetDashboardSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder() { + if (dashboardSettingsBuilder_ != null) { + return dashboardSettingsBuilder_.getMessageOrBuilder(); + } else { + return dashboardSettings_ == null + ? com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance() + : dashboardSettings_; + } + } + + /** + * + * + *
+     * Optional. App-specific dashboard settings for linking and configuring
+     * Contact Center Insights dashboards.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder> + internalGetDashboardSettingsFieldBuilder() { + if (dashboardSettingsBuilder_ == null) { + dashboardSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DashboardSettings, + com.google.cloud.ces.v1beta.DashboardSettings.Builder, + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder>( + getDashboardSettings(), getParentForChildren(), isClean()); + dashboardSettings_ = null; + } + return dashboardSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.App) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java index 77af5f966e96..00a74fd7eb34 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppOrBuilder.java @@ -1280,4 +1280,50 @@ java.lang.String getMetadataOrDefault( * @return The bytes of the validationErrors at the given index. */ com.google.protobuf.ByteString getValidationErrorsBytes(int index); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the dashboardSettings field is set. + */ + boolean hasDashboardSettings(); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The dashboardSettings. + */ + com.google.cloud.ces.v1beta.DashboardSettings getDashboardSettings(); + + /** + * + * + *
+   * Optional. App-specific dashboard settings for linking and configuring
+   * Contact Center Insights dashboards.
+   * 
+ * + * + * .google.cloud.ces.v1beta.DashboardSettings dashboard_settings = 43 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder getDashboardSettingsOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java index ba64dc486cd0..adb5b2df3cf1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java @@ -52,6 +52,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_App_MetadataEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_App_MetadataEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -60,6 +64,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_LanguageSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -185,7 +197,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "proto\0327google/cloud/ces/v1beta/evaluation_metrics_config.proto\032#google/cloud/ces" + "/v1beta/fakes.proto\032(google/cloud/ces/v1beta/golden_run.proto\032$google/cloud/ces/" + "v1beta/schema.proto\032\036google/protobuf/dur" - + "ation.proto\032\037google/protobuf/timestamp.proto\"\243\021\n" + + "ation.proto\032\037google/protobuf/timestamp.proto\"\361\021\n" + "\003App\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" @@ -238,7 +250,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132*.google.cloud.ces.v1beta.EvaluationPersonaB\004\342A\001\001\022N\n" + "\023evaluation_settings\030!" + " \001(\0132+.google.cloud.ces.v1beta.EvaluationSettingsB\004\342A\001\001\022\037\n" - + "\021validation_errors\030\' \003(\tB\004\342A\001\003\032{\n" + + "\021validation_errors\030\' \003(\tB\004\342A\001\003\022L\n" + + "\022dashboard_settings\030+" + + " \001(\0132*.google.cloud.ces.v1beta.DashboardSettingsB\004\342A\001\001\032{\n" + "\023VariableDeclaration\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\002\0225\n" @@ -251,31 +265,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037TOOL_EXECUTION_MODE_UNSPECIFIED\020\000\022\014\n" + "\010PARALLEL\020\001\022\016\n\n" + "SEQUENTIAL\020\002:Z\352AW\n" - + "\026ces.googleapis.com/App\0222pro" - + "jects/{project}/locations/{location}/apps/{app}*\004apps2\003app\"+\n" + + "\026ces.googleapis.com/App\0222proje" + + "cts/{project}/locations/{location}/apps/{app}*\004apps2\003app\"g\n" + + "\021DashboardSettings\022R\n" + + "\021default_dashboard\030\001 \001(\tB7\342A\001\001\372A0\n" + + ".contactcenterinsights.googleapis.com/Dashboard\"+\n" + "\020TimeZoneSettings\022\027\n" + "\ttime_zone\030\001 \001(\tB\004\342A\001\001\"\253\001\n" + "\020LanguageSettings\022#\n" + "\025default_language_code\030\001 \001(\tB\004\342A\001\001\022&\n" + "\030supported_language_codes\030\002 \003(\tB\004\342A\001\001\022)\n" + "\033enable_multilingual_support\030\003 \001(\010B\004\342A\001\001\022\037\n" - + "\017fallback_action\030\004 \001(\tB\006\030\001\342A\001\001\"\323\003\n" + + "\017fallback_action\030\004 \001(\tB\006\030\001\342A\001\001\"\305\005\n" + + "\021CustomVoiceSample\022\022\n" + + "\004name\030\001 \001(\tB\004\342A\001\001\022\"\n" + + "\024voice_sample_gcs_uri\030\002 \001(\tB\004\342A\001\001\022#\n" + + "\025consent_audio_gcs_uri\030\003 \001(\tB\004\342A\001\001\022\037\n" + + "\021voice_instruction\030\004 \001(\tB\004\342A\001\001\022#\n" + + "\025preview_audio_content\030\005 \001(\014B\004\342A\001\003\022\032\n" + + "\014preview_text\030\006 \001(\tB\004\342A\001\001\022J\n" + + "\010warnings\030\007" + + " \003(\01322.google.cloud.ces.v1beta.CustomVoiceSample.WarningB\004\342A\001\003\022e\n" + + "\026voice_instruction_mode\030\010 \001(\0162?.google.cloud.ces" + + ".v1beta.CustomVoiceSample.VoiceInstructionModeB\004\342A\001\001\032\266\001\n" + + "\007Warning\022\025\n" + + "\007message\030\001 \001(\tB\004\342A\001\003\022R\n" + + "\004type\030\002 \001(\0162>.google.cloud.ces" + + ".v1beta.CustomVoiceSample.Warning.WarningTypeB\004\342A\001\003\"@\n" + + "\013WarningType\022\034\n" + + "\030WARNING_TYPE_UNSPECIFIED\020\000\022\023\n" + + "\017LOW_AUDIO_LEVEL\020\001\"\204\001\n" + + "\024VoiceInstructionMode\022&\n" + + "\"VOICE_INSTRUCTION_MODE_UNSPECIFIED\020\000\022\022\n" + + "\016NO_INSTRUCTION\020\001\022\030\n" + + "\024GENERATE_INSTRUCTION\020\002\022\026\n" + + "\022CUSTOM_INSTRUCTION\020\003\"\243\004\n" + "\025AudioProcessingConfig\022t\n" - + "\031synthesize_speech_configs\030\001 \003(\0132K.google.cloud.ces.v1" - + "beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\004\342A\001\001\022E\n" + + "\031synthesize_speech_configs\030\001 \003(\0132K.goog" + + "le.cloud.ces.v1beta.AudioProcessingConfig.SynthesizeSpeechConfigsEntryB\004\342A\001\001\022E\n" + "\017barge_in_config\030\003" + " \001(\0132&.google.cloud.ces.v1beta.BargeInConfigB\004\342A\001\001\022;\n" + "\022inactivity_timeout\030\004" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\022O\n" - + "\024ambient_sound_config\030\005" - + " \001(\0132+.google.cloud.ces.v1beta.AmbientSoundConfigB\004\342A\001\001\032o\n" + + "\024ambient_sound_config\030\005 \001(\0132+" + + ".google.cloud.ces.v1beta.AmbientSoundConfigB\004\342A\001\001\022N\n" + + "\024custom_voice_samples\030\n" + + " \003(\0132*.google.cloud.ces.v1beta.CustomVoiceSampleB\004\342A\001\001\032o\n" + "\034SynthesizeSpeechConfigsEntry\022\013\n" + "\003key\030\001 \001(\t\022>\n" - + "\005value\030\002" - + " \001(\0132/.google.cloud.ces.v1beta.SynthesizeSpeechConfig:\0028\001\"\335\002\n" + + "\005value\030\002 \001(\0132/.google.c" + + "loud.ces.v1beta.SynthesizeSpeechConfig:\0028\001\"\335\002\n" + "\022AmbientSoundConfig\022j\n" - + "\026prebuilt_ambient_noise\030\001 \001(\0162@.google.cloud.ces.v1beta.AmbientSoun" - + "dConfig.PrebuiltAmbientNoiseB\006\030\001\342A\001\001H\000\022\027\n" + + "\026prebuilt_ambient_noise\030\001 \001(\0162@.google.cloud.ces.v1b" + + "eta.AmbientSoundConfig.PrebuiltAmbientNoiseB\006\030\001\342A\001\001H\000\022\027\n" + "\007gcs_uri\030\002 \001(\tB\004\342A\001\001H\000\022&\n" + "\026prebuilt_ambient_sound\030\004 \001(\tB\004\342A\001\001H\000\022\034\n" + "\016volume_gain_db\030\003 \001(\001B\004\342A\001\001\"r\n" @@ -295,36 +337,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005model\030\004 \001(\tB\004\342A\001\001\022\031\n" + "\013instruction\030\005 \001(\tB\004\342A\001\001\"=\n" + "\026MetricAnalysisSettings\022#\n" - + "\025llm_metrics_opted_out\030\001 \001(\010B\004\342A\001\001\"\276\006\n" + + "\025llm_metrics_opted_out\030\001 \001(\010B\004\342A\001\001\"\350\006\n" + "\017LoggingSettings\022H\n" + "\020redaction_config\030\001" + " \001(\0132(.google.cloud.ces.v1beta.RedactionConfigB\004\342A\001\001\022S\n" - + "\026audio_recording_config\030\002" - + " \001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022^\n" - + "!unredacted_audio_recording_config\030\010 \001(\0132-.google." - + "cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" - + "\030bigquery_export_settings\030\003 \001(\0132/." - + "google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022b\n" - + "#unredacted_bigquery_export_settings\030\t" - + " \001(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022S\n" - + "\026cloud_logging_settings\030\004" - + " \001(\0132-.google.cloud.ces.v1beta.CloudLoggingSettingsB\004\342A\001\001\022a\n" - + "\035conversation_logging_settings\030\005 \001(\01324.g" - + "oogle.cloud.ces.v1beta.ConversationLoggingSettingsB\004\342A\001\001\022^\n" - + "!evaluation_audio_recording_config\030\006" + + "\026audio_recording_config\030\002 \001(\0132-.google.c" + + "loud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022^\n" + + "!unredacted_audio_recording_config\030\010" + " \001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" - + "\030metric_analysis_settings\030\007 \001(\0132/.google.clou" - + "d.ces.v1beta.MetricAnalysisSettingsB\004\342A\001\001\"\243\006\n" + + "\030bigquery_export_settings\030\003" + + " \001(\0132/.google.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022b\n" + + "#unredacted_bigquery_export_settings\030\t \001(\0132/.googl" + + "e.cloud.ces.v1beta.BigQueryExportSettingsB\004\342A\001\001\022S\n" + + "\026cloud_logging_settings\030\004 \001(\0132" + + "-.google.cloud.ces.v1beta.CloudLoggingSettingsB\004\342A\001\001\022a\n" + + "\035conversation_logging_settings\030\005" + + " \001(\01324.google.cloud.ces.v1beta.ConversationLoggingSettingsB\004\342A\001\001\022^\n" + + "!evaluation_audio_recording_config\030\006 \001(\0132-.goo" + + "gle.cloud.ces.v1beta.AudioRecordingConfigB\004\342A\001\001\022W\n" + + "\030metric_analysis_settings\030\007 \001(" + + "\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\004\342A\001\001\022(\n" + + "\032required_recording_consent\030\n" + + " \001(\010B\004\342A\001\001\"\243\006\n" + "\025ErrorHandlingSettings\022k\n" - + "\027error_handling_strategy\030\001 \001(\0162D.google.cloud.ces." - + "v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\004\342A\001\001\022m\n" - + "\030fallback_response_config\030\002 \001(\0132E.google.cloud.ces.v1beta.Err" - + "orHandlingSettings.FallbackResponseConfigB\004\342A\001\001\022a\n" - + "\022end_session_config\030\003 \001(\0132?.go" - + "ogle.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigB\004\342A\001\001\032\210\002\n" + + "\027error_handling_strategy\030\001 \001(\0162D." + + "google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\004\342A\001\001\022m\n" + + "\030fallback_response_config\030\002 \001(\0132E.google.clo" + + "ud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\004\342A\001\001\022a\n" + + "\022end_session_config\030\003 \001(\0132?.google.cloud.ces.v1beta.E" + + "rrorHandlingSettings.EndSessionConfigB\004\342A\001\001\032\210\002\n" + "\026FallbackResponseConfig\022\211\001\n" - + "\030custom_fallback_messages\030\001 \003(\0132a.google.cloud.ces.v1beta.Error" - + "HandlingSettings.FallbackResponseConfig.CustomFallbackMessagesEntryB\004\342A\001\001\022#\n" + + "\030custom_fallback_messages\030\001 \003(\0132a.google.cloud" + + ".ces.v1beta.ErrorHandlingSettings.Fallba" + + "ckResponseConfig.CustomFallbackMessagesEntryB\004\342A\001\001\022#\n" + "\025max_fallback_attempts\030\002 \001(\005B\004\342A\001\001\032=\n" + "\033CustomFallbackMessagesEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -338,33 +383,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021FALLBACK_RESPONSE\020\002\022\017\n" + "\013END_SESSION\020\003\"\264\020\n" + "\033EvaluationMetricsThresholds\022\212\001\n" - + "$golden_evaluation_metrics_thresholds\030\001" - + " \001(\0132V.google.cloud.ces.v1beta.Evaluat" - + "ionMetricsThresholds.GoldenEvaluationMetricsThresholdsB\004\342A\001\001\022\177\n" - + "\035hallucination_metric_behavior\030\003 \001(\0162P.google.cloud.ces.v" - + "1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\006\030\001\342A\001\001\022\204\001\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.g" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.google.cloud.c" + + "es.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\004\342A\001\001\022\177\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162P.g" + "oogle.cloud.ces.v1beta.EvaluationMetrics" - + "Thresholds.HallucinationMetricBehaviorB\004\342A\001\001\022\206\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google.cloud.ces.v1beta." - + "EvaluationMetricsThresholds.HallucinationMetricBehaviorB\004\342A\001\001\032\222\t\n" + + "Thresholds.HallucinationMetricBehaviorB\006\030\001\342A\001\001\022\204\001\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces.v1beta." + + "EvaluationMetricsThresholds.HallucinationMetricBehaviorB\004\342A\001\001\022\206\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google." + + "cloud.ces.v1beta.EvaluationMetricsThresh" + + "olds.HallucinationMetricBehaviorB\004\342A\001\001\032\222\t\n" + "!GoldenEvaluationMetricsThresholds\022\236\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.google.cloud.ces.v" - + "1beta.EvaluationMetricsThresholds.Golden" - + "EvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\004\342A\001\001\022\254\001\n" - + "$expectation_level_metrics_thresholds\030\002 \001(\0132x.google.clo" - + "ud.ces.v1beta.EvaluationMetricsThreshold" - + "s.GoldenEvaluationMetricsThresholds.ExpectationLevelMetricsThresholdsB\004\342A\001\001\022o\n" - + "\026tool_matching_settings\030\003 \001(\0132I.google.clo" - + "ud.ces.v1beta.EvaluationMetricsThresholds.ToolMatchingSettingsB\004\342A\001\001\032\215\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.g" + + "oogle.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresh" + + "olds.TurnLevelMetricsThresholdsB\004\342A\001\001\022\254\001\n" + + "$expectation_level_metrics_thresholds\030\002" + + " \001(\0132x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetri" + + "csThresholds.ExpectationLevelMetricsThresholdsB\004\342A\001\001\022o\n" + + "\026tool_matching_settings\030\003 \001(\0132I.google.cloud.ces.v1beta.Evaluatio" + + "nMetricsThresholds.ToolMatchingSettingsB\004\342A\001\001\032\215\004\n" + "\032TurnLevelMetricsThresholds\0228\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\004\342A\001\001H\000\210\001\001\022@\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\004\342A\001\001H\001\210\001\001\022\267\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\213\001.google.cloud.ce" - + "s.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.TurnLevel" - + "MetricsThresholds.SemanticSimilarityChannelB\004\342A\001\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\213" + + "\001.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" + + "esholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\004\342A\001\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -376,8 +421,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\004\342A\001\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\370\001\n" + "\024ToolMatchingSettings\022\207\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.cloud.ces.v1beta" - + ".EvaluationMetricsThresholds.ToolMatchingSettings.ExtraToolCallBehaviorB\004\342A\001\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162_.google" + + ".cloud.ces.v1beta.EvaluationMetricsThres" + + "holds.ToolMatchingSettings.ExtraToolCallBehaviorB\004\342A\001\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -387,20 +433,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\"\246\007\n" + "\022EvaluationSettings\022x\n" - + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cloud.ces.v1beta" - + ".EvaluationSettings.ScenarioConversationInitiatorB\004\342A\001\001\022I\n" - + "\021golden_run_method\030\004 \001" - + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022i\n" - + "%golden_evaluation_tool_call_behaviour\030\002" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022k\n" - + "\'scenario_evaluation_tool_call_behaviour\030\003" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022N\n" - + "\016metrics_config\030\005" - + " \001(\01320.google.cloud.ces.v1beta.EvaluationMetricsConfigB\004\342A\001\001\022h\n" - + "\027scenario_execution_mode\030\006 \001(\0162A.google.cloud.ces.v" - + "1beta.EvaluationSettings.ScenarioExecutionModeB\004\342A\001\001\022d\n" - + "\037evaluation_run_caching_settings\030\007" - + " \001(\01325.google.cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001\"e\n" + + "\037scenario_conversation_initiator\030\001 \001(\0162I.google" + + ".cloud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\004\342A\001\001\022I\n" + + "\021golden_run_method\030\004" + + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022i\n" + + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.goo" + + "gle.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022k\n" + + "\'scenario_evaluation_tool_call_behaviour\030\003 \001(\01624.google.cloud.c" + + "es.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\022N\n" + + "\016metrics_config\030\005 \001(\01320.google.clo" + + "ud.ces.v1beta.EvaluationMetricsConfigB\004\342A\001\001\022h\n" + + "\027scenario_execution_mode\030\006 \001(\0162A.g" + + "oogle.cloud.ces.v1beta.EvaluationSettings.ScenarioExecutionModeB\004\342A\001\001\022d\n" + + "\037evaluation_run_caching_settings\030\007 \001(\01325.google." + + "cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001\"e\n" + "\035ScenarioConversationInitiator\022/\n" + "+SCENARIO_CONVERSATION_INITIATOR_UNSPECIFIED\020\000\022\010\n" + "\004USER\020\001\022\t\n" @@ -432,13 +478,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB.\342A\001\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\276\002\n" + "\021DataStoreSettings\022H\n" - + "\007engines\030\003" - + " \003(\01321.google.cloud.ces.v1beta.DataStoreSettings.EngineB\004\342A\001\003\032\336\001\n" + + "\007engines\030\003 \003(\01321.google.cl" + + "oud.ces.v1beta.DataStoreSettings.EngineB\004\342A\001\003\032\336\001\n" + "\006Engine\022<\n" + "\004name\030\001 \001(\tB.\342A\001\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022J\n" - + "\004type\030\002 \001(\01626.go" - + "ogle.cloud.ces.v1beta.DataStoreSettings.Engine.TypeB\004\342A\001\003\"J\n" + + "\004type\030\002" + + " \001(\01626.google.cloud.ces.v1beta.DataStoreSettings.Engine.TypeB\004\342A\001\003\"J\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\026\n" + "\022ENGINE_TYPE_SEARCH\020\001\022\024\n" @@ -448,29 +494,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\002 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\003 \001(\tB\004\342A\001\002\022\031\n" + "\013personality\030\004 \001(\tB\004\342A\001\002\022T\n\r" - + "speech_config\030\005 \001(\013" - + "27.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\004\342A\001\001\032\246\002\n" + + "speech_config\030\005 \001(\01327.google.cloud.ces.v1b" + + "eta.EvaluationPersona.SpeechConfigB\004\342A\001\001\032\246\002\n" + "\014SpeechConfig\022\033\n\r" + "speaking_rate\030\001 \001(\001B\004\342A\001\001\022h\n" - + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1beta.Eva" - + "luationPersona.SpeechConfig.BackgroundEnvironmentB\004\342A\001\001\022\026\n" + + "\013environment\030\002 \001(\0162M.google.clo" + + "ud.ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\004\342A\001\001\022\026\n" + "\010voice_id\030\003 \001(\tB\004\342A\001\001\"w\n" + "\025BackgroundEnvironment\022&\n" + "\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\020\000\022\017\n" + "\013CALL_CENTER\020\003\022\013\n" + "\007TRAFFIC\020\004\022\016\n\n" + "KIDS_NOISE\020\005\022\010\n" - + "\004CAFE\020\006B\374\004\n" - + "\033com.google.cloud.ces.v1betaB\010AppPro" - + "toP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organization" - + "}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project}/l" - + "ocations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organ" - + "ization}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qproject" - + "s/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}/co" - + "llections/{collection}/engines/{engine}b\006proto3" + + "\004CAFE\020\006B\357\005\n" + + "\033com.google.cloud.c" + + "es.v1betaB\010AppProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizati" + + "ons/{organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kpro" + + "jects/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{organization}/locations/{loc" + + "ation}/deidentifyTemplates/{deidentify_template}\022Qprojects/{project}/locations/{" + + "location}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locati" + + "ons/{location}/collections/{collection}/engines/{engine}\352Ap\n" + + ".contactcenterinsights.googleapis.com/Dashboard\022>projects/{p" + + "roject}/locations/{location}/dashboards/{dashboard}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -522,6 +570,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationPersonas", "EvaluationSettings", "ValidationErrors", + "DashboardSettings", }); internal_static_google_cloud_ces_v1beta_App_VariableDeclaration_descriptor = internal_static_google_cloud_ces_v1beta_App_descriptor.getNestedType(0); @@ -539,8 +588,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor = + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor, + new java.lang.String[] { + "DefaultDashboard", + }); + internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_ces_v1beta_TimeZoneSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_TimeZoneSettings_descriptor, @@ -548,7 +605,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TimeZone", }); internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_LanguageSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_LanguageSettings_descriptor, @@ -558,13 +615,40 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableMultilingualSupport", "FallbackAction", }); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor, + new java.lang.String[] { + "Name", + "VoiceSampleGcsUri", + "ConsentAudioGcsUri", + "VoiceInstruction", + "PreviewAudioContent", + "PreviewText", + "Warnings", + "VoiceInstructionMode", + }); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor = + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor, + new java.lang.String[] { + "Message", "Type", + }); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor, new java.lang.String[] { - "SynthesizeSpeechConfigs", "BargeInConfig", "InactivityTimeout", "AmbientSoundConfig", + "SynthesizeSpeechConfigs", + "BargeInConfig", + "InactivityTimeout", + "AmbientSoundConfig", + "CustomVoiceSamples", }); internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_SynthesizeSpeechConfigsEntry_descriptor = internal_static_google_cloud_ces_v1beta_AudioProcessingConfig_descriptor.getNestedType(0); @@ -575,7 +659,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AmbientSoundConfig_descriptor, @@ -583,7 +667,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrebuiltAmbientNoise", "GcsUri", "PrebuiltAmbientSound", "VolumeGainDb", "Source", }); internal_static_google_cloud_ces_v1beta_BargeInConfig_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_ces_v1beta_BargeInConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BargeInConfig_descriptor, @@ -591,7 +675,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableBargeIn", "BargeInAwareness", }); internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SynthesizeSpeechConfig_descriptor, @@ -599,7 +683,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Voice", "VoiceSampleGcsUri", "SpeakingRate", "Model", "Instruction", }); internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_MetricAnalysisSettings_descriptor, @@ -607,7 +691,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LlmMetricsOptedOut", }); internal_static_google_cloud_ces_v1beta_LoggingSettings_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1beta_LoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_LoggingSettings_descriptor, @@ -621,9 +705,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationLoggingSettings", "EvaluationAudioRecordingConfig", "MetricAnalysisSettings", + "RequiredRecordingConsent", }); internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor, @@ -656,7 +741,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EscalateSession", }); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor, @@ -707,7 +792,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExtraToolCallBehavior", }); internal_static_google_cloud_ces_v1beta_EvaluationSettings_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1beta_EvaluationSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationSettings_descriptor, @@ -721,7 +806,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationRunCachingSettings", }); internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ClientCertificateSettings_descriptor, @@ -729,7 +814,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TlsCertificate", "PrivateKey", "Passphrase", }); internal_static_google_cloud_ces_v1beta_VpcScSettings_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1beta_VpcScSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_VpcScSettings_descriptor, @@ -737,7 +822,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AllowedOrigins", }); internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor, @@ -745,7 +830,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisableConversationLogging", "RetentionWindow", }); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor, @@ -753,7 +838,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableCloudLogging", }); internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AudioRecordingConfig_descriptor, @@ -761,7 +846,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "GcsPathPrefix", }); internal_static_google_cloud_ces_v1beta_RedactionConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_ces_v1beta_RedactionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RedactionConfig_descriptor, @@ -769,7 +854,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnableRedaction", "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_ces_v1beta_DataStoreSettings_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_ces_v1beta_DataStoreSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_DataStoreSettings_descriptor, @@ -785,7 +870,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Type", }); internal_static_google_cloud_ces_v1beta_EvaluationPersona_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_ces_v1beta_EvaluationPersona_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EvaluationPersona_descriptor, diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java index d71ca3ec99c3..3c07aa042fd1 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersion.java @@ -345,6 +345,58 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; } + public static final int UPDATE_TIME_FIELD_NUMBER = 9; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.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 the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.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 SNAPSHOT_FIELD_NUMBER = 8; private com.google.cloud.ces.v1beta.AppSnapshot snapshot_; @@ -363,7 +415,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { */ @java.lang.Override public boolean hasSnapshot() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -493,9 +545,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 7, etag_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(8, getSnapshot()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(9, getUpdateTime()); + } getUnknownFields().writeTo(output); } @@ -523,9 +578,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(7, etag_); } - if (((bitField0_ & 0x00000002) != 0)) { + if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getSnapshot()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getUpdateTime()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -549,6 +607,10 @@ public boolean equals(final java.lang.Object obj) { 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 (hasSnapshot() != other.hasSnapshot()) return false; if (hasSnapshot()) { if (!getSnapshot().equals(other.getSnapshot())) return false; @@ -577,6 +639,10 @@ public int hashCode() { 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 (hasSnapshot()) { hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; hash = (53 * hash) + getSnapshot().hashCode(); @@ -727,6 +793,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); internalGetSnapshotFieldBuilder(); } } @@ -744,6 +811,11 @@ public Builder clear() { createTimeBuilder_.dispose(); createTimeBuilder_ = null; } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } snapshot_ = null; if (snapshotBuilder_ != null) { snapshotBuilder_.dispose(); @@ -804,10 +876,14 @@ private void buildPartial0(com.google.cloud.ces.v1beta.AppVersion result) { to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000020) != 0)) { - result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000040) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -848,12 +924,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.AppVersion other) { if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } if (other.hasSnapshot()) { mergeSnapshot(other.getSnapshot()); } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); @@ -916,16 +995,23 @@ public Builder mergeFrom( case 58: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 66 + case 74: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1611,6 +1697,218 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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 the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Timestamp when the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.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 the app version was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + private com.google.cloud.ces.v1beta.AppSnapshot snapshot_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.ces.v1beta.AppSnapshot, @@ -1632,7 +1930,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the snapshot field is set. */ public boolean hasSnapshot() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1678,7 +1976,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { } else { snapshotBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1700,7 +1998,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot.Builder build } else { snapshotBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -1718,7 +2016,7 @@ public Builder setSnapshot(com.google.cloud.ces.v1beta.AppSnapshot.Builder build */ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { if (snapshotBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && snapshot_ != null && snapshot_ != com.google.cloud.ces.v1beta.AppSnapshot.getDefaultInstance()) { getSnapshotBuilder().mergeFrom(value); @@ -1729,7 +2027,7 @@ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { snapshotBuilder_.mergeFrom(value); } if (snapshot_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -1747,7 +2045,7 @@ public Builder mergeSnapshot(com.google.cloud.ces.v1beta.AppSnapshot value) { * */ public Builder clearSnapshot() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); snapshot_ = null; if (snapshotBuilder_ != null) { snapshotBuilder_.dispose(); @@ -1769,7 +2067,7 @@ public Builder clearSnapshot() { * */ public com.google.cloud.ces.v1beta.AppSnapshot.Builder getSnapshotBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetSnapshotFieldBuilder().getBuilder(); } @@ -1894,7 +2192,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -1914,7 +2212,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -1939,7 +2237,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java index ffce256470e1..75346e939f54 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionOrBuilder.java @@ -174,6 +174,46 @@ public interface AppVersionOrBuilder */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. Timestamp when the app version was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java index 91bf6752dc4a..e3678b41f0b5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppVersionProto.java @@ -76,22 +76,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "guardrails\030\005 \003(\0132\"." + "google.cloud.ces.v1beta.GuardrailB\004\342A\001\001\0228\n" + "\010toolsets\030\006 \003(\0132" - + " .google.cloud.ces.v1beta.ToolsetB\004\342A\001\001\"\374\002\n\n" + + " .google.cloud.ces.v1beta.ToolsetB\004\342A\001\001\"\263\003\n\n" + "AppVersion\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\001\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022\025\n" + "\007creator\030\004 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022<\n" - + "\010snapshot\030\010 " - + "\001(\0132$.google.cloud.ces.v1beta.AppSnapshotB\004\342A\001\003\022\022\n" + + "\010snapshot\030\010" + + " \001(\0132$.google.cloud.ces.v1beta.AppSnapshotB\004\342A\001\003\022\022\n" + "\004etag\030\007 \001(\tB\004\342A\001\003:\202\001\352A\177\n" - + "\035ces.googleapis.com/AppVersion\022Eprojects/{proj" - + "ect}/locations/{location}/apps/{app}/versions/{version}*\013appVersions2\n" + + "\035ces.googleapis.com/AppVersion\022Eprojects/{project}/locations/{location}" + + "/apps/{app}/versions/{version}*\013appVersions2\n" + "appVersionB_\n" - + "\033com.google.cloud.ces.v1betaB\017AppVersionProtoP\001Z-cloud.google.com/go/ces/apiv" - + "1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017AppVersionProtoP\001Z-cloud.google." + + "com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -121,7 +123,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_AppVersion_descriptor, new java.lang.String[] { - "Name", "DisplayName", "Description", "Creator", "CreateTime", "Snapshot", "Etag", + "Name", + "DisplayName", + "Description", + "Creator", + "CreateTime", + "UpdateTime", + "Snapshot", + "Etag", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java new file mode 100644 index 000000000000..434b4e45a9b0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunk.java @@ -0,0 +1,1768 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A streamed fragment of a document artifact (e.g. a markdown TDD) that the
+ * assistant is generating. Content deltas stream while the document is being
+ * written so clients can render a live preview; the FINALIZED chunk carries
+ * the GCS URI once the file has been persisted.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ArtifactChunk} + */ +@com.google.protobuf.Generated +public final class ArtifactChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ArtifactChunk) + ArtifactChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ArtifactChunk"); + } + + // Use ArtifactChunk.newBuilder() to construct. + private ArtifactChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ArtifactChunk() { + artifactId_ = ""; + displayName_ = ""; + mimeType_ = ""; + contentDelta_ = ""; + gcsUri_ = ""; + state_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ArtifactChunk.class, + com.google.cloud.ces.v1beta.ArtifactChunk.Builder.class); + } + + /** + * + * + *
+   * Lifecycle position of this chunk within the artifact's stream.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ArtifactChunk.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unused default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
+     * The assistant started generating the artifact.
+     * 
+ * + * STARTED = 1; + */ + STARTED(1), + /** + * + * + *
+     * A content increment; content_delta is set.
+     * 
+ * + * DELTA = 2; + */ + DELTA(2), + /** + * + * + *
+     * The artifact was persisted; gcs_uri is set.
+     * 
+ * + * FINALIZED = 3; + */ + FINALIZED(3), + /** + * + * + *
+     * Generation or persistence failed; the artifact was not saved.
+     * 
+ * + * FAILED = 4; + */ + FAILED(4), + /** + * + * + *
+     * The document finished streaming: its content was fully delivered via
+     * content_delta chunks. Persistence may still follow; a FINALIZED chunk
+     * with a gcs_uri is sent if and when the artifact is saved.
+     * 
+ * + * CLOSED = 5; + */ + CLOSED(5), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
+     * Unused default.
+     * 
+ * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The assistant started generating the artifact.
+     * 
+ * + * STARTED = 1; + */ + public static final int STARTED_VALUE = 1; + + /** + * + * + *
+     * A content increment; content_delta is set.
+     * 
+ * + * DELTA = 2; + */ + public static final int DELTA_VALUE = 2; + + /** + * + * + *
+     * The artifact was persisted; gcs_uri is set.
+     * 
+ * + * FINALIZED = 3; + */ + public static final int FINALIZED_VALUE = 3; + + /** + * + * + *
+     * Generation or persistence failed; the artifact was not saved.
+     * 
+ * + * FAILED = 4; + */ + public static final int FAILED_VALUE = 4; + + /** + * + * + *
+     * The document finished streaming: its content was fully delivered via
+     * content_delta chunks. Persistence may still follow; a FINALIZED chunk
+     * with a gcs_uri is sent if and when the artifact is saved.
+     * 
+ * + * CLOSED = 5; + */ + public static final int CLOSED_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 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 STARTED; + case 2: + return DELTA; + case 3: + return FINALIZED; + case 4: + return FAILED; + case 5: + return CLOSED; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ArtifactChunk.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.ces.v1beta.ArtifactChunk.State) + } + + public static final int ARTIFACT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object artifactId_ = ""; + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + @java.lang.Override + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = 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 file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * 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 MIME_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_DELTA_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object contentDelta_ = ""; + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + @java.lang.Override + public java.lang.String getContentDelta() { + java.lang.Object ref = contentDelta_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentDelta_ = s; + return s; + } + } + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContentDeltaBytes() { + java.lang.Object ref = contentDelta_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentDelta_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GCS_URI_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk.State getState() { + com.google.cloud.ces.v1beta.ArtifactChunk.State result = + com.google.cloud.ces.v1beta.ArtifactChunk.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.ArtifactChunk.State.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.GeneratedMessage.isStringEmpty(artifactId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, artifactId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentDelta_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, contentDelta_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, gcsUri_); + } + if (state_ != com.google.cloud.ces.v1beta.ArtifactChunk.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(6, state_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(artifactId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, artifactId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, mimeType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contentDelta_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, contentDelta_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, gcsUri_); + } + if (state_ != com.google.cloud.ces.v1beta.ArtifactChunk.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + 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.ces.v1beta.ArtifactChunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ArtifactChunk other = + (com.google.cloud.ces.v1beta.ArtifactChunk) obj; + + if (!getArtifactId().equals(other.getArtifactId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (!getContentDelta().equals(other.getContentDelta())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (state_ != other.state_) 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) + ARTIFACT_ID_FIELD_NUMBER; + hash = (53 * hash) + getArtifactId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + hash = (37 * hash) + CONTENT_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getContentDelta().hashCode(); + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk 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.ces.v1beta.ArtifactChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + 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.ces.v1beta.ArtifactChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ArtifactChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A streamed fragment of a document artifact (e.g. a markdown TDD) that the
+   * assistant is generating. Content deltas stream while the document is being
+   * written so clients can render a live preview; the FINALIZED chunk carries
+   * the GCS URI once the file has been persisted.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ArtifactChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ArtifactChunk) + com.google.cloud.ces.v1beta.ArtifactChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ArtifactChunk.class, + com.google.cloud.ces.v1beta.ArtifactChunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ArtifactChunk.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + artifactId_ = ""; + displayName_ = ""; + mimeType_ = ""; + contentDelta_ = ""; + gcsUri_ = ""; + state_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_ArtifactChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ArtifactChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk build() { + com.google.cloud.ces.v1beta.ArtifactChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk buildPartial() { + com.google.cloud.ces.v1beta.ArtifactChunk result = + new com.google.cloud.ces.v1beta.ArtifactChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ArtifactChunk result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.artifactId_ = artifactId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.mimeType_ = mimeType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.contentDelta_ = contentDelta_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ArtifactChunk) { + return mergeFrom((com.google.cloud.ces.v1beta.ArtifactChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ArtifactChunk other) { + if (other == com.google.cloud.ces.v1beta.ArtifactChunk.getDefaultInstance()) return this; + if (!other.getArtifactId().isEmpty()) { + artifactId_ = other.artifactId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getContentDelta().isEmpty()) { + contentDelta_ = other.contentDelta_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + 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: + { + artifactId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + contentDelta_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = 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 artifactId_ = ""; + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + public java.lang.String getArtifactId() { + java.lang.Object ref = artifactId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + artifactId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + public com.google.protobuf.ByteString getArtifactIdBytes() { + java.lang.Object ref = artifactId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + artifactId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @param value The artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + artifactId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearArtifactId() { + artifactId_ = getDefaultInstance().getArtifactId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier of the artifact, stable across all chunks of one artifact
+     * within the stream.
+     * 
+ * + * string artifact_id = 1; + * + * @param value The bytes for artifactId to set. + * @return This builder for chaining. + */ + public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + artifactId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * 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 file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+     * STARTED (and repeated on FINALIZED).
+     * 
+ * + * 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_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The IANA media type of the artifact content, e.g. "text/markdown".
+     * 
+ * + * string mime_type = 3; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object contentDelta_ = ""; + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + public java.lang.String getContentDelta() { + java.lang.Object ref = contentDelta_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contentDelta_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + public com.google.protobuf.ByteString getContentDeltaBytes() { + java.lang.Object ref = contentDelta_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contentDelta_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @param value The contentDelta to set. + * @return This builder for chaining. + */ + public Builder setContentDelta(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contentDelta_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @return This builder for chaining. + */ + public Builder clearContentDelta() { + contentDelta_ = getDefaultInstance().getContentDelta(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Incremental artifact content. Set on DELTA chunks.
+     * 
+ * + * string content_delta = 4; + * + * @param value The bytes for contentDelta to set. + * @return This builder for chaining. + */ + public Builder setContentDeltaBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contentDelta_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+     * 
+ * + * string gcs_uri = 5; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @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; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ArtifactChunk.State getState() { + com.google.cloud.ces.v1beta.ArtifactChunk.State result = + com.google.cloud.ces.v1beta.ArtifactChunk.State.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.ArtifactChunk.State.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.ces.v1beta.ArtifactChunk.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Lifecycle position of this chunk.
+     * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ArtifactChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ArtifactChunk) + private static final com.google.cloud.ces.v1beta.ArtifactChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ArtifactChunk(); + } + + public static com.google.cloud.ces.v1beta.ArtifactChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArtifactChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ArtifactChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java new file mode 100644 index 000000000000..e0a3de5e549c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ArtifactChunkOrBuilder.java @@ -0,0 +1,188 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ArtifactChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ArtifactChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The artifactId. + */ + java.lang.String getArtifactId(); + + /** + * + * + *
+   * Identifier of the artifact, stable across all chunks of one artifact
+   * within the stream.
+   * 
+ * + * string artifact_id = 1; + * + * @return The bytes for artifactId. + */ + com.google.protobuf.ByteString getArtifactIdBytes(); + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * The file name shown to the user, e.g. "hotel_booking_tdd.md". Set on
+   * STARTED (and repeated on FINALIZED).
+   * 
+ * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * The IANA media type of the artifact content, e.g. "text/markdown".
+   * 
+ * + * string mime_type = 3; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The contentDelta. + */ + java.lang.String getContentDelta(); + + /** + * + * + *
+   * Incremental artifact content. Set on DELTA chunks.
+   * 
+ * + * string content_delta = 4; + * + * @return The bytes for contentDelta. + */ + com.google.protobuf.ByteString getContentDeltaBytes(); + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * The GCS object the artifact was persisted to. Set on FINALIZED chunks.
+   * 
+ * + * string gcs_uri = 5; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Lifecycle position of this chunk.
+   * 
+ * + * .google.cloud.ces.v1beta.ArtifactChunk.State state = 6; + * + * @return The state. + */ + com.google.cloud.ces.v1beta.ArtifactChunk.State getState(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java new file mode 100644 index 000000000000..504903b8d6dc --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunk.java @@ -0,0 +1,1916 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A chunk of data in an assistant message.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantChunk} + */ +@com.google.protobuf.Generated +public final class AssistantChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantChunk) + AssistantChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantChunk"); + } + + // Use AssistantChunk.newBuilder() to construct. + private AssistantChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantChunk() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantChunk.class, + com.google.cloud.ces.v1beta.AssistantChunk.Builder.class); + } + + private int bitField0_; + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + THOUGHT(2), + PAYLOAD(3), + TYPED_PAYLOAD(4), + DATA_NOT_SET(0); + private final int value; + + private DataCase(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 DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return THOUGHT; + case 3: + return PAYLOAD; + case 4: + return TYPED_PAYLOAD; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.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 (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int THOUGHT_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + public boolean hasThought() { + return dataCase_ == 2; + } + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + public java.lang.String getThought() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.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 (dataCase_ == 2) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAYLOAD_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 3; + } + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + + public static final int TYPED_PAYLOAD_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + @java.lang.Override + public boolean hasTypedPayload() { + return dataCase_ == 4; + } + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayload getTypedPayload() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder() { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @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 (dataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, data_); + } + if (dataCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, data_); + } + if (dataCase_ == 3) { + output.writeMessage(3, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 4) { + output.writeMessage(4, (com.google.cloud.ces.v1beta.TypedPayload) data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_); + } + if (dataCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, data_); + } + if (dataCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.protobuf.Struct) data_); + } + if (dataCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.cloud.ces.v1beta.TypedPayload) data_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, 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.ces.v1beta.AssistantChunk)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantChunk other = + (com.google.cloud.ces.v1beta.AssistantChunk) obj; + + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getThought().equals(other.getThought())) return false; + break; + case 3: + if (!getPayload().equals(other.getPayload())) return false; + break; + case 4: + if (!getTypedPayload().equals(other.getTypedPayload())) 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 (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + THOUGHT_FIELD_NUMBER; + hash = (53 * hash) + getThought().hashCode(); + break; + case 3: + hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getPayload().hashCode(); + break; + case 4: + hash = (37 * hash) + TYPED_PAYLOAD_FIELD_NUMBER; + hash = (53 * hash) + getTypedPayload().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk 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.ces.v1beta.AssistantChunk parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + 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.ces.v1beta.AssistantChunk parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantChunk prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A chunk of data in an assistant message.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantChunk} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantChunk) + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantChunk.class, + com.google.cloud.ces.v1beta.AssistantChunk.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantChunk.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (payloadBuilder_ != null) { + payloadBuilder_.clear(); + } + if (typedPayloadBuilder_ != null) { + typedPayloadBuilder_.clear(); + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + dataCase_ = 0; + data_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk build() { + com.google.cloud.ces.v1beta.AssistantChunk result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk buildPartial() { + com.google.cloud.ces.v1beta.AssistantChunk result = + new com.google.cloud.ces.v1beta.AssistantChunk(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantChunk result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.AssistantChunk result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 3 && payloadBuilder_ != null) { + result.data_ = payloadBuilder_.build(); + } + if (dataCase_ == 4 && typedPayloadBuilder_ != null) { + result.data_ = typedPayloadBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantChunk) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantChunk) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantChunk other) { + if (other == com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()) return this; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case THOUGHT: + { + dataCase_ = 2; + data_ = other.data_; + onChanged(); + break; + } + case PAYLOAD: + { + mergePayload(other.getPayload()); + break; + } + case TYPED_PAYLOAD: + { + mergeTypedPayload(other.getTypedPayload()); + break; + } + case DATA_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(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 2; + data_ = s; + break; + } // case 18 + case 26: + { + input.readMessage(internalGetPayloadFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetTypedPayloadFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().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 dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Text data.
+     * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + @java.lang.Override + public boolean hasThought() { + return dataCase_ == 2; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + @java.lang.Override + public java.lang.String getThought() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 2) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + @java.lang.Override + public com.google.protobuf.ByteString getThoughtBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 2) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 2) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The thought to set. + * @return This builder for chaining. + */ + public Builder setThought(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearThought() { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Thought generated by the model.
+     * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for thought to set. + * @return This builder for chaining. + */ + public Builder setThoughtBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 2; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + payloadBuilder_; + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + @java.lang.Override + public boolean hasPayload() { + return dataCase_ == 3; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + @java.lang.Override + public com.google.protobuf.Struct getPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } else { + if (dataCase_ == 3) { + return payloadBuilder_.getMessage(); + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + payloadBuilder_.setMessage(value); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setPayload(com.google.protobuf.Struct.Builder builderForValue) { + if (payloadBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + payloadBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergePayload(com.google.protobuf.Struct value) { + if (payloadBuilder_ == null) { + if (dataCase_ == 3 && data_ != com.google.protobuf.Struct.getDefaultInstance()) { + data_ = + com.google.protobuf.Struct.newBuilder((com.google.protobuf.Struct) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 3) { + payloadBuilder_.mergeFrom(value); + } else { + payloadBuilder_.setMessage(value); + } + } + dataCase_ = 3; + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearPayload() { + if (payloadBuilder_ == null) { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 3) { + dataCase_ = 0; + data_ = null; + } + payloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getPayloadBuilder() { + return internalGetPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getPayloadOrBuilder() { + if ((dataCase_ == 3) && (payloadBuilder_ != null)) { + return payloadBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 3) { + return (com.google.protobuf.Struct) data_; + } + return com.google.protobuf.Struct.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Payload which contains structured responses like the quality
+     * report, agent version name, suggested responses etc.
+     * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetPayloadFieldBuilder() { + if (payloadBuilder_ == null) { + if (!(dataCase_ == 3)) { + data_ = com.google.protobuf.Struct.getDefaultInstance(); + } + payloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + (com.google.protobuf.Struct) data_, getParentForChildren(), isClean()); + data_ = null; + } + dataCase_ = 3; + onChanged(); + return payloadBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder> + typedPayloadBuilder_; + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + @java.lang.Override + public boolean hasTypedPayload() { + return dataCase_ == 4; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayload getTypedPayload() { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } else { + if (dataCase_ == 4) { + return typedPayloadBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTypedPayload(com.google.cloud.ces.v1beta.TypedPayload value) { + if (typedPayloadBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + typedPayloadBuilder_.setMessage(value); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTypedPayload( + com.google.cloud.ces.v1beta.TypedPayload.Builder builderForValue) { + if (typedPayloadBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + typedPayloadBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeTypedPayload(com.google.cloud.ces.v1beta.TypedPayload value) { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4 + && data_ != com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance()) { + data_ = + com.google.cloud.ces.v1beta.TypedPayload.newBuilder( + (com.google.cloud.ces.v1beta.TypedPayload) data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 4) { + typedPayloadBuilder_.mergeFrom(value); + } else { + typedPayloadBuilder_.setMessage(value); + } + } + dataCase_ = 4; + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTypedPayload() { + if (typedPayloadBuilder_ == null) { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 4) { + dataCase_ = 0; + data_ = null; + } + typedPayloadBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.TypedPayload.Builder getTypedPayloadBuilder() { + return internalGetTypedPayloadFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder() { + if ((dataCase_ == 4) && (typedPayloadBuilder_ != null)) { + return typedPayloadBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 4) { + return (com.google.cloud.ces.v1beta.TypedPayload) data_; + } + return com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Typed payload which contains structured responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder> + internalGetTypedPayloadFieldBuilder() { + if (typedPayloadBuilder_ == null) { + if (!(dataCase_ == 4)) { + data_ = com.google.cloud.ces.v1beta.TypedPayload.getDefaultInstance(); + } + typedPayloadBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.TypedPayload, + com.google.cloud.ces.v1beta.TypedPayload.Builder, + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder>( + (com.google.cloud.ces.v1beta.TypedPayload) data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 4; + onChanged(); + return typedPayloadBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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(); + } + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Optional. Timestamp when the chunk was created or emitted.
+     * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantChunk) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantChunk) + private static final com.google.cloud.ces.v1beta.AssistantChunk DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantChunk(); + } + + public static com.google.cloud.ces.v1beta.AssistantChunk getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantChunk parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantChunk getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java new file mode 100644 index 000000000000..7187bfeed24d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantChunkOrBuilder.java @@ -0,0 +1,231 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantChunkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantChunk) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
+   * Optional. Text data.
+   * 
+ * + * string text = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the thought field is set. + */ + boolean hasThought(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The thought. + */ + java.lang.String getThought(); + + /** + * + * + *
+   * Optional. Thought generated by the model.
+   * 
+ * + * string thought = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for thought. + */ + com.google.protobuf.ByteString getThoughtBytes(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the payload field is set. + */ + boolean hasPayload(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The payload. + */ + com.google.protobuf.Struct getPayload(); + + /** + * + * + *
+   * Optional. Payload which contains structured responses like the quality
+   * report, agent version name, suggested responses etc.
+   * 
+ * + * .google.protobuf.Struct payload = 3 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getPayloadOrBuilder(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the typedPayload field is set. + */ + boolean hasTypedPayload(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The typedPayload. + */ + com.google.cloud.ces.v1beta.TypedPayload getTypedPayload(); + + /** + * + * + *
+   * Optional. Typed payload which contains structured responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.TypedPayload typed_payload = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.TypedPayloadOrBuilder getTypedPayloadOrBuilder(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Optional. Timestamp when the chunk was created or emitted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + com.google.cloud.ces.v1beta.AssistantChunk.DataCase getDataCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java new file mode 100644 index 000000000000..f8f3275cff6c --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequest.java @@ -0,0 +1,2514 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A blocking question or confirmation the assistant needs answered before an
+ * agent action can proceed. The requesting agent is paused and resumes only
+ * when the answer arrives on a later
+ * [StreamChatAiAssistantRequest.confirmation_response][google.cloud.ces.v1beta.StreamChatAiAssistantRequest.confirmation_response].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationRequest} + */ +@com.google.protobuf.Generated +public final class AssistantConfirmationRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantConfirmationRequest) + AssistantConfirmationRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantConfirmationRequest"); + } + + // Use AssistantConfirmationRequest.newBuilder() to construct. + private AssistantConfirmationRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantConfirmationRequest() { + confirmationId_ = ""; + context_ = ""; + positiveLabel_ = ""; + negativeLabel_ = ""; + questions_ = java.util.Collections.emptyList(); + tool_ = ""; + agentName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.class, + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.Builder.class); + } + + private int bitField0_; + public static final int CONFIRMATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + @java.lang.Override + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTEXT_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object context_ = ""; + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The context. + */ + @java.lang.Override + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } + } + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int POSITIVE_LABEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object positiveLabel_ = ""; + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + @java.lang.Override + public java.lang.String getPositiveLabel() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + positiveLabel_ = s; + return s; + } + } + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPositiveLabelBytes() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + positiveLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NEGATIVE_LABEL_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object negativeLabel_ = ""; + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + @java.lang.Override + public java.lang.String getNegativeLabel() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negativeLabel_ = s; + return s; + } + } + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNegativeLabelBytes() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negativeLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int QUESTIONS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List questions_; + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public java.util.List + getQuestionsList() { + return questions_; + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + getQuestionsOrBuilderList() { + return questions_; + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public int getQuestionsCount() { + return questions_.size(); + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index) { + return questions_.get(index); + } + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index) { + return questions_.get(index); + } + + public static final int TOOL_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The tool. + */ + @java.lang.Override + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } + } + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The bytes for tool. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_NAME_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentName_ = ""; + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + @java.lang.Override + public java.lang.String getAgentName() { + java.lang.Object ref = agentName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentName_ = s; + return s; + } + } + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentNameBytes() { + java.lang.Object ref = agentName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp expireTime_; + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(confirmationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, confirmationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, context_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(positiveLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, positiveLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(negativeLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, negativeLabel_); + } + for (int i = 0; i < questions_.size(); i++) { + output.writeMessage(5, questions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, agentName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(8, getExpireTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(confirmationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, confirmationId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(context_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, context_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(positiveLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, positiveLabel_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(negativeLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, negativeLabel_); + } + for (int i = 0; i < questions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, questions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, tool_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, agentName_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getExpireTime()); + } + 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.ces.v1beta.AssistantConfirmationRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantConfirmationRequest other = + (com.google.cloud.ces.v1beta.AssistantConfirmationRequest) obj; + + if (!getConfirmationId().equals(other.getConfirmationId())) return false; + if (!getContext().equals(other.getContext())) return false; + if (!getPositiveLabel().equals(other.getPositiveLabel())) return false; + if (!getNegativeLabel().equals(other.getNegativeLabel())) return false; + if (!getQuestionsList().equals(other.getQuestionsList())) return false; + if (!getTool().equals(other.getTool())) return false; + if (!getAgentName().equals(other.getAgentName())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) 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) + CONFIRMATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationId().hashCode(); + hash = (37 * hash) + CONTEXT_FIELD_NUMBER; + hash = (53 * hash) + getContext().hashCode(); + hash = (37 * hash) + POSITIVE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getPositiveLabel().hashCode(); + hash = (37 * hash) + NEGATIVE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getNegativeLabel().hashCode(); + if (getQuestionsCount() > 0) { + hash = (37 * hash) + QUESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getQuestionsList().hashCode(); + } + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + hash = (37 * hash) + AGENT_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAgentName().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest 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.ces.v1beta.AssistantConfirmationRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + 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.ces.v1beta.AssistantConfirmationRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantConfirmationRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A blocking question or confirmation the assistant needs answered before an
+   * agent action can proceed. The requesting agent is paused and resumes only
+   * when the answer arrives on a later
+   * [StreamChatAiAssistantRequest.confirmation_response][google.cloud.ces.v1beta.StreamChatAiAssistantRequest.confirmation_response].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantConfirmationRequest) + com.google.cloud.ces.v1beta.AssistantConfirmationRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.class, + com.google.cloud.ces.v1beta.AssistantConfirmationRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantConfirmationRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetQuestionsFieldBuilder(); + internalGetExpireTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + confirmationId_ = ""; + context_ = ""; + positiveLabel_ = ""; + negativeLabel_ = ""; + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + } else { + questions_ = null; + questionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + tool_ = ""; + agentName_ = ""; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantConfirmationRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest build() { + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationRequest buildPartial() { + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result = + new com.google.cloud.ces.v1beta.AssistantConfirmationRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.AssistantConfirmationRequest result) { + if (questionsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + questions_ = java.util.Collections.unmodifiableList(questions_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.questions_ = questions_; + } else { + result.questions_ = questionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantConfirmationRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.confirmationId_ = confirmationId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.context_ = context_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.positiveLabel_ = positiveLabel_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.negativeLabel_ = negativeLabel_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.tool_ = tool_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentName_ = agentName_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000080) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantConfirmationRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantConfirmationRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantConfirmationRequest other) { + if (other == com.google.cloud.ces.v1beta.AssistantConfirmationRequest.getDefaultInstance()) + return this; + if (!other.getConfirmationId().isEmpty()) { + confirmationId_ = other.confirmationId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getContext().isEmpty()) { + context_ = other.context_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getPositiveLabel().isEmpty()) { + positiveLabel_ = other.positiveLabel_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getNegativeLabel().isEmpty()) { + negativeLabel_ = other.negativeLabel_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (questionsBuilder_ == null) { + if (!other.questions_.isEmpty()) { + if (questions_.isEmpty()) { + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureQuestionsIsMutable(); + questions_.addAll(other.questions_); + } + onChanged(); + } + } else { + if (!other.questions_.isEmpty()) { + if (questionsBuilder_.isEmpty()) { + questionsBuilder_.dispose(); + questionsBuilder_ = null; + questions_ = other.questions_; + bitField0_ = (bitField0_ & ~0x00000010); + questionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetQuestionsFieldBuilder() + : null; + } else { + questionsBuilder_.addAllMessages(other.questions_); + } + } + } + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (!other.getAgentName().isEmpty()) { + agentName_ = other.agentName_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + 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: + { + confirmationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + context_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + positiveLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + negativeLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question m = + input.readMessage( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.parser(), + extensionRegistry); + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(m); + } else { + questionsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + agentName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + 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 confirmationId_ = ""; + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + confirmationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearConfirmationId() { + confirmationId_ = getDefaultInstance().getConfirmationId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier correlating this request with its response. Opaque to
+     * clients; must be echoed verbatim on the answering request.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The bytes for confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + confirmationId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object context_ = ""; + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return The context. + */ + public java.lang.String getContext() { + java.lang.Object ref = context_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + context_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + public com.google.protobuf.ByteString getContextBytes() { + java.lang.Object ref = context_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + context_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @param value The context to set. + * @return This builder for chaining. + */ + public Builder setContext(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + context_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @return This builder for chaining. + */ + public Builder clearContext() { + context_ = getDefaultInstance().getContext(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Context describing what is being confirmed (e.g. the action the agent
+     * wants to take, or the question it needs answered). Rendered as plain
+     * text, not Markdown.
+     * 
+ * + * string context = 2; + * + * @param value The bytes for context to set. + * @return This builder for chaining. + */ + public Builder setContextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + context_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object positiveLabel_ = ""; + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + public java.lang.String getPositiveLabel() { + java.lang.Object ref = positiveLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + positiveLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + public com.google.protobuf.ByteString getPositiveLabelBytes() { + java.lang.Object ref = positiveLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + positiveLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @param value The positiveLabel to set. + * @return This builder for chaining. + */ + public Builder setPositiveLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + positiveLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @return This builder for chaining. + */ + public Builder clearPositiveLabel() { + positiveLabel_ = getDefaultInstance().getPositiveLabel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the approving action of a binary confirmation (e.g. "Publish").
+     * Unset when `questions` is populated.
+     * 
+ * + * string positive_label = 3; + * + * @param value The bytes for positiveLabel to set. + * @return This builder for chaining. + */ + public Builder setPositiveLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + positiveLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object negativeLabel_ = ""; + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + public java.lang.String getNegativeLabel() { + java.lang.Object ref = negativeLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + negativeLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + public com.google.protobuf.ByteString getNegativeLabelBytes() { + java.lang.Object ref = negativeLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + negativeLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @param value The negativeLabel to set. + * @return This builder for chaining. + */ + public Builder setNegativeLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + negativeLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @return This builder for chaining. + */ + public Builder clearNegativeLabel() { + negativeLabel_ = getDefaultInstance().getNegativeLabel(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Label for the declining action of a binary confirmation (e.g. "Not yet").
+     * Unset when `questions` is populated.
+     * 
+ * + * string negative_label = 4; + * + * @param value The bytes for negativeLabel to set. + * @return This builder for chaining. + */ + public Builder setNegativeLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + negativeLabel_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List questions_ = + java.util.Collections.emptyList(); + + private void ensureQuestionsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + questions_ = + new java.util.ArrayList( + questions_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + questionsBuilder_; + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List + getQuestionsList() { + if (questionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(questions_); + } else { + return questionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public int getQuestionsCount() { + if (questionsBuilder_ == null) { + return questions_.size(); + } else { + return questionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder setQuestions( + int index, com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.set(index, value); + onChanged(); + } else { + questionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder setQuestions( + int index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.set(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(value); + onChanged(); + } else { + questionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + int index, com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question value) { + if (questionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureQuestionsIsMutable(); + questions_.add(index, value); + onChanged(); + } else { + questionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addQuestions( + int index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder builderForValue) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.add(index, builderForValue.build()); + onChanged(); + } else { + questionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder addAllQuestions( + java.lang.Iterable + values) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, questions_); + onChanged(); + } else { + questionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder clearQuestions() { + if (questionsBuilder_ == null) { + questions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + questionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public Builder removeQuestions(int index) { + if (questionsBuilder_ == null) { + ensureQuestionsIsMutable(); + questions_.remove(index); + onChanged(); + } else { + questionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder getQuestionsBuilder( + int index) { + return internalGetQuestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index) { + if (questionsBuilder_ == null) { + return questions_.get(index); + } else { + return questionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List< + ? extends com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + getQuestionsOrBuilderList() { + if (questionsBuilder_ != null) { + return questionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(questions_); + } + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder addQuestionsBuilder() { + return internalGetQuestionsFieldBuilder() + .addBuilder( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.getDefaultInstance()); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder addQuestionsBuilder( + int index) { + return internalGetQuestionsFieldBuilder() + .addBuilder( + index, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.getDefaultInstance()); + } + + /** + * + * + *
+     * Multi-choice form of the confirmation. When populated, the card renders
+     * a selectable option list and the chosen option's submit_text (or
+     * free-form user text) is returned as
+     * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+     * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + public java.util.List + getQuestionsBuilderList() { + return internalGetQuestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder> + internalGetQuestionsFieldBuilder() { + if (questionsBuilder_ == null) { + questionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question.Builder, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder>( + questions_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + questions_ = null; + } + return questionsBuilder_; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @return The tool. + */ + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @return The bytes for tool. + */ + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @param value The tool to set. + * @return This builder for chaining. + */ + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @return This builder for chaining. + */ + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Name of the tool call the agent paused on (e.g. "update_app"), for the
+     * card header. Unset for pure questions.
+     * 
+ * + * string tool = 6; + * + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.lang.Object agentName_ = ""; + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + public java.lang.String getAgentName() { + java.lang.Object ref = agentName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + public com.google.protobuf.ByteString getAgentNameBytes() { + java.lang.Object ref = agentName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @param value The agentName to set. + * @return This builder for chaining. + */ + public Builder setAgentName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @return This builder for chaining. + */ + public Builder clearAgentName() { + agentName_ = getDefaultInstance().getAgentName(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
+     * Display label of the agent that raised the confirmation (e.g.
+     * `"Contract Architect"`), for the card header.
+     * 
+ * + * string agent_name = 7; + * + * @param value The bytes for agentName to set. + * @return This builder for chaining. + */ + public Builder setAgentNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentName_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + if (expireTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000080); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetExpireTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + + /** + * + * + *
+     * Time after which this confirmation can no longer be answered. An expired
+     * card renders as inactive, and the server declines the confirmation on the
+     * next turn so the paused agent does not wait indefinitely.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantConfirmationRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantConfirmationRequest) + private static final com.google.cloud.ces.v1beta.AssistantConfirmationRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantConfirmationRequest(); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantConfirmationRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantConfirmationRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java new file mode 100644 index 000000000000..229c2e16dd91 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationRequestOrBuilder.java @@ -0,0 +1,313 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantConfirmationRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantConfirmationRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + java.lang.String getConfirmationId(); + + /** + * + * + *
+   * Identifier correlating this request with its response. Opaque to
+   * clients; must be echoed verbatim on the answering request.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + com.google.protobuf.ByteString getConfirmationIdBytes(); + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The context. + */ + java.lang.String getContext(); + + /** + * + * + *
+   * Context describing what is being confirmed (e.g. the action the agent
+   * wants to take, or the question it needs answered). Rendered as plain
+   * text, not Markdown.
+   * 
+ * + * string context = 2; + * + * @return The bytes for context. + */ + com.google.protobuf.ByteString getContextBytes(); + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The positiveLabel. + */ + java.lang.String getPositiveLabel(); + + /** + * + * + *
+   * Label for the approving action of a binary confirmation (e.g. "Publish").
+   * Unset when `questions` is populated.
+   * 
+ * + * string positive_label = 3; + * + * @return The bytes for positiveLabel. + */ + com.google.protobuf.ByteString getPositiveLabelBytes(); + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The negativeLabel. + */ + java.lang.String getNegativeLabel(); + + /** + * + * + *
+   * Label for the declining action of a binary confirmation (e.g. "Not yet").
+   * Unset when `questions` is populated.
+   * 
+ * + * string negative_label = 4; + * + * @return The bytes for negativeLabel. + */ + com.google.protobuf.ByteString getNegativeLabelBytes(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + java.util.List getQuestionsList(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Question getQuestions(int index); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + int getQuestionsCount(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + java.util.List + getQuestionsOrBuilderList(); + + /** + * + * + *
+   * Multi-choice form of the confirmation. When populated, the card renders
+   * a selectable option list and the chosen option's submit_text (or
+   * free-form user text) is returned as
+   * [AssistantConfirmationResponse.answer_text][google.cloud.ces.v1beta.AssistantConfirmationResponse.answer_text].
+   * 
+ * + * repeated .google.cloud.ces.v1beta.OptionQuestionsChunk.Question questions = 5; + */ + com.google.cloud.ces.v1beta.OptionQuestionsChunk.QuestionOrBuilder getQuestionsOrBuilder( + int index); + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The tool. + */ + java.lang.String getTool(); + + /** + * + * + *
+   * Name of the tool call the agent paused on (e.g. "update_app"), for the
+   * card header. Unset for pure questions.
+   * 
+ * + * string tool = 6; + * + * @return The bytes for tool. + */ + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The agentName. + */ + java.lang.String getAgentName(); + + /** + * + * + *
+   * Display label of the agent that raised the confirmation (e.g.
+   * `"Contract Architect"`), for the card header.
+   * 
+ * + * string agent_name = 7; + * + * @return The bytes for agentName. + */ + com.google.protobuf.ByteString getAgentNameBytes(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + + /** + * + * + *
+   * Time after which this confirmation can no longer be answered. An expired
+   * card renders as inactive, and the server declines the confirmation on the
+   * next turn so the paused agent does not wait indefinitely.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 8; + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java new file mode 100644 index 000000000000..c5d440a6a812 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponse.java @@ -0,0 +1,1091 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The user's answer to an
+ * [AssistantConfirmationRequest][google.cloud.ces.v1beta.AssistantConfirmationRequest],
+ * sent on the next
+ * [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant]
+ * call to resume the paused agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationResponse} + */ +@com.google.protobuf.Generated +public final class AssistantConfirmationResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantConfirmationResponse) + AssistantConfirmationResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantConfirmationResponse"); + } + + // Use AssistantConfirmationResponse.newBuilder() to construct. + private AssistantConfirmationResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantConfirmationResponse() { + confirmationId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.class, + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.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 { + CONFIRMED(2), + ANSWER_TEXT(3), + 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 2: + return CONFIRMED; + case 3: + return ANSWER_TEXT; + 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 CONFIRMED_FIELD_NUMBER = 2; + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + @java.lang.Override + public boolean hasConfirmed() { + return responseCase_ == 2; + } + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + @java.lang.Override + public boolean getConfirmed() { + if (responseCase_ == 2) { + return (java.lang.Boolean) response_; + } + return false; + } + + public static final int ANSWER_TEXT_FIELD_NUMBER = 3; + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + public boolean hasAnswerText() { + return responseCase_ == 3; + } + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + public java.lang.String getAnswerText() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof java.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 (responseCase_ == 3) { + response_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (responseCase_ == 3) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONFIRMATION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + @java.lang.Override + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } + } + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = 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.GeneratedMessage.isStringEmpty(confirmationId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, confirmationId_); + } + if (responseCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) response_)); + } + if (responseCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, response_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(confirmationId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, confirmationId_); + } + if (responseCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) response_)); + } + if (responseCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.ces.v1beta.AssistantConfirmationResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantConfirmationResponse other = + (com.google.cloud.ces.v1beta.AssistantConfirmationResponse) obj; + + if (!getConfirmationId().equals(other.getConfirmationId())) return false; + if (!getResponseCase().equals(other.getResponseCase())) return false; + switch (responseCase_) { + case 2: + if (getConfirmed() != other.getConfirmed()) return false; + break; + case 3: + if (!getAnswerText().equals(other.getAnswerText())) 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) + CONFIRMATION_ID_FIELD_NUMBER; + hash = (53 * hash) + getConfirmationId().hashCode(); + switch (responseCase_) { + case 2: + hash = (37 * hash) + CONFIRMED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getConfirmed()); + break; + case 3: + hash = (37 * hash) + ANSWER_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAnswerText().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse 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.ces.v1beta.AssistantConfirmationResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + 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.ces.v1beta.AssistantConfirmationResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantConfirmationResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The user's answer to an
+   * [AssistantConfirmationRequest][google.cloud.ces.v1beta.AssistantConfirmationRequest],
+   * sent on the next
+   * [SessionService.StreamChatAiAssistant][google.cloud.ces.v1beta.SessionService.StreamChatAiAssistant]
+   * call to resume the paused agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantConfirmationResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantConfirmationResponse) + com.google.cloud.ces.v1beta.AssistantConfirmationResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.class, + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantConfirmationResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + confirmationId_ = ""; + responseCase_ = 0; + response_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantConfirmationResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantConfirmationResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse build() { + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantConfirmationResponse buildPartial() { + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result = + new com.google.cloud.ces.v1beta.AssistantConfirmationResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantConfirmationResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.confirmationId_ = confirmationId_; + } + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.AssistantConfirmationResponse result) { + result.responseCase_ = responseCase_; + result.response_ = this.response_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantConfirmationResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantConfirmationResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantConfirmationResponse other) { + if (other == com.google.cloud.ces.v1beta.AssistantConfirmationResponse.getDefaultInstance()) + return this; + if (!other.getConfirmationId().isEmpty()) { + confirmationId_ = other.confirmationId_; + bitField0_ |= 0x00000004; + onChanged(); + } + switch (other.getResponseCase()) { + case CONFIRMED: + { + setConfirmed(other.getConfirmed()); + break; + } + case ANSWER_TEXT: + { + responseCase_ = 3; + response_ = other.response_; + onChanged(); + 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: + { + confirmationId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 16: + { + response_ = input.readBool(); + responseCase_ = 2; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + responseCase_ = 3; + response_ = 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 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_; + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + public boolean hasConfirmed() { + return responseCase_ == 2; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + public boolean getConfirmed() { + if (responseCase_ == 2) { + return (java.lang.Boolean) response_; + } + return false; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @param value The confirmed to set. + * @return This builder for chaining. + */ + public Builder setConfirmed(boolean value) { + + responseCase_ = 2; + response_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Binary answer: true approves the paused action, false declines it.
+     * 
+ * + * bool confirmed = 2; + * + * @return This builder for chaining. + */ + public Builder clearConfirmed() { + if (responseCase_ == 2) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + @java.lang.Override + public boolean hasAnswerText() { + return responseCase_ == 3; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + @java.lang.Override + public java.lang.String getAnswerText() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (responseCase_ == 3) { + response_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAnswerTextBytes() { + java.lang.Object ref = ""; + if (responseCase_ == 3) { + ref = response_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (responseCase_ == 3) { + response_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @param value The answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + responseCase_ = 3; + response_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @return This builder for chaining. + */ + public Builder clearAnswerText() { + if (responseCase_ == 3) { + responseCase_ = 0; + response_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The chosen option's submit_text, or free-form user text. The paused
+     * action is cancelled and the text is handed to the agent to act on.
+     * 
+ * + * string answer_text = 3; + * + * @param value The bytes for answerText to set. + * @return This builder for chaining. + */ + public Builder setAnswerTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + responseCase_ = 3; + response_ = value; + onChanged(); + return this; + } + + private java.lang.Object confirmationId_ = ""; + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + public java.lang.String getConfirmationId() { + java.lang.Object ref = confirmationId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + confirmationId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + public com.google.protobuf.ByteString getConfirmationIdBytes() { + java.lang.Object ref = confirmationId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + confirmationId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + confirmationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearConfirmationId() { + confirmationId_ = getDefaultInstance().getConfirmationId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The
+     * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+     * being answered.
+     * 
+ * + * string confirmation_id = 1; + * + * @param value The bytes for confirmationId to set. + * @return This builder for chaining. + */ + public Builder setConfirmationIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + confirmationId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantConfirmationResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantConfirmationResponse) + private static final com.google.cloud.ces.v1beta.AssistantConfirmationResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantConfirmationResponse(); + } + + public static com.google.cloud.ces.v1beta.AssistantConfirmationResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantConfirmationResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantConfirmationResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java new file mode 100644 index 000000000000..55d5355b3d44 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantConfirmationResponseOrBuilder.java @@ -0,0 +1,128 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantConfirmationResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantConfirmationResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return Whether the confirmed field is set. + */ + boolean hasConfirmed(); + + /** + * + * + *
+   * Binary answer: true approves the paused action, false declines it.
+   * 
+ * + * bool confirmed = 2; + * + * @return The confirmed. + */ + boolean getConfirmed(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return Whether the answerText field is set. + */ + boolean hasAnswerText(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The answerText. + */ + java.lang.String getAnswerText(); + + /** + * + * + *
+   * The chosen option's submit_text, or free-form user text. The paused
+   * action is cancelled and the text is handed to the agent to act on.
+   * 
+ * + * string answer_text = 3; + * + * @return The bytes for answerText. + */ + com.google.protobuf.ByteString getAnswerTextBytes(); + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The confirmationId. + */ + java.lang.String getConfirmationId(); + + /** + * + * + *
+   * The
+   * [AssistantConfirmationRequest.confirmation_id][google.cloud.ces.v1beta.AssistantConfirmationRequest.confirmation_id]
+   * being answered.
+   * 
+ * + * string confirmation_id = 1; + * + * @return The bytes for confirmationId. + */ + com.google.protobuf.ByteString getConfirmationIdBytes(); + + com.google.cloud.ces.v1beta.AssistantConfirmationResponse.ResponseCase getResponseCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java new file mode 100644 index 000000000000..67f24c9b3e6d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessage.java @@ -0,0 +1,1768 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A message in an assistant session.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantMessage} + */ +@com.google.protobuf.Generated +public final class AssistantMessage extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantMessage) + AssistantMessageOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantMessage"); + } + + // Use AssistantMessage.newBuilder() to construct. + private AssistantMessage(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantMessage() { + role_ = ""; + chunks_ = java.util.Collections.emptyList(); + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantMessage.class, + com.google.cloud.ces.v1beta.AssistantMessage.Builder.class); + } + + private int bitField0_; + public static final int ROLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object role_ = ""; + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + @java.lang.Override + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHUNKS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List chunks_; + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getChunksList() { + return chunks_; + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getChunksOrBuilderList() { + return chunks_; + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getChunksCount() { + return chunks_.size(); + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index) { + return chunks_.get(index); + } + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index) { + return chunks_.get(index); + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int ATTACHED_GCS_URIS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + return attachedGcsUris_; + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.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.GeneratedMessage.isStringEmpty(role_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + output.writeMessage(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getEventTime()); + } + for (int i = 0; i < attachedGcsUris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, attachedGcsUris_.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.GeneratedMessage.isStringEmpty(role_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, role_); + } + for (int i = 0; i < chunks_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, chunks_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedGcsUris_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedGcsUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedGcsUrisList().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.ces.v1beta.AssistantMessage)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantMessage other = + (com.google.cloud.ces.v1beta.AssistantMessage) obj; + + if (!getRole().equals(other.getRole())) return false; + if (!getChunksList().equals(other.getChunksList())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (!getAttachedGcsUrisList().equals(other.getAttachedGcsUrisList())) 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) + ROLE_FIELD_NUMBER; + hash = (53 * hash) + getRole().hashCode(); + if (getChunksCount() > 0) { + hash = (37 * hash) + CHUNKS_FIELD_NUMBER; + hash = (53 * hash) + getChunksList().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (getAttachedGcsUrisCount() > 0) { + hash = (37 * hash) + ATTACHED_GCS_URIS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedGcsUrisList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage 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.ces.v1beta.AssistantMessage parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + 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.ces.v1beta.AssistantMessage parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantMessage prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A message in an assistant session.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantMessage} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantMessage) + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantMessage.class, + com.google.cloud.ces.v1beta.AssistantMessage.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantMessage.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetChunksFieldBuilder(); + internalGetEventTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + role_ = ""; + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + } else { + chunks_ = null; + chunksBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage build() { + com.google.cloud.ces.v1beta.AssistantMessage result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage buildPartial() { + com.google.cloud.ces.v1beta.AssistantMessage result = + new com.google.cloud.ces.v1beta.AssistantMessage(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.AssistantMessage result) { + if (chunksBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + chunks_ = java.util.Collections.unmodifiableList(chunks_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.chunks_ = chunks_; + } else { + result.chunks_ = chunksBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantMessage result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.role_ = role_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + attachedGcsUris_.makeImmutable(); + result.attachedGcsUris_ = attachedGcsUris_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantMessage) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantMessage) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantMessage other) { + if (other == com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()) return this; + if (!other.getRole().isEmpty()) { + role_ = other.role_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (chunksBuilder_ == null) { + if (!other.chunks_.isEmpty()) { + if (chunks_.isEmpty()) { + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureChunksIsMutable(); + chunks_.addAll(other.chunks_); + } + onChanged(); + } + } else { + if (!other.chunks_.isEmpty()) { + if (chunksBuilder_.isEmpty()) { + chunksBuilder_.dispose(); + chunksBuilder_ = null; + chunks_ = other.chunks_; + bitField0_ = (bitField0_ & ~0x00000002); + chunksBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetChunksFieldBuilder() + : null; + } else { + chunksBuilder_.addAllMessages(other.chunks_); + } + } + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (!other.attachedGcsUris_.isEmpty()) { + if (attachedGcsUris_.isEmpty()) { + attachedGcsUris_ = other.attachedGcsUris_; + bitField0_ |= 0x00000008; + } else { + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.addAll(other.attachedGcsUris_); + } + 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: + { + role_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.ces.v1beta.AssistantChunk m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantChunk.parser(), extensionRegistry); + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(m); + } else { + chunksBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.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; + } + + private int bitField0_; + + private java.lang.Object role_ = ""; + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + public java.lang.String getRole() { + java.lang.Object ref = role_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + role_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + public com.google.protobuf.ByteString getRoleBytes() { + java.lang.Object ref = role_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + role_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The role to set. + * @return This builder for chaining. + */ + public Builder setRole(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRole() { + role_ = getDefaultInstance().getRole(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Role within the conversation "user" or  "model".
+     * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for role to set. + * @return This builder for chaining. + */ + public Builder setRoleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + role_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List chunks_ = + java.util.Collections.emptyList(); + + private void ensureChunksIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + chunks_ = new java.util.ArrayList(chunks_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder> + chunksBuilder_; + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getChunksList() { + if (chunksBuilder_ == null) { + return java.util.Collections.unmodifiableList(chunks_); + } else { + return chunksBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getChunksCount() { + if (chunksBuilder_ == null) { + return chunks_.size(); + } else { + return chunksBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks(int index, com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.set(index, value); + onChanged(); + } else { + chunksBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setChunks( + int index, com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.set(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(value); + onChanged(); + } else { + chunksBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(int index, com.google.cloud.ces.v1beta.AssistantChunk value) { + if (chunksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChunksIsMutable(); + chunks_.add(index, value); + onChanged(); + } else { + chunksBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks(com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addChunks( + int index, com.google.cloud.ces.v1beta.AssistantChunk.Builder builderForValue) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.add(index, builderForValue.build()); + onChanged(); + } else { + chunksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllChunks( + java.lang.Iterable values) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, chunks_); + onChanged(); + } else { + chunksBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearChunks() { + if (chunksBuilder_ == null) { + chunks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + chunksBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeChunks(int index) { + if (chunksBuilder_ == null) { + ensureChunksIsMutable(); + chunks_.remove(index); + onChanged(); + } else { + chunksBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder getChunksBuilder(int index) { + return internalGetChunksFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index) { + if (chunksBuilder_ == null) { + return chunks_.get(index); + } else { + return chunksBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getChunksOrBuilderList() { + if (chunksBuilder_ != null) { + return chunksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(chunks_); + } + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder addChunksBuilder() { + return internalGetChunksFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantChunk.Builder addChunksBuilder(int index) { + return internalGetChunksFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantChunk.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Content of the message as chunks.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getChunksBuilderList() { + return internalGetChunksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder> + internalGetChunksFieldBuilder() { + if (chunksBuilder_ == null) { + chunksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantChunk, + com.google.cloud.ces.v1beta.AssistantChunk.Builder, + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder>( + chunks_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + chunks_ = null; + } + return chunksBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @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(); + } + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
+     * Required. Timestamp when the message was sent or received.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedGcsUrisIsMutable() { + if (!attachedGcsUris_.isModifiable()) { + attachedGcsUris_ = new com.google.protobuf.LazyStringArrayList(attachedGcsUris_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + attachedGcsUris_.makeImmutable(); + return attachedGcsUris_; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The attachedGcsUris to set. + * @return This builder for chaining. + */ + public Builder setAttachedGcsUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedGcsUris(java.lang.Iterable values) { + ensureAttachedGcsUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedGcsUris_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedGcsUris() { + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. This allows attachments to be persisted and rendered in the session
+     * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantMessage) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantMessage) + private static final com.google.cloud.ces.v1beta.AssistantMessage DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantMessage(); + } + + public static com.google.cloud.ces.v1beta.AssistantMessage getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantMessage parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantMessage getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java new file mode 100644 index 000000000000..15af152b3763 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantMessageOrBuilder.java @@ -0,0 +1,222 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantMessageOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantMessage) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The role. + */ + java.lang.String getRole(); + + /** + * + * + *
+   * Required. Role within the conversation "user" or  "model".
+   * 
+ * + * string role = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for role. + */ + com.google.protobuf.ByteString getRoleBytes(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getChunksList(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantChunk getChunks(int index); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getChunksCount(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getChunksOrBuilderList(); + + /** + * + * + *
+   * Optional. Content of the message as chunks.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantChunk chunks = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantChunkOrBuilder getChunksOrBuilder(int index); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+   * Required. Timestamp when the message was sent or received.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + java.util.List getAttachedGcsUrisList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + int getAttachedGcsUrisCount(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + java.lang.String getAttachedGcsUris(int index); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. This allows attachments to be persisted and rendered in the session
+   * history UI. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java new file mode 100644 index 000000000000..b52636bd661b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutput.java @@ -0,0 +1,1038 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The output from the assistant agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantOutput} + */ +@com.google.protobuf.Generated +public final class AssistantOutput extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantOutput) + AssistantOutputOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantOutput"); + } + + // Use AssistantOutput.newBuilder() to construct. + private AssistantOutput(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantOutput() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantOutput.class, + com.google.cloud.ces.v1beta.AssistantOutput.Builder.class); + } + + private int bitField0_; + public static final int MESSAGE_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.AssistantMessage message_; + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + @java.lang.Override + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getMessage() { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder() { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + + public static final int USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + @java.lang.Override + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUserResponseSuggestions()); + } + 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()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUserResponseSuggestions()); + } + 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.ces.v1beta.AssistantOutput)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantOutput other = + (com.google.cloud.ces.v1beta.AssistantOutput) obj; + + if (hasMessage() != other.hasMessage()) return false; + if (hasMessage()) { + if (!getMessage().equals(other.getMessage())) return false; + } + if (hasUserResponseSuggestions() != other.hasUserResponseSuggestions()) return false; + if (hasUserResponseSuggestions()) { + if (!getUserResponseSuggestions().equals(other.getUserResponseSuggestions())) 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(); + } + if (hasUserResponseSuggestions()) { + hash = (37 * hash) + USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUserResponseSuggestions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput 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.ces.v1beta.AssistantOutput parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + 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.ces.v1beta.AssistantOutput parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantOutput prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * The output from the assistant agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantOutput} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantOutput) + com.google.cloud.ces.v1beta.AssistantOutputOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantOutput.class, + com.google.cloud.ces.v1beta.AssistantOutput.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantOutput.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessageFieldBuilder(); + internalGetUserResponseSuggestionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantOutput.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput build() { + com.google.cloud.ces.v1beta.AssistantOutput result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantOutput buildPartial() { + com.google.cloud.ces.v1beta.AssistantOutput result = + new com.google.cloud.ces.v1beta.AssistantOutput(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantOutput result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userResponseSuggestions_ = + userResponseSuggestionsBuilder_ == null + ? userResponseSuggestions_ + : userResponseSuggestionsBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantOutput) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantOutput) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantOutput other) { + if (other == com.google.cloud.ces.v1beta.AssistantOutput.getDefaultInstance()) return this; + if (other.hasMessage()) { + mergeMessage(other.getMessage()); + } + if (other.hasUserResponseSuggestions()) { + mergeUserResponseSuggestions(other.getUserResponseSuggestions()); + } + 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(internalGetMessageFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUserResponseSuggestionsFieldBuilder().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.ces.v1beta.AssistantMessage message_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + messageBuilder_; + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + public boolean hasMessage() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + public com.google.cloud.ces.v1beta.AssistantMessage getMessage() { + if (messageBuilder_ == null) { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } else { + return messageBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMessage(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + } else { + messageBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMessage( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messageBuilder_ == null) { + message_ = builderForValue.build(); + } else { + messageBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMessage(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messageBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && message_ != null + && message_ != com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()) { + getMessageBuilder().mergeFrom(value); + } else { + message_ = value; + } + } else { + messageBuilder_.mergeFrom(value); + } + if (message_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMessage() { + bitField0_ = (bitField0_ & ~0x00000001); + message_ = null; + if (messageBuilder_ != null) { + messageBuilder_.dispose(); + messageBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getMessageBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetMessageFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder() { + if (messageBuilder_ != null) { + return messageBuilder_.getMessageOrBuilder(); + } else { + return message_ == null + ? com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance() + : message_; + } + } + + /** + * + * + *
+     * Required. The response from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetMessageFieldBuilder() { + if (messageBuilder_ == null) { + messageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + getMessage(), getParentForChildren(), isClean()); + message_ = null; + } + return messageBuilder_; + } + + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + userResponseSuggestionsBuilder_; + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + if (userResponseSuggestionsBuilder_ == null) { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } else { + return userResponseSuggestionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userResponseSuggestions_ = value; + } else { + userResponseSuggestionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder builderForValue) { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestions_ = builderForValue.build(); + } else { + userResponseSuggestionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && userResponseSuggestions_ != null + && userResponseSuggestions_ + != com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance()) { + getUserResponseSuggestionsBuilder().mergeFrom(value); + } else { + userResponseSuggestions_ = value; + } + } else { + userResponseSuggestionsBuilder_.mergeFrom(value); + } + if (userResponseSuggestions_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserResponseSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder + getUserResponseSuggestionsBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUserResponseSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + if (userResponseSuggestionsBuilder_ != null) { + return userResponseSuggestionsBuilder_.getMessageOrBuilder(); + } else { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + internalGetUserResponseSuggestionsFieldBuilder() { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder>( + getUserResponseSuggestions(), getParentForChildren(), isClean()); + userResponseSuggestions_ = null; + } + return userResponseSuggestionsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantOutput) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantOutput) + private static final com.google.cloud.ces.v1beta.AssistantOutput DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantOutput(); + } + + public static com.google.cloud.ces.v1beta.AssistantOutput getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantOutput parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantOutput getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java new file mode 100644 index 000000000000..15008611d707 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantOutputOrBuilder.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantOutputOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantOutput) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the message field is set. + */ + boolean hasMessage(); + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The message. + */ + com.google.cloud.ces.v1beta.AssistantMessage getMessage(); + + /** + * + * + *
+   * Required. The response from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessageOrBuilder(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + boolean hasUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java new file mode 100644 index 000000000000..462b44fd669a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantServiceProto.java @@ -0,0 +1,487 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public final class AssistantServiceProto extends com.google.protobuf.GeneratedFile { + private AssistantServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantServiceProto"); + } + + 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_ces_v1beta_ListAssistantSessionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_TypedPayload_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_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/ces/v1beta/assistant_serv" + + "ice.proto\022\027google.cloud.ces.v1beta\032\034goog" + + "le/api/annotations.proto\032\027google/api/cli" + + "ent.proto\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\032$google/cl" + + "oud/ces/v1beta/common.proto\032\033google/prot" + + "obuf/empty.proto\032\034google/protobuf/struct" + + ".proto\032\037google/protobuf/timestamp.proto\"\245\001\n" + + "\034ListAssistantSessionsRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#ces.googleapis.com/AssistantSession\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + + "\006filter\030\004 \001(\tB\004\342A\001\001\"\205\001\n" + + "\035ListAssistantSessionsResponse\022E\n" + + "\022assistant_sessions\030\001" + + " \003(\0132).google.cloud.ces.v1beta.AssistantSession\022\035\n" + + "\017next_page_token\030\002 \001(\tB\004\342A\001\001\"X\n" + + "\032GetAssistantSessionRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\"\326\001\n" + + "\035CreateAssistantSessionRequest\022<\n" + + "\006parent\030\001 \001(" + + "\tB,\342A\001\002\372A%\022#ces.googleapis.com/AssistantSession\022\"\n" + + "\024assistant_session_id\030\002 \001(\tB\004\342A\001\001\022S\n" + + "\032assistant_session_messages\030\003 \003(" + + "\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\001\"[\n" + + "\035DeleteAssistantSessionRequest\022:\n" + + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\"\211\003\n" + + "\023RunAssistantRequest\022,\n" + + "\003app\030\001 \001(\tB\037\342A\001\002\372A\030\n" + + "\026ces.googleapis.com/App\022G\n" + + "\021assistant_session\030\002 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\022@\n" + + "\007message\030\003" + + " \001(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\002\022\\\n" + + "\020interaction_type\030\004 \001(\0162<.google.cloud.ces.v1" + + "beta.RunAssistantRequest.InteractionTypeB\004\342A\001\001\"[\n" + + "\017InteractionType\022 \n" + + "\034INTERACTION_TYPE_UNSPECIFIED\020\000\022\017\n" + + "\013NEW_MESSAGE\020\001\022\010\n" + + "\004POLL\020\002\022\013\n" + + "\007DISMISS\020\003\"\233\001\n" + + "\024RunAssistantResponse\022>\n" + + "\006output\030\001" + + " \001(\0132(.google.cloud.ces.v1beta.AssistantOutputB\004\342A\001\002\022C\n" + + "\005state\030\003 " + + "\001(\0162..google.cloud.ces.v1beta.AssistantSessionStateB\004\342A\001\003\"\266\006\n" + + "\020AssistantSession\022\023\n" + + "\004name\030\001 \001(\tB\005\342A\002\010\002\022\027\n" + + "\trequestor\030\002 \001(\tB\004\342A\001\003\022A\n" + + "\010messages\030\003" + + " \003(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\001\022C\n" + + "\005state\030\004" + + " \001(\0162..google.cloud.ces.v1beta.AssistantSessionStateB\004\342A\001\003\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + + "\013update_time\030\006" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022Y\n" + + "\031user_response_suggestions\030\007" + + " \001(\01320.google.cloud.ces.v1beta.UserResponseSuggestionsB\004\342A\001\003\022\032\n" + + "\014display_name\030\010 \001(\tB\004\342A\001\001\022J\n" + + "\tartifacts\030\t \003(\01321.google.cl" + + "oud.ces.v1beta.AssistantSessionArtifactB\004\342A\001\003\022L\n" + + "\022session_checkpoint\030\n" + + " \001(\0132*.google.cloud.ces.v1beta.SessionCheckpointB\004\342A\001\003\022B\n" + + "\013active_turn\030\013" + + " \001(\0132\'.google.cloud.ces.v1beta.ActiveTurnInfoB\004\342A\001\003:\250\001\352A\244\001\n" + + "#ces.googleapis.com/AssistantSession\022Xprojects/{project}/locations/{location}/app" + + "s/{app}/assistantSessions/{assistant_ses" + + "sion}*\021assistantSessions2\020assistantSession\"\363\002\n" + + "\016ActiveTurnInfo\022\017\n" + + "\007turn_id\030\001 \001(\t\022>\n" + + "\006status\030\002 \001(\0162..google.cloud.ces.v1beta.ActiveTurnInfo.Status\0224\n\n" + + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022<\n" + + "\022last_progress_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022>\n" + + "\024orphan_deadline_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\\\n" + + "\006Status\022\026\n" + + "\022STATUS_UNSPECIFIED\020\000\022\013\n" + + "\007RUNNING\020\001\022\020\n" + + "\014DISCONNECTED\020\002\022\014\n" + + "\010RESUMING\020\003\022\r\n" + + "\tABANDONED\020\004\"\311\001\n" + + "\030AssistantSessionArtifact\022\020\n" + + "\002id\030\001 \001(\tB\004\342A\001\003\022\032\n" + + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\025\n" + + "\007gcs_uri\030\003 \001(\tB\004\342A\001\003\022\027\n" + + "\tmime_type\030\004 \001(\tB\004\342A\001\003\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\030\n\n" + + "turn_index\030\006 \001(\005B\004\342A\001\003\"\366\001\n" + + "\016AssistantChunk\022\024\n" + + "\004text\030\001 \001(\tB\004\342A\001\001H\000\022\027\n" + + "\007thought\030\002 \001(\tB\004\342A\001\001H\000\0220\n" + + "\007payload\030\003" + + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001H\000\022D\n\r" + + "typed_payload\030\004 \001(\0132" + + "%.google.cloud.ces.v1beta.TypedPayloadB\004\342A\001\001H\000\0225\n" + + "\013create_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001B\006\n" + + "\004data\"\256\001\n" + + "\017AssistantOutput\022@\n" + + "\007message\030\001" + + " \001(\0132).google.cloud.ces.v1beta.AssistantMessageB\004\342A\001\002\022Y\n" + + "\031user_response_suggestions\030\002 \001(\01320.google." + + "cloud.ces.v1beta.UserResponseSuggestionsB\004\342A\001\003\"\274\001\n" + + "\020AssistantMessage\022\022\n" + + "\004role\030\001 \001(\tB\004\342A\001\002\022=\n" + + "\006chunks\030\002" + + " \003(\0132\'.google.cloud.ces.v1beta.AssistantChunkB\004\342A\001\001\0224\n\n" + + "event_time\030\003" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\022\037\n" + + "\021attached_gcs_uris\030\004 \003(\tB\004\342A\001\001\"\235\001\n" + + "\014TypedPayload\022\032\n" + + "\014display_name\030\001 \001(\tB\004\342A\001\002\022\022\n" + + "\004type\030\002 \001(\tB\004\342A\001\002\022,\n" + + "\005value\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002\022/\n" + + "\010metadata\030\004 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"4\n" + + "\027UserResponseSuggestions\022\031\n" + + "\013suggestions\030\001 \003(\tB\004\342A\001\002\"\344\001\n" + + "\026ChatAiAssistantRequest\022,\n" + + "\003app\030\001 \001(\tB\037\342A\001\002\372A\030\n" + + "\026ces.googleapis.com/App\022G\n" + + "\021assistant_session\030\002 \001(\tB,\342A\001\002\372A%\n" + + "#ces.googleapis.com/AssistantSession\022\025\n" + + "\007message\030\003 \001(\tB\004\342A\001\002\022\037\n" + + "\021attached_gcs_uris\030\005 \003(\tB\004\342A\001\001\022\033\n\r" + + "context_token\030\006 \001(\tB\004\342A\001\001\"\230\002\n" + + "\027ChatAiAssistantResponse\022\024\n\n" + + "text_chunk\030\003 \001(\tH\000\022\030\n" + + "\016status_message\030\004 \001(\tH\000\022H\n" + + "\022session_checkpoint\030\r" + + " \001(\0132*.google.cloud.ces.v1beta.SessionCheckpointH\000\022\020\n" + + "\010event_id\030\001 \001(\t\022.\n\n" + + "event_time\030\002 \001(\0132\032.google.protobuf.Timestamp\0228\n" + + "\010ui_event\030\005 \001(\0132" + + " .google.cloud.ces.v1beta.UiEventB\004\342A\001\001B\007\n" + + "\005event*n\n" + + "\025AssistantSessionState\022\'\n" + + "#ASSISTANT_SESSION_STATE_UNSPECIFIED\020\000\022\016\n\n" + + "PROCESSING\020\001\022\010\n" + + "\004IDLE\020\002\022\022\n" + + "\016PENDING_REVIEW\020\0032\272\n" + + "\n" + + "\020AssistantService\022\331\001\n" + + "\025ListAssistantSessions\0225.google.cloud.ces.v1beta.ListAssis" + + "tantSessionsRequest\0326.google.cloud.ces.v" + + "1beta.ListAssistantSessionsResponse\"Q\332A\006" + + "parent\202\323\344\223\002B\022@/v1beta/{parent=projects/*" + + "/locations/*/apps/*}/assistantSessions\022\306\001\n" + + "\023GetAssistantSession\0223.google.cloud.ce" + + "s.v1beta.GetAssistantSessionRequest\032).google.cloud.ces.v1beta.AssistantSession\"O" + + "\332A\004name\202\323\344\223\002B\022@/v1beta/{name=projects/*/" + + "locations/*/apps/*/assistantSessions/*}\022\346\001\n" + + "\026CreateAssistantSession\0226.google.cloud.ces.v1beta.CreateAssistantSessionReque" + + "st\032).google.cloud.ces.v1beta.AssistantSe" + + "ssion\"i\332A\033parent,assistant_session_id\202\323\344" + + "\223\002E\"@/v1beta/{parent=projects/*/locations/*/apps/*}/assistantSessions:\001*\022\271\001\n" + + "\026DeleteAssistantSession\0226.google.cloud.ces.v" + + "1beta.DeleteAssistantSessionRequest\032\026.go" + + "ogle.protobuf.Empty\"O\332A\004name\202\323\344\223\002B*@/v1b" + + "eta/{name=projects/*/locations/*/apps/*/assistantSessions/*}\022\260\001\n" + + "\014RunAssistant\022,.google.cloud.ces.v1beta.RunAssistantRequ" + + "est\032-.google.cloud.ces.v1beta.RunAssista" + + "ntResponse\"C\202\323\344\223\002=\"8/v1beta/{app=project" + + "s/*/locations/*/apps/*}:runAssistant:\001*\022\274\001\n" + + "\017ChatAiAssistant\022/.google.cloud.ces.v1beta.ChatAiAssistantRequest\0320.google.cl" + + "oud.ces.v1beta.ChatAiAssistantResponse\"F" + + "\202\323\344\223\002@\";/v1beta/{app=projects/*/location" + + "s/*/apps/*}:chatAiAssistant:\001*\032j\312A\022ces.g" + + "oogleapis.com\322ARhttps://www.googleapis.c" + + "om/auth/ces,https://www.googleapis.com/auth/cloud-platformBe\n" + + "\033com.google.cloud.ces.v1betaB\025AssistantServiceProtoP\001Z-clou" + + "d.google.com/go/ces/apiv1beta/cespb;cespbb\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.ces.v1beta.CommonProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", + }); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor, + new java.lang.String[] { + "AssistantSessions", "NextPageToken", + }); + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Parent", "AssistantSessionId", "AssistantSessionMessages", + }); + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RunAssistantRequest_descriptor, + new java.lang.String[] { + "App", "AssistantSession", "Message", "InteractionType", + }); + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_RunAssistantResponse_descriptor, + new java.lang.String[] { + "Output", "State", + }); + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor, + new java.lang.String[] { + "Name", + "Requestor", + "Messages", + "State", + "CreateTime", + "UpdateTime", + "UserResponseSuggestions", + "DisplayName", + "Artifacts", + "SessionCheckpoint", + "ActiveTurn", + }); + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ActiveTurnInfo_descriptor, + new java.lang.String[] { + "TurnId", "Status", "StartTime", "LastProgressTime", "OrphanDeadlineTime", + }); + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor, + new java.lang.String[] { + "Id", "DisplayName", "GcsUri", "MimeType", "CreateTime", "TurnIndex", + }); + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_ces_v1beta_AssistantChunk_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantChunk_descriptor, + new java.lang.String[] { + "Text", "Thought", "Payload", "TypedPayload", "CreateTime", "Data", + }); + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_ces_v1beta_AssistantOutput_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantOutput_descriptor, + new java.lang.String[] { + "Message", "UserResponseSuggestions", + }); + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1beta_AssistantMessage_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AssistantMessage_descriptor, + new java.lang.String[] { + "Role", "Chunks", "EventTime", "AttachedGcsUris", + }); + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor = + getDescriptor().getMessageType(13); + internal_static_google_cloud_ces_v1beta_TypedPayload_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_TypedPayload_descriptor, + new java.lang.String[] { + "DisplayName", "Type", "Value", "Metadata", + }); + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor = + getDescriptor().getMessageType(14); + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_UserResponseSuggestions_descriptor, + new java.lang.String[] { + "Suggestions", + }); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor = + getDescriptor().getMessageType(15); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor, + new java.lang.String[] { + "App", "AssistantSession", "Message", "AttachedGcsUris", "ContextToken", + }); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor = + getDescriptor().getMessageType(16); + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor, + new java.lang.String[] { + "TextChunk", + "StatusMessage", + "SessionCheckpoint", + "EventId", + "EventTime", + "UiEvent", + "Event", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + 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.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java new file mode 100644 index 000000000000..f442f0058ebf --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSession.java @@ -0,0 +1,3919 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * An assistant session represents a conversation between a user and the
+ * assistant agent.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSession} + */ +@com.google.protobuf.Generated +public final class AssistantSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSession) + AssistantSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSession"); + } + + // Use AssistantSession.newBuilder() to construct. + private AssistantSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSession() { + name_ = ""; + requestor_ = ""; + messages_ = java.util.Collections.emptyList(); + state_ = 0; + displayName_ = ""; + artifacts_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSession.class, + com.google.cloud.ces.v1beta.AssistantSession.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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 REQUESTOR_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestor_ = ""; + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + @java.lang.Override + public java.lang.String getRequestor() { + java.lang.Object ref = requestor_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestor_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestorBytes() { + java.lang.Object ref = requestor_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List messages_; + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMessagesList() { + return messages_; + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMessagesOrBuilderList() { + return messages_; + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMessagesCount() { + return messages_.size(); + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index) { + return messages_.get(index); + } + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index) { + return messages_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 4; + private int state_ = 0; + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState 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 status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionState getState() { + com.google.cloud.ces.v1beta.AssistantSessionState result = + com.google.cloud.ces.v1beta.AssistantSessionState.forNumber(state_); + return result == null ? com.google.cloud.ces.v1beta.AssistantSessionState.UNRECOGNIZED : result; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 = 6; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.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 USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER = 7; + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + @java.lang.Override + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 ARTIFACTS_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private java.util.List artifacts_; + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getArtifactsList() { + return artifacts_; + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getArtifactsOrBuilderList() { + return artifacts_; + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getArtifactsCount() { + return artifacts_.size(); + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index) { + return artifacts_.get(index); + } + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder( + int index) { + return artifacts_.get(index); + } + + public static final int SESSION_CHECKPOINT_FIELD_NUMBER = 10; + private com.google.cloud.ces.v1beta.SessionCheckpoint sessionCheckpoint_; + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + + public static final int ACTIVE_TURN_FIELD_NUMBER = 11; + private com.google.cloud.ces.v1beta.ActiveTurnInfo activeTurn_; + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + @java.lang.Override + public boolean hasActiveTurn() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn() { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder() { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestor_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestor_); + } + for (int i = 0; i < messages_.size(); i++) { + output.writeMessage(3, messages_.get(i)); + } + if (state_ + != com.google.cloud.ces.v1beta.AssistantSessionState.ASSISTANT_SESSION_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(7, getUserResponseSuggestions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, displayName_); + } + for (int i = 0; i < artifacts_.size(); i++) { + output.writeMessage(9, artifacts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(10, getSessionCheckpoint()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(11, getActiveTurn()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestor_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestor_); + } + for (int i = 0; i < messages_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, messages_.get(i)); + } + if (state_ + != com.google.cloud.ces.v1beta.AssistantSessionState.ASSISTANT_SESSION_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUserResponseSuggestions()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(8, displayName_); + } + for (int i = 0; i < artifacts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, artifacts_.get(i)); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getSessionCheckpoint()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getActiveTurn()); + } + 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.ces.v1beta.AssistantSession)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSession other = + (com.google.cloud.ces.v1beta.AssistantSession) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRequestor().equals(other.getRequestor())) return false; + if (!getMessagesList().equals(other.getMessagesList())) return false; + if (state_ != other.state_) 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 (hasUserResponseSuggestions() != other.hasUserResponseSuggestions()) return false; + if (hasUserResponseSuggestions()) { + if (!getUserResponseSuggestions().equals(other.getUserResponseSuggestions())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getArtifactsList().equals(other.getArtifactsList())) return false; + if (hasSessionCheckpoint() != other.hasSessionCheckpoint()) return false; + if (hasSessionCheckpoint()) { + if (!getSessionCheckpoint().equals(other.getSessionCheckpoint())) return false; + } + if (hasActiveTurn() != other.hasActiveTurn()) return false; + if (hasActiveTurn()) { + if (!getActiveTurn().equals(other.getActiveTurn())) 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) + REQUESTOR_FIELD_NUMBER; + hash = (53 * hash) + getRequestor().hashCode(); + if (getMessagesCount() > 0) { + hash = (37 * hash) + MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getMessagesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasUserResponseSuggestions()) { + hash = (37 * hash) + USER_RESPONSE_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getUserResponseSuggestions().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getArtifactsCount() > 0) { + hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; + hash = (53 * hash) + getArtifactsList().hashCode(); + } + if (hasSessionCheckpoint()) { + hash = (37 * hash) + SESSION_CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + getSessionCheckpoint().hashCode(); + } + if (hasActiveTurn()) { + hash = (37 * hash) + ACTIVE_TURN_FIELD_NUMBER; + hash = (53 * hash) + getActiveTurn().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession 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.ces.v1beta.AssistantSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + 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.ces.v1beta.AssistantSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * An assistant session represents a conversation between a user and the
+   * assistant agent.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSession) + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSession.class, + com.google.cloud.ces.v1beta.AssistantSession.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSession.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMessagesFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetUserResponseSuggestionsFieldBuilder(); + internalGetArtifactsFieldBuilder(); + internalGetSessionCheckpointFieldBuilder(); + internalGetActiveTurnFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + requestor_ = ""; + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + } else { + messages_ = null; + messagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + displayName_ = ""; + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + } else { + artifacts_ = null; + artifactsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000100); + sessionCheckpoint_ = null; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.dispose(); + sessionCheckpointBuilder_ = null; + } + activeTurn_ = null; + if (activeTurnBuilder_ != null) { + activeTurnBuilder_.dispose(); + activeTurnBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSession_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession build() { + com.google.cloud.ces.v1beta.AssistantSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession buildPartial() { + com.google.cloud.ces.v1beta.AssistantSession result = + new com.google.cloud.ces.v1beta.AssistantSession(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.AssistantSession result) { + if (messagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + messages_ = java.util.Collections.unmodifiableList(messages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.messages_ = messages_; + } else { + result.messages_ = messagesBuilder_.build(); + } + if (artifactsBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0)) { + artifacts_ = java.util.Collections.unmodifiableList(artifacts_); + bitField0_ = (bitField0_ & ~0x00000100); + } + result.artifacts_ = artifacts_; + } else { + result.artifacts_ = artifactsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.requestor_ = requestor_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.userResponseSuggestions_ = + userResponseSuggestionsBuilder_ == null + ? userResponseSuggestions_ + : userResponseSuggestionsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.sessionCheckpoint_ = + sessionCheckpointBuilder_ == null + ? sessionCheckpoint_ + : sessionCheckpointBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.activeTurn_ = activeTurnBuilder_ == null ? activeTurn_ : activeTurnBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSession) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSession other) { + if (other == com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRequestor().isEmpty()) { + requestor_ = other.requestor_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (messagesBuilder_ == null) { + if (!other.messages_.isEmpty()) { + if (messages_.isEmpty()) { + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureMessagesIsMutable(); + messages_.addAll(other.messages_); + } + onChanged(); + } + } else { + if (!other.messages_.isEmpty()) { + if (messagesBuilder_.isEmpty()) { + messagesBuilder_.dispose(); + messagesBuilder_ = null; + messages_ = other.messages_; + bitField0_ = (bitField0_ & ~0x00000004); + messagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMessagesFieldBuilder() + : null; + } else { + messagesBuilder_.addAllMessages(other.messages_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasUserResponseSuggestions()) { + mergeUserResponseSuggestions(other.getUserResponseSuggestions()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (artifactsBuilder_ == null) { + if (!other.artifacts_.isEmpty()) { + if (artifacts_.isEmpty()) { + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000100); + } else { + ensureArtifactsIsMutable(); + artifacts_.addAll(other.artifacts_); + } + onChanged(); + } + } else { + if (!other.artifacts_.isEmpty()) { + if (artifactsBuilder_.isEmpty()) { + artifactsBuilder_.dispose(); + artifactsBuilder_ = null; + artifacts_ = other.artifacts_; + bitField0_ = (bitField0_ & ~0x00000100); + artifactsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetArtifactsFieldBuilder() + : null; + } else { + artifactsBuilder_.addAllMessages(other.artifacts_); + } + } + } + if (other.hasSessionCheckpoint()) { + mergeSessionCheckpoint(other.getSessionCheckpoint()); + } + if (other.hasActiveTurn()) { + mergeActiveTurn(other.getActiveTurn()); + } + 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: + { + requestor_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1beta.AssistantMessage m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantMessage.parser(), extensionRegistry); + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(m); + } else { + messagesBuilder_.addMessage(m); + } + break; + } // case 26 + case 32: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUserResponseSuggestionsFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 66 + case 74: + { + com.google.cloud.ces.v1beta.AssistantSessionArtifact m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.parser(), + extensionRegistry); + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(m); + } else { + artifactsBuilder_.addMessage(m); + } + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetSessionCheckpointFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000200; + break; + } // case 82 + case 90: + { + input.readMessage( + internalGetActiveTurnFieldBuilder().getBuilder(), extensionRegistry); + 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 name_ = ""; + + /** + * + * + *
+     * Required. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Identifier. The unique identifier of the session.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object requestor_ = ""; + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + public java.lang.String getRequestor() { + java.lang.Object ref = requestor_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestor_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + public com.google.protobuf.ByteString getRequestorBytes() { + java.lang.Object ref = requestor_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestor_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestor to set. + * @return This builder for chaining. + */ + public Builder setRequestor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + requestor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestor() { + requestor_ = getDefaultInstance().getRequestor(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The user who initiated the session.
+     * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for requestor to set. + * @return This builder for chaining. + */ + public Builder setRequestorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + requestor_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List messages_ = + java.util.Collections.emptyList(); + + private void ensureMessagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + messages_ = + new java.util.ArrayList(messages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + messagesBuilder_; + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMessagesList() { + if (messagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(messages_); + } else { + return messagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMessagesCount() { + if (messagesBuilder_ == null) { + return messages_.size(); + } else { + return messagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages(int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.set(index, value); + onChanged(); + } else { + messagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.set(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(value); + onChanged(); + } else { + messagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages(int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (messagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMessagesIsMutable(); + messages_.add(index, value); + onChanged(); + } else { + messagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.add(index, builderForValue.build()); + onChanged(); + } else { + messagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMessages() { + if (messagesBuilder_ == null) { + messages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + messagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMessages(int index) { + if (messagesBuilder_ == null) { + ensureMessagesIsMutable(); + messages_.remove(index); + onChanged(); + } else { + messagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index) { + if (messagesBuilder_ == null) { + return messages_.get(index); + } else { + return messagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesOrBuilderList() { + if (messagesBuilder_ != null) { + return messagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(messages_); + } + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addMessagesBuilder() { + return internalGetMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addMessagesBuilder(int index) { + return internalGetMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. History of messages in the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMessagesBuilderList() { + return internalGetMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetMessagesFieldBuilder() { + if (messagesBuilder_ == null) { + messagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + messages_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + messages_ = null; + } + return messagesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState 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 status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState 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 status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionState getState() { + com.google.cloud.ces.v1beta.AssistantSessionState result = + com.google.cloud.ces.v1beta.AssistantSessionState.forNumber(state_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSessionState.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState 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.ces.v1beta.AssistantSessionState value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The status of the assistant session.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState 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.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. The time the assistant session was created.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.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 time the assistant session was last updated.
+     * 
+ * + * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.cloud.ces.v1beta.UserResponseSuggestions userResponseSuggestions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + userResponseSuggestionsBuilder_; + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + public boolean hasUserResponseSuggestions() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions() { + if (userResponseSuggestionsBuilder_ == null) { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } else { + return userResponseSuggestionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + userResponseSuggestions_ = value; + } else { + userResponseSuggestionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder builderForValue) { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestions_ = builderForValue.build(); + } else { + userResponseSuggestionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUserResponseSuggestions( + com.google.cloud.ces.v1beta.UserResponseSuggestions value) { + if (userResponseSuggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && userResponseSuggestions_ != null + && userResponseSuggestions_ + != com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance()) { + getUserResponseSuggestionsBuilder().mergeFrom(value); + } else { + userResponseSuggestions_ = value; + } + } else { + userResponseSuggestionsBuilder_.mergeFrom(value); + } + if (userResponseSuggestions_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUserResponseSuggestions() { + bitField0_ = (bitField0_ & ~0x00000040); + userResponseSuggestions_ = null; + if (userResponseSuggestionsBuilder_ != null) { + userResponseSuggestionsBuilder_.dispose(); + userResponseSuggestionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder + getUserResponseSuggestionsBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUserResponseSuggestionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder() { + if (userResponseSuggestionsBuilder_ != null) { + return userResponseSuggestionsBuilder_.getMessageOrBuilder(); + } else { + return userResponseSuggestions_ == null + ? com.google.cloud.ces.v1beta.UserResponseSuggestions.getDefaultInstance() + : userResponseSuggestions_; + } + } + + /** + * + * + *
+     * Output only. Suggested user responses from the assistant agent.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder> + internalGetUserResponseSuggestionsFieldBuilder() { + if (userResponseSuggestionsBuilder_ == null) { + userResponseSuggestionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UserResponseSuggestions, + com.google.cloud.ces.v1beta.UserResponseSuggestions.Builder, + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder>( + getUserResponseSuggestions(), getParentForChildren(), isClean()); + userResponseSuggestions_ = null; + } + return userResponseSuggestionsBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The display name of the assistant session.
+     * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ |= 0x00000080; + onChanged(); + return this; + } + + private java.util.List artifacts_ = + java.util.Collections.emptyList(); + + private void ensureArtifactsIsMutable() { + if (!((bitField0_ & 0x00000100) != 0)) { + artifacts_ = + new java.util.ArrayList( + artifacts_); + bitField0_ |= 0x00000100; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder> + artifactsBuilder_; + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getArtifactsList() { + if (artifactsBuilder_ == null) { + return java.util.Collections.unmodifiableList(artifacts_); + } else { + return artifactsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getArtifactsCount() { + if (artifactsBuilder_ == null) { + return artifacts_.size(); + } else { + return artifactsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.set(index, value); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.set(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts(com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(value); + onChanged(); + } else { + artifactsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact value) { + if (artifactsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureArtifactsIsMutable(); + artifacts_.add(index, value); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addArtifacts( + int index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder builderForValue) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.add(index, builderForValue.build()); + onChanged(); + } else { + artifactsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllArtifacts( + java.lang.Iterable values) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, artifacts_); + onChanged(); + } else { + artifactsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearArtifacts() { + if (artifactsBuilder_ == null) { + artifacts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + } else { + artifactsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeArtifacts(int index) { + if (artifactsBuilder_ == null) { + ensureArtifactsIsMutable(); + artifacts_.remove(index); + onChanged(); + } else { + artifactsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder getArtifactsBuilder( + int index) { + return internalGetArtifactsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder( + int index) { + if (artifactsBuilder_ == null) { + return artifacts_.get(index); + } else { + return artifactsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsOrBuilderList() { + if (artifactsBuilder_ != null) { + return artifactsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(artifacts_); + } + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder addArtifactsBuilder() { + return internalGetArtifactsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder addArtifactsBuilder( + int index) { + return internalGetArtifactsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+     * by the assistant in this session. Pointers only; the file content lives in
+     * the customer's Cloud Storage bucket.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getArtifactsBuilderList() { + return internalGetArtifactsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder> + internalGetArtifactsFieldBuilder() { + if (artifactsBuilder_ == null) { + artifactsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSessionArtifact, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder, + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder>( + artifacts_, ((bitField0_ & 0x00000100) != 0), getParentForChildren(), isClean()); + artifacts_ = null; + } + return artifactsBuilder_; + } + + private com.google.cloud.ces.v1beta.SessionCheckpoint sessionCheckpoint_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + sessionCheckpointBuilder_; + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + public boolean hasSessionCheckpoint() { + return ((bitField0_ & 0x00000200) != 0); + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } else { + return sessionCheckpointBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sessionCheckpoint_ = value; + } else { + sessionCheckpointBuilder_.setMessage(value); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSessionCheckpoint( + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder builderForValue) { + if (sessionCheckpointBuilder_ == null) { + sessionCheckpoint_ = builderForValue.build(); + } else { + sessionCheckpointBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (((bitField0_ & 0x00000200) != 0) + && sessionCheckpoint_ != null + && sessionCheckpoint_ + != com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance()) { + getSessionCheckpointBuilder().mergeFrom(value); + } else { + sessionCheckpoint_ = value; + } + } else { + sessionCheckpointBuilder_.mergeFrom(value); + } + if (sessionCheckpoint_ != null) { + bitField0_ |= 0x00000200; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSessionCheckpoint() { + bitField0_ = (bitField0_ & ~0x00000200); + sessionCheckpoint_ = null; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.dispose(); + sessionCheckpointBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint.Builder getSessionCheckpointBuilder() { + bitField0_ |= 0x00000200; + onChanged(); + return internalGetSessionCheckpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if (sessionCheckpointBuilder_ != null) { + return sessionCheckpointBuilder_.getMessageOrBuilder(); + } else { + return sessionCheckpoint_ == null + ? com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance() + : sessionCheckpoint_; + } + } + + /** + * + * + *
+     * Output only. Session checkpoint containing user intent and rolling history
+     * summary.
+     * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + internalGetSessionCheckpointFieldBuilder() { + if (sessionCheckpointBuilder_ == null) { + sessionCheckpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder>( + getSessionCheckpoint(), getParentForChildren(), isClean()); + sessionCheckpoint_ = null; + } + return sessionCheckpointBuilder_; + } + + private com.google.cloud.ces.v1beta.ActiveTurnInfo activeTurn_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder> + activeTurnBuilder_; + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + public boolean hasActiveTurn() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn() { + if (activeTurnBuilder_ == null) { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } else { + return activeTurnBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveTurn(com.google.cloud.ces.v1beta.ActiveTurnInfo value) { + if (activeTurnBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + activeTurn_ = value; + } else { + activeTurnBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setActiveTurn( + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder builderForValue) { + if (activeTurnBuilder_ == null) { + activeTurn_ = builderForValue.build(); + } else { + activeTurnBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeActiveTurn(com.google.cloud.ces.v1beta.ActiveTurnInfo value) { + if (activeTurnBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && activeTurn_ != null + && activeTurn_ != com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance()) { + getActiveTurnBuilder().mergeFrom(value); + } else { + activeTurn_ = value; + } + } else { + activeTurnBuilder_.mergeFrom(value); + } + if (activeTurn_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearActiveTurn() { + bitField0_ = (bitField0_ & ~0x00000400); + activeTurn_ = null; + if (activeTurnBuilder_ != null) { + activeTurnBuilder_.dispose(); + activeTurnBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder getActiveTurnBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetActiveTurnFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder() { + if (activeTurnBuilder_ != null) { + return activeTurnBuilder_.getMessageOrBuilder(); + } else { + return activeTurn_ == null + ? com.google.cloud.ces.v1beta.ActiveTurnInfo.getDefaultInstance() + : activeTurn_; + } + } + + /** + * + * + *
+     * Output only. Attachment info for this session's currently running turn.
+     * Unset when no turn is running.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder> + internalGetActiveTurnFieldBuilder() { + if (activeTurnBuilder_ == null) { + activeTurnBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ActiveTurnInfo, + com.google.cloud.ces.v1beta.ActiveTurnInfo.Builder, + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder>( + getActiveTurn(), getParentForChildren(), isClean()); + activeTurn_ = null; + } + return activeTurnBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSession) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSession) + private static final com.google.cloud.ces.v1beta.AssistantSession DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSession(); + } + + public static com.google.cloud.ces.v1beta.AssistantSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java new file mode 100644 index 000000000000..07838c53fcb4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifact.java @@ -0,0 +1,1600 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A document artifact generated by the assistant within a session, stored as
+ * a file in the customer's Cloud Storage bucket.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSessionArtifact} + */ +@com.google.protobuf.Generated +public final class AssistantSessionArtifact extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSessionArtifact) + AssistantSessionArtifactOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSessionArtifact"); + } + + // Use AssistantSessionArtifact.newBuilder() to construct. + private AssistantSessionArtifact(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSessionArtifact() { + id_ = ""; + displayName_ = ""; + gcsUri_ = ""; + mimeType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.class, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder.class); + } + + private int bitField0_; + public static final int ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object id_ = ""; + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MIME_TYPE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object mimeType_ = ""; + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + @java.lang.Override + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } + } + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 5; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.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 TURN_INDEX_FIELD_NUMBER = 6; + private int turnIndex_ = 0; + + /** + * + * + *
+   * Output only. Index of the message in [AssistantSession.messages] whose turn
+   * produced the artifact, for placing the artifact chip when history is
+   * restored.
+   * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(id_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, mimeType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getCreateTime()); + } + if (turnIndex_ != 0) { + output.writeInt32(6, turnIndex_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, gcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, mimeType_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getCreateTime()); + } + if (turnIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(6, turnIndex_); + } + 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.ces.v1beta.AssistantSessionArtifact)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSessionArtifact other = + (com.google.cloud.ces.v1beta.AssistantSessionArtifact) obj; + + if (!getId().equals(other.getId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getGcsUri().equals(other.getGcsUri())) return false; + if (!getMimeType().equals(other.getMimeType())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getTurnIndex() != other.getTurnIndex()) 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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (37 * hash) + MIME_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getMimeType().hashCode(); + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact 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.ces.v1beta.AssistantSessionArtifact parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + 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.ces.v1beta.AssistantSessionArtifact parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantSessionArtifact prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A document artifact generated by the assistant within a session, stored as
+   * a file in the customer's Cloud Storage bucket.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSessionArtifact} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSessionArtifact) + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSessionArtifact.class, + com.google.cloud.ces.v1beta.AssistantSessionArtifact.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSessionArtifact.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + id_ = ""; + displayName_ = ""; + gcsUri_ = ""; + mimeType_ = ""; + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + turnIndex_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSessionArtifact_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact build() { + com.google.cloud.ces.v1beta.AssistantSessionArtifact result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionArtifact buildPartial() { + com.google.cloud.ces.v1beta.AssistantSessionArtifact result = + new com.google.cloud.ces.v1beta.AssistantSessionArtifact(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSessionArtifact result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.id_ = id_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.gcsUri_ = gcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.mimeType_ = mimeType_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.turnIndex_ = turnIndex_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSessionArtifact) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSessionArtifact) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSessionArtifact other) { + if (other == com.google.cloud.ces.v1beta.AssistantSessionArtifact.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getMimeType().isEmpty()) { + mimeType_ = other.mimeType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getTurnIndex() != 0) { + setTurnIndex(other.getTurnIndex()); + } + 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: + { + id_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + gcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + mimeType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + turnIndex_ = input.readInt32(); + 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 id_ = ""; + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearId() { + id_ = getDefaultInstance().getId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The unique identifier of the artifact within the session.
+     * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The Cloud Storage object holding the artifact content.
+     * Example:
+     * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+     * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object mimeType_ = ""; + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + public java.lang.String getMimeType() { + java.lang.Object ref = mimeType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + mimeType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + public com.google.protobuf.ByteString getMimeTypeBytes() { + java.lang.Object ref = mimeType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + mimeType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + mimeType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMimeType() { + mimeType_ = getDefaultInstance().getMimeType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The IANA media type of the artifact content, e.g.
+     * "text/markdown".
+     * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for mimeType to set. + * @return This builder for chaining. + */ + public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + mimeType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000010); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
+     * Output only. When the artifact was persisted.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private int turnIndex_; + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Index of the message in [AssistantSession.messages] whose turn
+     * produced the artifact, for placing the artifact chip when history is
+     * restored.
+     * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000020); + turnIndex_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSessionArtifact) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSessionArtifact) + private static final com.google.cloud.ces.v1beta.AssistantSessionArtifact DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSessionArtifact(); + } + + public static com.google.cloud.ces.v1beta.AssistantSessionArtifact getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSessionArtifact parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantSessionArtifact getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java new file mode 100644 index 000000000000..a02d0823de7b --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionArtifactOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSessionArtifactOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSessionArtifact) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The id. + */ + java.lang.String getId(); + + /** + * + * + *
+   * Output only. The unique identifier of the artifact within the session.
+   * 
+ * + * string id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Output only. The file name shown to the user, e.g. "hotel_booking_tdd.md".
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Output only. The Cloud Storage object holding the artifact content.
+   * Example:
+   * "gs://{project}-agent-assist-artifacts/agent-assist-generated/1_tdd.md"
+   * 
+ * + * string gcs_uri = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The mimeType. + */ + java.lang.String getMimeType(); + + /** + * + * + *
+   * Output only. The IANA media type of the artifact content, e.g.
+   * "text/markdown".
+   * 
+ * + * string mime_type = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for mimeType. + */ + com.google.protobuf.ByteString getMimeTypeBytes(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. When the artifact was persisted.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Index of the message in [AssistantSession.messages] whose turn
+   * produced the artifact, for placing the artifact chip when history is
+   * restored.
+   * 
+ * + * int32 turn_index = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The turnIndex. + */ + int getTurnIndex(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java new file mode 100644 index 000000000000..b1c8c9165bbd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionName.java @@ -0,0 +1,272 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AssistantSessionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_APP_ASSISTANT_SESSION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String app; + private final String assistantSession; + + @Deprecated + protected AssistantSessionName() { + project = null; + location = null; + app = null; + assistantSession = null; + } + + private AssistantSessionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + app = Preconditions.checkNotNull(builder.getApp()); + assistantSession = Preconditions.checkNotNull(builder.getAssistantSession()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAssistantSession() { + return assistantSession; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AssistantSessionName of( + String project, String location, String app, String assistantSession) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAssistantSession(assistantSession) + .build(); + } + + public static String format( + String project, String location, String app, String assistantSession) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setApp(app) + .setAssistantSession(assistantSession) + .build() + .toString(); + } + + public static @Nullable AssistantSessionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_APP_ASSISTANT_SESSION.validatedMatch( + formattedString, "AssistantSessionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("app"), + matchMap.get("assistant_session")); + } + + 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<@Nullable AssistantSessionName> values) { + List list = new ArrayList<>(values.size()); + for (AssistantSessionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_APP_ASSISTANT_SESSION.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 (app != null) { + fieldMapBuilder.put("app", app); + } + if (assistantSession != null) { + fieldMapBuilder.put("assistant_session", assistantSession); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_APP_ASSISTANT_SESSION.instantiate( + "project", + project, + "location", + location, + "app", + app, + "assistant_session", + assistantSession); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AssistantSessionName that = ((AssistantSessionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.app, that.app) + && Objects.equals(this.assistantSession, that.assistantSession); + } + 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(app); + h *= 1000003; + h ^= Objects.hashCode(assistantSession); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}. + */ + public static class Builder { + private String project; + private String location; + private String app; + private String assistantSession; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getApp() { + return app; + } + + public String getAssistantSession() { + return assistantSession; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setApp(String app) { + this.app = app; + return this; + } + + public Builder setAssistantSession(String assistantSession) { + this.assistantSession = assistantSession; + return this; + } + + private Builder(AssistantSessionName assistantSessionName) { + this.project = assistantSessionName.project; + this.location = assistantSessionName.location; + this.app = assistantSessionName.app; + this.assistantSession = assistantSessionName.assistantSession; + } + + public AssistantSessionName build() { + return new AssistantSessionName(this); + } + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java new file mode 100644 index 000000000000..040fb5a95600 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionOrBuilder.java @@ -0,0 +1,502 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. Identifier. The unique identifier of the session.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER, (.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestor. + */ + java.lang.String getRequestor(); + + /** + * + * + *
+   * Output only. The user who initiated the session.
+   * 
+ * + * string requestor = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestor. + */ + com.google.protobuf.ByteString getRequestorBytes(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMessagesList(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessage getMessages(int index); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMessagesCount(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMessagesOrBuilderList(); + + /** + * + * + *
+   * Optional. History of messages in the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getMessagesOrBuilder(int index); + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
+   * Output only. The status of the assistant session.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AssistantSessionState state = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.ces.v1beta.AssistantSessionState getState(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was created.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
+   * Output only. The time the assistant session was last updated.
+   * 
+ * + * .google.protobuf.Timestamp update_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the userResponseSuggestions field is set. + */ + boolean hasUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The userResponseSuggestions. + */ + com.google.cloud.ces.v1beta.UserResponseSuggestions getUserResponseSuggestions(); + + /** + * + * + *
+   * Output only. Suggested user responses from the assistant agent.
+   * 
+ * + * + * .google.cloud.ces.v1beta.UserResponseSuggestions user_response_suggestions = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.UserResponseSuggestionsOrBuilder + getUserResponseSuggestionsOrBuilder(); + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
+   * Optional. The display name of the assistant session.
+   * 
+ * + * string display_name = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getArtifactsList(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.AssistantSessionArtifact getArtifacts(int index); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getArtifactsCount(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getArtifactsOrBuilderList(); + + /** + * + * + *
+   * Output only. Document artifacts (e.g. generated TDDs in markdown) produced
+   * by the assistant in this session. Pointers only; the file content lives in
+   * the customer's Cloud Storage bucket.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantSessionArtifact artifacts = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.AssistantSessionArtifactOrBuilder getArtifactsOrBuilder(int index); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the sessionCheckpoint field is set. + */ + boolean hasSessionCheckpoint(); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sessionCheckpoint. + */ + com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint(); + + /** + * + * + *
+   * Output only. Session checkpoint containing user intent and rolling history
+   * summary.
+   * 
+ * + * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the activeTurn field is set. + */ + boolean hasActiveTurn(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The activeTurn. + */ + com.google.cloud.ces.v1beta.ActiveTurnInfo getActiveTurn(); + + /** + * + * + *
+   * Output only. Attachment info for this session's currently running turn.
+   * Unset when no turn is running.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ActiveTurnInfo active_turn = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.ActiveTurnInfoOrBuilder getActiveTurnOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java new file mode 100644 index 000000000000..9b05120680d0 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSessionState.java @@ -0,0 +1,221 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * The status of the assistant session.
+ * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSessionState} + */ +@com.google.protobuf.Generated +public enum AssistantSessionState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * The default value. This value is used if the status is not specified.
+   * 
+ * + * ASSISTANT_SESSION_STATE_UNSPECIFIED = 0; + */ + ASSISTANT_SESSION_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * The assistant agent is processing the request as a long running task.
+   * 
+ * + * PROCESSING = 1; + */ + PROCESSING(1), + /** + * + * + *
+   * The assistant agent is idle and does not have any pending requests or
+   * response.
+   * 
+ * + * IDLE = 2; + */ + IDLE(2), + /** + * + * + *
+   * The assistant agent is done processing a long running task and has a
+   * response ready for the user.
+   * 
+ * + * PENDING_REVIEW = 3; + */ + PENDING_REVIEW(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSessionState"); + } + + /** + * + * + *
+   * The default value. This value is used if the status is not specified.
+   * 
+ * + * ASSISTANT_SESSION_STATE_UNSPECIFIED = 0; + */ + public static final int ASSISTANT_SESSION_STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+   * The assistant agent is processing the request as a long running task.
+   * 
+ * + * PROCESSING = 1; + */ + public static final int PROCESSING_VALUE = 1; + + /** + * + * + *
+   * The assistant agent is idle and does not have any pending requests or
+   * response.
+   * 
+ * + * IDLE = 2; + */ + public static final int IDLE_VALUE = 2; + + /** + * + * + *
+   * The assistant agent is done processing a long running task and has a
+   * response ready for the user.
+   * 
+ * + * PENDING_REVIEW = 3; + */ + public static final int PENDING_REVIEW_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 AssistantSessionState 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 AssistantSessionState forNumber(int value) { + switch (value) { + case 0: + return ASSISTANT_SESSION_STATE_UNSPECIFIED; + case 1: + return PROCESSING; + case 2: + return IDLE; + case 3: + return PENDING_REVIEW; + 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 AssistantSessionState findValueByNumber(int number) { + return AssistantSessionState.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final AssistantSessionState[] VALUES = values(); + + public static AssistantSessionState 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 AssistantSessionState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSessionState) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java new file mode 100644 index 000000000000..3e393cc10bf2 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestion.java @@ -0,0 +1,3449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A single personalized onboarding suggestion chip for Arc's
+ * zero state.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion} + */ +@com.google.protobuf.Generated +public final class AssistantSuggestion extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSuggestion) + AssistantSuggestionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AssistantSuggestion"); + } + + // Use AssistantSuggestion.newBuilder() to construct. + private AssistantSuggestion(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AssistantSuggestion() { + suggestionId_ = ""; + label_ = ""; + rationale_ = ""; + icon_ = 0; + source_ = 0; + candidateType_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder.class); + } + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSuggestion.Icon} + */ + public enum Icon implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified icon.
+     * 
+ * + * ICON_UNSPECIFIED = 0; + */ + ICON_UNSPECIFIED(0), + /** + * + * + *
+     * Resume a previous session.
+     * 
+ * + * RESUME = 1; + */ + RESUME(1), + /** + * + * + *
+     * Build something new.
+     * 
+ * + * BUILD = 2; + */ + BUILD(2), + /** + * + * + *
+     * Evaluation-related suggestion.
+     * 
+ * + * EVALUATE = 3; + */ + EVALUATE(3), + /** + * + * + *
+     * Deployment-related suggestion.
+     * 
+ * + * DEPLOY = 4; + */ + DEPLOY(4), + /** + * + * + *
+     * Exploration / discovery suggestion.
+     * 
+ * + * EXPLORE = 5; + */ + EXPLORE(5), + /** + * + * + *
+     * Fix an error or failing state.
+     * 
+ * + * FIX = 6; + */ + FIX(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Icon"); + } + + /** + * + * + *
+     * Unspecified icon.
+     * 
+ * + * ICON_UNSPECIFIED = 0; + */ + public static final int ICON_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Resume a previous session.
+     * 
+ * + * RESUME = 1; + */ + public static final int RESUME_VALUE = 1; + + /** + * + * + *
+     * Build something new.
+     * 
+ * + * BUILD = 2; + */ + public static final int BUILD_VALUE = 2; + + /** + * + * + *
+     * Evaluation-related suggestion.
+     * 
+ * + * EVALUATE = 3; + */ + public static final int EVALUATE_VALUE = 3; + + /** + * + * + *
+     * Deployment-related suggestion.
+     * 
+ * + * DEPLOY = 4; + */ + public static final int DEPLOY_VALUE = 4; + + /** + * + * + *
+     * Exploration / discovery suggestion.
+     * 
+ * + * EXPLORE = 5; + */ + public static final int EXPLORE_VALUE = 5; + + /** + * + * + *
+     * Fix an error or failing state.
+     * 
+ * + * FIX = 6; + */ + public static final int FIX_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 Icon 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 Icon forNumber(int value) { + switch (value) { + case 0: + return ICON_UNSPECIFIED; + case 1: + return RESUME; + case 2: + return BUILD; + case 3: + return EVALUATE; + case 4: + return DEPLOY; + case 5: + return EXPLORE; + case 6: + return FIX; + 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 Icon findValueByNumber(int number) { + return Icon.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.getDescriptor().getEnumTypes().get(0); + } + + private static final Icon[] VALUES = values(); + + public static Icon 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 Icon(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSuggestion.Icon) + } + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.AssistantSuggestion.Source} + */ + public enum Source implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + SOURCE_UNSPECIFIED(0), + /** + * + * + *
+     * Deterministic rule-table candidate with template phrasing.
+     * 
+ * + * RULE = 1; + */ + RULE(1), + /** + * + * + *
+     * Rule-table candidate re-ranked and phrased by the LLM phrasing step.
+     * 
+ * + * LLM_RANKED = 2; + */ + LLM_RANKED(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Source"); + } + + /** + * + * + *
+     * Unspecified source.
+     * 
+ * + * SOURCE_UNSPECIFIED = 0; + */ + public static final int SOURCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Deterministic rule-table candidate with template phrasing.
+     * 
+ * + * RULE = 1; + */ + public static final int RULE_VALUE = 1; + + /** + * + * + *
+     * Rule-table candidate re-ranked and phrased by the LLM phrasing step.
+     * 
+ * + * LLM_RANKED = 2; + */ + public static final int LLM_RANKED_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 Source 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 Source forNumber(int value) { + switch (value) { + case 0: + return SOURCE_UNSPECIFIED; + case 1: + return RULE; + case 2: + return LLM_RANKED; + 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 Source findValueByNumber(int number) { + return Source.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.getDescriptor().getEnumTypes().get(1); + } + + private static final Source[] VALUES = values(); + + public static Source 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 Source(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.AssistantSuggestion.Source) + } + + public interface LoadSessionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + java.lang.String getAssistantSessionId(); + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + com.google.protobuf.ByteString getAssistantSessionIdBytes(); + } + + /** + * + * + *
+   * Parameters for the load_session action.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion.LoadSession} + */ + public static final class LoadSession extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + LoadSessionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "LoadSession"); + } + + // Use LoadSession.newBuilder() to construct. + private LoadSession(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LoadSession() { + assistantSessionId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder.class); + } + + public static final int ASSISTANT_SESSION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSessionId_ = ""; + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + @java.lang.Override + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } + } + + /** + * + * + *
+     * Identifier of the assistant session to open (the final segment of the
+     * AssistantSession resource name).
+     * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = 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.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, assistantSessionId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, assistantSessionId_); + } + 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.ces.v1beta.AssistantSuggestion.LoadSession)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession other = + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) obj; + + if (!getAssistantSessionId().equals(other.getAssistantSessionId())) 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) + ASSISTANT_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession 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.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + 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.ces.v1beta.AssistantSuggestion.LoadSession parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantSuggestion.LoadSession prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Parameters for the load_session action.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion.LoadSession} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + assistantSessionId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_LoadSession_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession build() { + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession buildPartial() { + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result = + new com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.assistantSessionId_ = assistantSessionId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession other) { + if (other + == com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance()) + return this; + if (!other.getAssistantSessionId().isEmpty()) { + assistantSessionId_ = other.assistantSessionId_; + 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: + { + assistantSessionId_ = 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 assistantSessionId_ = ""; + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return The assistantSessionId. + */ + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return The bytes for assistantSessionId. + */ + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @param value The assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearAssistantSessionId() { + assistantSessionId_ = getDefaultInstance().getAssistantSessionId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Identifier of the assistant session to open (the final segment of the
+       * AssistantSession resource name).
+       * 
+ * + * string assistant_session_id = 1; + * + * @param value The bytes for assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSessionId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) + private static final com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession(); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LoadSession parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantSuggestion.LoadSession getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int actionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object action_; + + public enum ActionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + SEED_PROMPT(5), + LOAD_SESSION(6), + SEND_MESSAGE(7), + ACTION_NOT_SET(0); + private final int value; + + private ActionCase(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 ActionCase valueOf(int value) { + return forNumber(value); + } + + public static ActionCase forNumber(int value) { + switch (value) { + case 5: + return SEED_PROMPT; + case 6: + return LOAD_SESSION; + case 7: + return SEND_MESSAGE; + case 0: + return ACTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public static final int SEED_PROMPT_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + public boolean hasSeedPrompt() { + return actionCase_ == 5; + } + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + public java.lang.String getSeedPrompt() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + 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(); + if (actionCase_ == 5) { + action_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + public com.google.protobuf.ByteString getSeedPromptBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 5) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOAD_SESSION_FIELD_NUMBER = 6; + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + @java.lang.Override + public boolean hasLoadSession() { + return actionCase_ == 6; + } + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession() { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder + getLoadSessionOrBuilder() { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + + public static final int SEND_MESSAGE_FIELD_NUMBER = 7; + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + public boolean hasSendMessage() { + return actionCase_ == 7; + } + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + public java.lang.String getSendMessage() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + 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(); + if (actionCase_ == 7) { + action_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + public com.google.protobuf.ByteString getSendMessageBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 7) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUGGESTION_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object suggestionId_ = ""; + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + @java.lang.Override + public java.lang.String getSuggestionId() { + java.lang.Object ref = suggestionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSuggestionIdBytes() { + java.lang.Object ref = suggestionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LABEL_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object label_ = ""; + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The label. + */ + @java.lang.Override + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } + } + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RATIONALE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object rationale_ = ""; + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + @java.lang.Override + public java.lang.String getRationale() { + java.lang.Object ref = rationale_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rationale_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRationaleBytes() { + java.lang.Object ref = rationale_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rationale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ICON_FIELD_NUMBER = 4; + private int icon_ = 0; + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + @java.lang.Override + public int getIconValue() { + return icon_; + } + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.forNumber(icon_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.UNRECOGNIZED + : result; + } + + public static final int SOURCE_FIELD_NUMBER = 8; + private int source_ = 0; + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Source result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Source.forNumber(source_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Source.UNRECOGNIZED + : result; + } + + public static final int CANDIDATE_TYPE_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object candidateType_ = ""; + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + @java.lang.Override + public java.lang.String getCandidateType() { + java.lang.Object ref = candidateType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateType_ = s; + return s; + } + } + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCandidateTypeBytes() { + java.lang.Object ref = candidateType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateType_ = 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.GeneratedMessage.isStringEmpty(suggestionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, suggestionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rationale_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, rationale_); + } + if (icon_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.ICON_UNSPECIFIED.getNumber()) { + output.writeEnum(4, icon_); + } + if (actionCase_ == 5) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, action_); + } + if (actionCase_ == 6) { + output.writeMessage(6, (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_); + } + if (actionCase_ == 7) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, action_); + } + if (source_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Source.SOURCE_UNSPECIFIED.getNumber()) { + output.writeEnum(8, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candidateType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, candidateType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(suggestionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, suggestionId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(label_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, label_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rationale_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, rationale_); + } + if (icon_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.ICON_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, icon_); + } + if (actionCase_ == 5) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, action_); + } + if (actionCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_); + } + if (actionCase_ == 7) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(7, action_); + } + if (source_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.Source.SOURCE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, source_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(candidateType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, candidateType_); + } + 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.ces.v1beta.AssistantSuggestion)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.AssistantSuggestion other = + (com.google.cloud.ces.v1beta.AssistantSuggestion) obj; + + if (!getSuggestionId().equals(other.getSuggestionId())) return false; + if (!getLabel().equals(other.getLabel())) return false; + if (!getRationale().equals(other.getRationale())) return false; + if (icon_ != other.icon_) return false; + if (source_ != other.source_) return false; + if (!getCandidateType().equals(other.getCandidateType())) return false; + if (!getActionCase().equals(other.getActionCase())) return false; + switch (actionCase_) { + case 5: + if (!getSeedPrompt().equals(other.getSeedPrompt())) return false; + break; + case 6: + if (!getLoadSession().equals(other.getLoadSession())) return false; + break; + case 7: + if (!getSendMessage().equals(other.getSendMessage())) 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_ID_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionId().hashCode(); + hash = (37 * hash) + LABEL_FIELD_NUMBER; + hash = (53 * hash) + getLabel().hashCode(); + hash = (37 * hash) + RATIONALE_FIELD_NUMBER; + hash = (53 * hash) + getRationale().hashCode(); + hash = (37 * hash) + ICON_FIELD_NUMBER; + hash = (53 * hash) + icon_; + hash = (37 * hash) + SOURCE_FIELD_NUMBER; + hash = (53 * hash) + source_; + hash = (37 * hash) + CANDIDATE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getCandidateType().hashCode(); + switch (actionCase_) { + case 5: + hash = (37 * hash) + SEED_PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getSeedPrompt().hashCode(); + break; + case 6: + hash = (37 * hash) + LOAD_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getLoadSession().hashCode(); + break; + case 7: + hash = (37 * hash) + SEND_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getSendMessage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion 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.ces.v1beta.AssistantSuggestion parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + 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.ces.v1beta.AssistantSuggestion parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.AssistantSuggestion prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A single personalized onboarding suggestion chip for Arc's
+   * zero state.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.AssistantSuggestion} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.AssistantSuggestion) + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.AssistantSuggestion.class, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.AssistantSuggestion.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (loadSessionBuilder_ != null) { + loadSessionBuilder_.clear(); + } + suggestionId_ = ""; + label_ = ""; + rationale_ = ""; + icon_ = 0; + source_ = 0; + candidateType_ = ""; + actionCase_ = 0; + action_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_AssistantSuggestion_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion build() { + com.google.cloud.ces.v1beta.AssistantSuggestion result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion buildPartial() { + com.google.cloud.ces.v1beta.AssistantSuggestion result = + new com.google.cloud.ces.v1beta.AssistantSuggestion(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.AssistantSuggestion result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.suggestionId_ = suggestionId_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.label_ = label_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.rationale_ = rationale_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.icon_ = icon_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.source_ = source_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.candidateType_ = candidateType_; + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.AssistantSuggestion result) { + result.actionCase_ = actionCase_; + result.action_ = this.action_; + if (actionCase_ == 6 && loadSessionBuilder_ != null) { + result.action_ = loadSessionBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.AssistantSuggestion) { + return mergeFrom((com.google.cloud.ces.v1beta.AssistantSuggestion) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.AssistantSuggestion other) { + if (other == com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()) + return this; + if (!other.getSuggestionId().isEmpty()) { + suggestionId_ = other.suggestionId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getLabel().isEmpty()) { + label_ = other.label_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.getRationale().isEmpty()) { + rationale_ = other.rationale_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (other.icon_ != 0) { + setIconValue(other.getIconValue()); + } + if (other.source_ != 0) { + setSourceValue(other.getSourceValue()); + } + if (!other.getCandidateType().isEmpty()) { + candidateType_ = other.candidateType_; + bitField0_ |= 0x00000100; + onChanged(); + } + switch (other.getActionCase()) { + case SEED_PROMPT: + { + actionCase_ = 5; + action_ = other.action_; + onChanged(); + break; + } + case LOAD_SESSION: + { + mergeLoadSession(other.getLoadSession()); + break; + } + case SEND_MESSAGE: + { + actionCase_ = 7; + action_ = other.action_; + onChanged(); + break; + } + case ACTION_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: + { + suggestionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + label_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + rationale_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 32: + { + icon_ = input.readEnum(); + bitField0_ |= 0x00000040; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + actionCase_ = 5; + action_ = s; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetLoadSessionFieldBuilder().getBuilder(), extensionRegistry); + actionCase_ = 6; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + actionCase_ = 7; + action_ = s; + break; + } // case 58 + case 64: + { + source_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + case 74: + { + candidateType_ = input.readStringRequireUtf8(); + 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 actionCase_ = 0; + private java.lang.Object action_; + + public ActionCase getActionCase() { + return ActionCase.forNumber(actionCase_); + } + + public Builder clearAction() { + actionCase_ = 0; + action_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + @java.lang.Override + public boolean hasSeedPrompt() { + return actionCase_ == 5; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + @java.lang.Override + public java.lang.String getSeedPrompt() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionCase_ == 5) { + action_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSeedPromptBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 5) { + ref = action_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 5) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @param value The seedPrompt to set. + * @return This builder for chaining. + */ + public Builder setSeedPrompt(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionCase_ = 5; + action_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @return This builder for chaining. + */ + public Builder clearSeedPrompt() { + if (actionCase_ == 5) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text; the user reviews and sends.
+     * 
+ * + * string seed_prompt = 5; + * + * @param value The bytes for seedPrompt to set. + * @return This builder for chaining. + */ + public Builder setSeedPromptBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionCase_ = 5; + action_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder> + loadSessionBuilder_; + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + @java.lang.Override + public boolean hasLoadSession() { + return actionCase_ == 6; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession() { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } else { + if (actionCase_ == 6) { + return loadSessionBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder setLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession value) { + if (loadSessionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + action_ = value; + onChanged(); + } else { + loadSessionBuilder_.setMessage(value); + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder setLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder builderForValue) { + if (loadSessionBuilder_ == null) { + action_ = builderForValue.build(); + onChanged(); + } else { + loadSessionBuilder_.setMessage(builderForValue.build()); + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder mergeLoadSession( + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession value) { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6 + && action_ + != com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession + .getDefaultInstance()) { + action_ = + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.newBuilder( + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_) + .mergeFrom(value) + .buildPartial(); + } else { + action_ = value; + } + onChanged(); + } else { + if (actionCase_ == 6) { + loadSessionBuilder_.mergeFrom(value); + } else { + loadSessionBuilder_.setMessage(value); + } + } + actionCase_ = 6; + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public Builder clearLoadSession() { + if (loadSessionBuilder_ == null) { + if (actionCase_ == 6) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + } else { + if (actionCase_ == 6) { + actionCase_ = 0; + action_ = null; + } + loadSessionBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder + getLoadSessionBuilder() { + return internalGetLoadSessionFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder + getLoadSessionOrBuilder() { + if ((actionCase_ == 6) && (loadSessionBuilder_ != null)) { + return loadSessionBuilder_.getMessageOrBuilder(); + } else { + if (actionCase_ == 6) { + return (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_; + } + return com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Open an existing assistant session.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder> + internalGetLoadSessionFieldBuilder() { + if (loadSessionBuilder_ == null) { + if (!(actionCase_ == 6)) { + action_ = + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.getDefaultInstance(); + } + loadSessionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder>( + (com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession) action_, + getParentForChildren(), + isClean()); + action_ = null; + } + actionCase_ = 6; + onChanged(); + return loadSessionBuilder_; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + @java.lang.Override + public boolean hasSendMessage() { + return actionCase_ == 7; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + @java.lang.Override + public java.lang.String getSendMessage() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (actionCase_ == 7) { + action_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSendMessageBytes() { + java.lang.Object ref = ""; + if (actionCase_ == 7) { + ref = action_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (actionCase_ == 7) { + action_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @param value The sendMessage to set. + * @return This builder for chaining. + */ + public Builder setSendMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + actionCase_ = 7; + action_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @return This builder for chaining. + */ + public Builder clearSendMessage() { + if (actionCase_ == 7) { + actionCase_ = 0; + action_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Prefill the composer with this text and submit immediately. Only used
+     * for quick-reply chips inside an active onboarding conversation.
+     * 
+ * + * string send_message = 7; + * + * @param value The bytes for sendMessage to set. + * @return This builder for chaining. + */ + public Builder setSendMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + actionCase_ = 7; + action_ = value; + onChanged(); + return this; + } + + private java.lang.Object suggestionId_ = ""; + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + public java.lang.String getSuggestionId() { + java.lang.Object ref = suggestionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + suggestionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + public com.google.protobuf.ByteString getSuggestionIdBytes() { + java.lang.Object ref = suggestionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + suggestionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @param value The suggestionId to set. + * @return This builder for chaining. + */ + public Builder setSuggestionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + suggestionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearSuggestionId() { + suggestionId_ = getDefaultInstance().getSuggestionId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Stable identifier for this suggestion, round-tripped by clients in
+     * interaction logging.
+     * 
+ * + * string suggestion_id = 1; + * + * @param value The bytes for suggestionId to set. + * @return This builder for chaining. + */ + public Builder setSuggestionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + suggestionId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object label_ = ""; + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return The label. + */ + public java.lang.String getLabel() { + java.lang.Object ref = label_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + label_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + public com.google.protobuf.ByteString getLabelBytes() { + java.lang.Object ref = label_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + label_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @param value The label to set. + * @return This builder for chaining. + */ + public Builder setLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @return This builder for chaining. + */ + public Builder clearLabel() { + label_ = getDefaultInstance().getLabel(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Chip label shown to the user (at most 60 characters).
+     * 
+ * + * string label = 2; + * + * @param value The bytes for label to set. + * @return This builder for chaining. + */ + public Builder setLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + label_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private java.lang.Object rationale_ = ""; + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + public java.lang.String getRationale() { + java.lang.Object ref = rationale_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rationale_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + public com.google.protobuf.ByteString getRationaleBytes() { + java.lang.Object ref = rationale_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rationale_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @param value The rationale to set. + * @return This builder for chaining. + */ + public Builder setRationale(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rationale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @return This builder for chaining. + */ + public Builder clearRationale() { + rationale_ = getDefaultInstance().getRationale(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional short explanation of why this suggestion is shown (tooltip /
+     * rationale popover).
+     * 
+ * + * string rationale = 3; + * + * @param value The bytes for rationale to set. + * @return This builder for chaining. + */ + public Builder setRationaleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rationale_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private int icon_ = 0; + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + @java.lang.Override + public int getIconValue() { + return icon_; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @param value The enum numeric value on the wire for icon to set. + * @return This builder for chaining. + */ + public Builder setIconValue(int value) { + icon_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.forNumber(icon_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Icon.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @param value The icon to set. + * @return This builder for chaining. + */ + public Builder setIcon(com.google.cloud.ces.v1beta.AssistantSuggestion.Icon value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000040; + icon_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Icon hint for the chip.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return This builder for chaining. + */ + public Builder clearIcon() { + bitField0_ = (bitField0_ & ~0x00000040); + icon_ = 0; + onChanged(); + return this; + } + + private int source_ = 0; + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + @java.lang.Override + public int getSourceValue() { + return source_; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @param value The enum numeric value on the wire for source to set. + * @return This builder for chaining. + */ + public Builder setSourceValue(int value) { + source_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource() { + com.google.cloud.ces.v1beta.AssistantSuggestion.Source result = + com.google.cloud.ces.v1beta.AssistantSuggestion.Source.forNumber(source_); + return result == null + ? com.google.cloud.ces.v1beta.AssistantSuggestion.Source.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @param value The source to set. + * @return This builder for chaining. + */ + public Builder setSource(com.google.cloud.ces.v1beta.AssistantSuggestion.Source value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + source_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * How this suggestion was produced.
+     * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return This builder for chaining. + */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000080); + source_ = 0; + onChanged(); + return this; + } + + private java.lang.Object candidateType_ = ""; + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + public java.lang.String getCandidateType() { + java.lang.Object ref = candidateType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + candidateType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + public com.google.protobuf.ByteString getCandidateTypeBytes() { + java.lang.Object ref = candidateType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + candidateType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @param value The candidateType to set. + * @return This builder for chaining. + */ + public Builder setCandidateType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + candidateType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @return This builder for chaining. + */ + public Builder clearCandidateType() { + candidateType_ = getDefaultInstance().getCandidateType(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
+     * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+     * for metrics.
+     * 
+ * + * string candidate_type = 9; + * + * @param value The bytes for candidateType to set. + * @return This builder for chaining. + */ + public Builder setCandidateTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + candidateType_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AssistantSuggestion) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.AssistantSuggestion) + private static final com.google.cloud.ces.v1beta.AssistantSuggestion DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.AssistantSuggestion(); + } + + public static com.google.cloud.ces.v1beta.AssistantSuggestion getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AssistantSuggestion parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.AssistantSuggestion getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java new file mode 100644 index 000000000000..0a98e8982dbd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AssistantSuggestionOrBuilder.java @@ -0,0 +1,310 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface AssistantSuggestionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.AssistantSuggestion) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return Whether the seedPrompt field is set. + */ + boolean hasSeedPrompt(); + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The seedPrompt. + */ + java.lang.String getSeedPrompt(); + + /** + * + * + *
+   * Prefill the composer with this text; the user reviews and sends.
+   * 
+ * + * string seed_prompt = 5; + * + * @return The bytes for seedPrompt. + */ + com.google.protobuf.ByteString getSeedPromptBytes(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return Whether the loadSession field is set. + */ + boolean hasLoadSession(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + * + * @return The loadSession. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSession getLoadSession(); + + /** + * + * + *
+   * Open an existing assistant session.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.LoadSession load_session = 6; + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.LoadSessionOrBuilder getLoadSessionOrBuilder(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return Whether the sendMessage field is set. + */ + boolean hasSendMessage(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The sendMessage. + */ + java.lang.String getSendMessage(); + + /** + * + * + *
+   * Prefill the composer with this text and submit immediately. Only used
+   * for quick-reply chips inside an active onboarding conversation.
+   * 
+ * + * string send_message = 7; + * + * @return The bytes for sendMessage. + */ + com.google.protobuf.ByteString getSendMessageBytes(); + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The suggestionId. + */ + java.lang.String getSuggestionId(); + + /** + * + * + *
+   * Stable identifier for this suggestion, round-tripped by clients in
+   * interaction logging.
+   * 
+ * + * string suggestion_id = 1; + * + * @return The bytes for suggestionId. + */ + com.google.protobuf.ByteString getSuggestionIdBytes(); + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The label. + */ + java.lang.String getLabel(); + + /** + * + * + *
+   * Chip label shown to the user (at most 60 characters).
+   * 
+ * + * string label = 2; + * + * @return The bytes for label. + */ + com.google.protobuf.ByteString getLabelBytes(); + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The rationale. + */ + java.lang.String getRationale(); + + /** + * + * + *
+   * Optional short explanation of why this suggestion is shown (tooltip /
+   * rationale popover).
+   * 
+ * + * string rationale = 3; + * + * @return The bytes for rationale. + */ + com.google.protobuf.ByteString getRationaleBytes(); + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The enum numeric value on the wire for icon. + */ + int getIconValue(); + + /** + * + * + *
+   * Icon hint for the chip.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Icon icon = 4; + * + * @return The icon. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.Icon getIcon(); + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The enum numeric value on the wire for source. + */ + int getSourceValue(); + + /** + * + * + *
+   * How this suggestion was produced.
+   * 
+ * + * .google.cloud.ces.v1beta.AssistantSuggestion.Source source = 8; + * + * @return The source. + */ + com.google.cloud.ces.v1beta.AssistantSuggestion.Source getSource(); + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The candidateType. + */ + java.lang.String getCandidateType(); + + /** + * + * + *
+   * Rule-table candidate type in kebab-case (e.g. "resume-pending-review"),
+   * for metrics.
+   * 
+ * + * string candidate_type = 9; + * + * @return The bytes for candidateType. + */ + com.google.protobuf.ByteString getCandidateTypeBytes(); + + com.google.cloud.ces.v1beta.AssistantSuggestion.ActionCase getActionCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java index f1019f57006b..c27499cfa657 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfig.java @@ -52,7 +52,9 @@ private AudioProcessingConfig(com.google.protobuf.GeneratedMessage.Builder bu super(builder); } - private AudioProcessingConfig() {} + private AudioProcessingConfig() { + customVoiceSamples_ = java.util.Collections.emptyList(); + } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.cloud.ces.v1beta.AppProto @@ -434,6 +436,93 @@ public com.google.cloud.ces.v1beta.AmbientSoundConfigOrBuilder getAmbientSoundCo : ambientSoundConfig_; } + public static final int CUSTOM_VOICE_SAMPLES_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List customVoiceSamples_; + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCustomVoiceSamplesList() { + return customVoiceSamples_; + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCustomVoiceSamplesOrBuilderList() { + return customVoiceSamples_; + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCustomVoiceSamplesCount() { + return customVoiceSamples_.size(); + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index) { + return customVoiceSamples_.get(index); + } + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder( + int index) { + return customVoiceSamples_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -462,6 +551,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(5, getAmbientSoundConfig()); } + for (int i = 0; i < customVoiceSamples_.size(); i++) { + output.writeMessage(10, customVoiceSamples_.get(i)); + } getUnknownFields().writeTo(output); } @@ -493,6 +585,10 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAmbientSoundConfig()); } + for (int i = 0; i < customVoiceSamples_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(10, customVoiceSamples_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -523,6 +619,7 @@ public boolean equals(final java.lang.Object obj) { if (hasAmbientSoundConfig()) { if (!getAmbientSoundConfig().equals(other.getAmbientSoundConfig())) return false; } + if (!getCustomVoiceSamplesList().equals(other.getCustomVoiceSamplesList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -550,6 +647,10 @@ public int hashCode() { hash = (37 * hash) + AMBIENT_SOUND_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAmbientSoundConfig().hashCode(); } + if (getCustomVoiceSamplesCount() > 0) { + hash = (37 * hash) + CUSTOM_VOICE_SAMPLES_FIELD_NUMBER; + hash = (53 * hash) + getCustomVoiceSamplesList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -717,6 +818,7 @@ private void maybeForceBuilderInitialization() { internalGetBargeInConfigFieldBuilder(); internalGetInactivityTimeoutFieldBuilder(); internalGetAmbientSoundConfigFieldBuilder(); + internalGetCustomVoiceSamplesFieldBuilder(); } } @@ -740,6 +842,13 @@ public Builder clear() { ambientSoundConfigBuilder_.dispose(); ambientSoundConfigBuilder_ = null; } + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamples_ = java.util.Collections.emptyList(); + } else { + customVoiceSamples_ = null; + customVoiceSamplesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); return this; } @@ -767,6 +876,7 @@ public com.google.cloud.ces.v1beta.AudioProcessingConfig build() { public com.google.cloud.ces.v1beta.AudioProcessingConfig buildPartial() { com.google.cloud.ces.v1beta.AudioProcessingConfig result = new com.google.cloud.ces.v1beta.AudioProcessingConfig(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -774,6 +884,19 @@ public com.google.cloud.ces.v1beta.AudioProcessingConfig buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.AudioProcessingConfig result) { + if (customVoiceSamplesBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + customVoiceSamples_ = java.util.Collections.unmodifiableList(customVoiceSamples_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.customVoiceSamples_ = customVoiceSamples_; + } else { + result.customVoiceSamples_ = customVoiceSamplesBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.ces.v1beta.AudioProcessingConfig result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { @@ -829,6 +952,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.AudioProcessingConfig other if (other.hasAmbientSoundConfig()) { mergeAmbientSoundConfig(other.getAmbientSoundConfig()); } + if (customVoiceSamplesBuilder_ == null) { + if (!other.customVoiceSamples_.isEmpty()) { + if (customVoiceSamples_.isEmpty()) { + customVoiceSamples_ = other.customVoiceSamples_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.addAll(other.customVoiceSamples_); + } + onChanged(); + } + } else { + if (!other.customVoiceSamples_.isEmpty()) { + if (customVoiceSamplesBuilder_.isEmpty()) { + customVoiceSamplesBuilder_.dispose(); + customVoiceSamplesBuilder_ = null; + customVoiceSamples_ = other.customVoiceSamples_; + bitField0_ = (bitField0_ & ~0x00000010); + customVoiceSamplesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCustomVoiceSamplesFieldBuilder() + : null; + } else { + customVoiceSamplesBuilder_.addAllMessages(other.customVoiceSamples_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -891,6 +1041,19 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 82: + { + com.google.cloud.ces.v1beta.CustomVoiceSample m = + input.readMessage( + com.google.cloud.ces.v1beta.CustomVoiceSample.parser(), extensionRegistry); + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(m); + } else { + customVoiceSamplesBuilder_.addMessage(m); + } + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1918,6 +2081,420 @@ public com.google.cloud.ces.v1beta.AmbientSoundConfig.Builder getAmbientSoundCon return ambientSoundConfigBuilder_; } + private java.util.List customVoiceSamples_ = + java.util.Collections.emptyList(); + + private void ensureCustomVoiceSamplesIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + customVoiceSamples_ = + new java.util.ArrayList( + customVoiceSamples_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder> + customVoiceSamplesBuilder_; + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesList() { + if (customVoiceSamplesBuilder_ == null) { + return java.util.Collections.unmodifiableList(customVoiceSamples_); + } else { + return customVoiceSamplesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCustomVoiceSamplesCount() { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.size(); + } else { + return customVoiceSamplesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index) { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.get(index); + } else { + return customVoiceSamplesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.set(index, value); + onChanged(); + } else { + customVoiceSamplesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.set(index, builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples(com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(value); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample value) { + if (customVoiceSamplesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(index, value); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCustomVoiceSamples( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Builder builderForValue) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.add(index, builderForValue.build()); + onChanged(); + } else { + customVoiceSamplesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCustomVoiceSamples( + java.lang.Iterable values) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customVoiceSamples_); + onChanged(); + } else { + customVoiceSamplesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomVoiceSamples() { + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamples_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + customVoiceSamplesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomVoiceSamples(int index) { + if (customVoiceSamplesBuilder_ == null) { + ensureCustomVoiceSamplesIsMutable(); + customVoiceSamples_.remove(index); + onChanged(); + } else { + customVoiceSamplesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder getCustomVoiceSamplesBuilder( + int index) { + return internalGetCustomVoiceSamplesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder( + int index) { + if (customVoiceSamplesBuilder_ == null) { + return customVoiceSamples_.get(index); + } else { + return customVoiceSamplesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesOrBuilderList() { + if (customVoiceSamplesBuilder_ != null) { + return customVoiceSamplesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customVoiceSamples_); + } + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder addCustomVoiceSamplesBuilder() { + return internalGetCustomVoiceSamplesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Builder addCustomVoiceSamplesBuilder( + int index) { + return internalGetCustomVoiceSamplesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. Configures custom voice samples for voice cloning.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCustomVoiceSamplesBuilderList() { + return internalGetCustomVoiceSamplesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder> + internalGetCustomVoiceSamplesFieldBuilder() { + if (customVoiceSamplesBuilder_ == null) { + customVoiceSamplesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder>( + customVoiceSamples_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + customVoiceSamples_ = null; + } + return customVoiceSamplesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.AudioProcessingConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java index 07262e068887..d3e39f944386 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AudioProcessingConfigOrBuilder.java @@ -284,4 +284,70 @@ com.google.cloud.ces.v1beta.SynthesizeSpeechConfig getSynthesizeSpeechConfigsOrT * */ com.google.cloud.ces.v1beta.AmbientSoundConfigOrBuilder getAmbientSoundConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCustomVoiceSamplesList(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample getCustomVoiceSamples(int index); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomVoiceSamplesCount(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getCustomVoiceSamplesOrBuilderList(); + + /** + * + * + *
+   * Optional. Configures custom voice samples for voice cloning.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample custom_voice_samples = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder getCustomVoiceSamplesOrBuilder(int index); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java index ce1348264bf0..bf4b90938d46 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfig.java @@ -87,7 +87,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Override @@ -465,7 +465,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Override @@ -490,7 +490,7 @@ public boolean getDisableBargeIn() { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @param value The disableBargeIn to set. * @return This builder for chaining. */ @@ -519,7 +519,7 @@ public Builder setDisableBargeIn(boolean value) { * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java index 4bf7d5d18380..9cd6a0e740ee 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/BargeInConfigOrBuilder.java @@ -42,7 +42,7 @@ public interface BargeInConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.BargeInConfig.disable_barge_in is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=361 + * google/cloud/ces/v1beta/app.proto;l=458 * @return The disableBargeIn. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java new file mode 100644 index 000000000000..fed9eb7b1afc --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequest.java @@ -0,0 +1,793 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request to cancel an assistant session's in-flight turn.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnRequest} + */ +@com.google.protobuf.Generated +public final class CancelAssistantTurnRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + CancelAssistantTurnRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CancelAssistantTurnRequest"); + } + + // Use CancelAssistantTurnRequest.newBuilder() to construct. + private CancelAssistantTurnRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CancelAssistantTurnRequest() { + name_ = ""; + turnId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * 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. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * 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 TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + 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.ces.v1beta.CancelAssistantTurnRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest other = + (com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getTurnId().equals(other.getTurnId())) 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) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest 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.ces.v1beta.CancelAssistantTurnRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + 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.ces.v1beta.CancelAssistantTurnRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.CancelAssistantTurnRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request to cancel an assistant session's in-flight turn.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + com.google.cloud.ces.v1beta.CancelAssistantTurnRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + turnId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest build() { + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnRequest buildPartial() { + com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result = + new com.google.cloud.ces.v1beta.CancelAssistantTurnRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.CancelAssistantTurnRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CancelAssistantTurnRequest other) { + if (other == com.google.cloud.ces.v1beta.CancelAssistantTurnRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + 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: + { + turnId_ = 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 assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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. The assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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. The assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session whose in-flight turn to cancel.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session whose in-flight turn to cancel.
+     * 
+ * + * 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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The turn to cancel; empty cancels whichever turn is running. A
+     * cancel naming a turn that is no longer the running one is a no-op.
+     * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + private static final com.google.cloud.ces.v1beta.CancelAssistantTurnRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CancelAssistantTurnRequest(); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelAssistantTurnRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.CancelAssistantTurnRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java new file mode 100644 index 000000000000..6a4d78c44754 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnRequestOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CancelAssistantTurnRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CancelAssistantTurnRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The assistant session whose in-flight turn to cancel.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
+   * Optional. The turn to cancel; empty cancels whichever turn is running. A
+   * cancel naming a turn that is no longer the running one is a no-op.
+   * 
+ * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java new file mode 100644 index 000000000000..92f535660438 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponse.java @@ -0,0 +1,508 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response for CancelAssistantTurn.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnResponse} + */ +@com.google.protobuf.Generated +public final class CancelAssistantTurnResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + CancelAssistantTurnResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CancelAssistantTurnResponse"); + } + + // Use CancelAssistantTurnResponse.newBuilder() to construct. + private CancelAssistantTurnResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CancelAssistantTurnResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.Builder.class); + } + + public static final int CANCELLED_FIELD_NUMBER = 1; + private boolean cancelled_ = false; + + /** + * + * + *
+   * Whether an in-flight turn was found and asked to stop (directly on this
+   * task, or through an epoch preemption for a turn hosted elsewhere).
+   * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + @java.lang.Override + public boolean getCancelled() { + return cancelled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (cancelled_ != false) { + output.writeBool(1, cancelled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (cancelled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, cancelled_); + } + 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.ces.v1beta.CancelAssistantTurnResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse other = + (com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) obj; + + if (getCancelled() != other.getCancelled()) 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) + CANCELLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCancelled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse 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.ces.v1beta.CancelAssistantTurnResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + 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.ces.v1beta.CancelAssistantTurnResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.CancelAssistantTurnResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response for CancelAssistantTurn.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CancelAssistantTurnResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + com.google.cloud.ces.v1beta.CancelAssistantTurnResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.class, + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + cancelled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_CancelAssistantTurnResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse build() { + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CancelAssistantTurnResponse buildPartial() { + com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result = + new com.google.cloud.ces.v1beta.CancelAssistantTurnResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CancelAssistantTurnResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.cancelled_ = cancelled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.CancelAssistantTurnResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CancelAssistantTurnResponse other) { + if (other == com.google.cloud.ces.v1beta.CancelAssistantTurnResponse.getDefaultInstance()) + return this; + if (other.getCancelled() != false) { + setCancelled(other.getCancelled()); + } + 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: + { + cancelled_ = 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 cancelled_; + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + @java.lang.Override + public boolean getCancelled() { + return cancelled_; + } + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @param value The cancelled to set. + * @return This builder for chaining. + */ + public Builder setCancelled(boolean value) { + + cancelled_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Whether an in-flight turn was found and asked to stop (directly on this
+     * task, or through an epoch preemption for a turn hosted elsewhere).
+     * 
+ * + * bool cancelled = 1; + * + * @return This builder for chaining. + */ + public Builder clearCancelled() { + bitField0_ = (bitField0_ & ~0x00000001); + cancelled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + private static final com.google.cloud.ces.v1beta.CancelAssistantTurnResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CancelAssistantTurnResponse(); + } + + public static com.google.cloud.ces.v1beta.CancelAssistantTurnResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CancelAssistantTurnResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.CancelAssistantTurnResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java new file mode 100644 index 000000000000..77a73aa81680 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CancelAssistantTurnResponseOrBuilder.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CancelAssistantTurnResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CancelAssistantTurnResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Whether an in-flight turn was found and asked to stop (directly on this
+   * task, or through an epoch preemption for a turn hosted elsewhere).
+   * 
+ * + * bool cancelled = 1; + * + * @return The cancelled. + */ + boolean getCancelled(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java index 583bb8ebbc06..06c3c72e5ed2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChannelProfileProto.java @@ -56,6 +56,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Deployment_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Deployment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -97,7 +101,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007PENDING\020\001\022\013\n" + "\007RUNNING\020\002\022\010\n" + "\004DONE\020\003\022\013\n" - + "\007EXPIRED\020\004\"\303\005\n\n" + + "\007EXPIRED\020\004\"\213\010\n\n" + "Deployment\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\010 \001(\tB\004\342A\001\002\022;\n" @@ -115,22 +119,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024whatsapp_credentials\030\n" + " \001(\0132,.google.cloud.ces.v1beta.WhatsAppCredentialsB\005\342A\002\001\004\022S\n" + "\025instagram_credentials\030\013 \001(\013" - + "2-.google.cloud.ces.v1beta.InstagramCredentialsB\005\342A\002\001\004:\211\001\352A\205\001\n" - + "\035ces.googleapis.com/Deployment\022Kprojects/{project}/locatio" - + "ns/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" - + "deployment\"\276\001\n" + + "2-.google.cloud.ces.v1beta.InstagramCredentialsB\005\342A\002\001\004\022D\n" + + "\016model_settings\030\014 \001(\0132&" + + ".google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022D\n" + + "\010modality\030\r" + + " \001(\0162,.google.cloud.ces.v1beta.Deployment.ModalityB\004\342A\001\001\022Y\n" + + "\031agent_registry_deployment\030\016 \001(\01320.google.c" + + "loud.ces.v1beta.AgentRegistryDeploymentB\004\342A\001\001\"_\n" + + "\010Modality\022\030\n" + + "\024MODALITY_UNSPECIFIED\020\000\022\021\n\r" + + "MODALITY_TEXT\020\001\022\022\n" + + "\016MODALITY_VOICE\020\002\022\022\n" + + "\016MODALITY_VIDEO\020\003:\211\001\352A\205\001\n" + + "\035ces.googleapis.com/Deployment\022Kprojects/{project}" + + "/locations/{location}/apps/{app}/deployments/{deployment}*\013deployments2\n" + + "deployment\"n\n" + + "\027AgentRegistryDeployment\022S\n" + + "\033agent_registry_service_name\030\001 \001(\tB.\342A\002\001\003\372A&\n" + + "$agentregistry.googleapis.com/Service\"\276\001\n" + "\023WhatsAppCredentials\022\027\n" + "\tauth_code\030\001 \001(\tB\004\342A\001\002\022\021\n" + "\003pin\030\002 \001(\tB\004\342A\001\002\022\032\n" + "\014phone_number\030\003 \001(\tB\004\342A\001\002\022!\n" + "\023business_account_id\030\004 \001(\tB\004\342A\001\002\022\025\n" + "\007waba_id\030\005 \001(\tB\004\342A\001\002\022%\n" - + "\027conversation_profile_id\030\006 \001(\tB\004\342A\001\002\"V\n" + + "\027conversation_profile_id\030\006 \001(\tB\004\342A\001\001\"V\n" + "\024InstagramCredentials\022\027\n" + "\tauth_code\030\001 \001(\tB\004\342A\001\002\022%\n" - + "\027conversation_profile_id\030\002 \001(\tB\004\342A\001\002Bc\n" - + "\033com.google.cloud.ces.v1betaB\023ChannelProfi" - + "leProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\027conversation_profile_id\030\002 \001(\tB\004\342A\001\001B\310\001\n" + + "\033com.google.cloud.ces.v1betaB\023ChannelProf" + + "ileProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ab\n" + + "$agentregistry.googleapis.com/Service\022:projects/{project}/l" + + "ocations/{location}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -182,9 +202,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExperimentConfig", "WhatsappCredentials", "InstagramCredentials", + "ModelSettings", + "Modality", + "AgentRegistryDeployment", }); - internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor = + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_AgentRegistryDeployment_descriptor, + new java.lang.String[] { + "AgentRegistryServiceName", + }); + internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_WhatsAppCredentials_descriptor, @@ -197,7 +228,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversationProfileId", }); internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_InstagramCredentials_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InstagramCredentials_descriptor, @@ -213,6 +244,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-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java new file mode 100644 index 000000000000..0886dfe4a287 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequest.java @@ -0,0 +1,1552 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantRequest} + */ +@com.google.protobuf.Generated +public final class ChatAiAssistantRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChatAiAssistantRequest) + ChatAiAssistantRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAiAssistantRequest"); + } + + // Use ChatAiAssistantRequest.newBuilder() to construct. + private ChatAiAssistantRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatAiAssistantRequest() { + app_ = ""; + assistantSession_ = ""; + message_ = ""; + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.Builder.class); + } + + public static final int APP_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object app_ = ""; + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + @java.lang.Override + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_SESSION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSession_ = ""; + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + @java.lang.Override + public java.lang.String getAssistantSession() { + java.lang.Object ref = assistantSession_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSession_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionBytes() { + java.lang.Object ref = assistantSession_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSession_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MESSAGE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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 ATTACHED_GCS_URIS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + return attachedGcsUris_; + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + public static final int CONTEXT_TOKEN_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextToken_ = ""; + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + @java.lang.Override + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = 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.GeneratedMessage.isStringEmpty(app_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, app_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSession_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assistantSession_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, message_); + } + for (int i = 0; i < attachedGcsUris_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedGcsUris_.getRaw(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, contextToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(app_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, app_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSession_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assistantSession_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, message_); + } + { + int dataSize = 0; + for (int i = 0; i < attachedGcsUris_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedGcsUris_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedGcsUrisList().size(); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, contextToken_); + } + 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.ces.v1beta.ChatAiAssistantRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChatAiAssistantRequest other = + (com.google.cloud.ces.v1beta.ChatAiAssistantRequest) obj; + + if (!getApp().equals(other.getApp())) return false; + if (!getAssistantSession().equals(other.getAssistantSession())) return false; + if (!getMessage().equals(other.getMessage())) return false; + if (!getAttachedGcsUrisList().equals(other.getAttachedGcsUrisList())) return false; + if (!getContextToken().equals(other.getContextToken())) 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) + APP_FIELD_NUMBER; + hash = (53 * hash) + getApp().hashCode(); + hash = (37 * hash) + ASSISTANT_SESSION_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSession().hashCode(); + hash = (37 * hash) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + if (getAttachedGcsUrisCount() > 0) { + hash = (37 * hash) + ATTACHED_GCS_URIS_FIELD_NUMBER; + hash = (53 * hash) + getAttachedGcsUrisList().hashCode(); + } + hash = (37 * hash) + CONTEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getContextToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest 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.ces.v1beta.ChatAiAssistantRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + 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.ces.v1beta.ChatAiAssistantRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ChatAiAssistantRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChatAiAssistantRequest) + com.google.cloud.ces.v1beta.ChatAiAssistantRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.class, + com.google.cloud.ces.v1beta.ChatAiAssistantRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChatAiAssistantRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + app_ = ""; + assistantSession_ = ""; + message_ = ""; + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + contextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChatAiAssistantRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest build() { + com.google.cloud.ces.v1beta.ChatAiAssistantRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantRequest buildPartial() { + com.google.cloud.ces.v1beta.ChatAiAssistantRequest result = + new com.google.cloud.ces.v1beta.ChatAiAssistantRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChatAiAssistantRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.app_ = app_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistantSession_ = assistantSession_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + attachedGcsUris_.makeImmutable(); + result.attachedGcsUris_ = attachedGcsUris_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.contextToken_ = contextToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChatAiAssistantRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ChatAiAssistantRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChatAiAssistantRequest other) { + if (other == com.google.cloud.ces.v1beta.ChatAiAssistantRequest.getDefaultInstance()) + return this; + if (!other.getApp().isEmpty()) { + app_ = other.app_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssistantSession().isEmpty()) { + assistantSession_ = other.assistantSession_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.attachedGcsUris_.isEmpty()) { + if (attachedGcsUris_.isEmpty()) { + attachedGcsUris_ = other.attachedGcsUris_; + bitField0_ |= 0x00000008; + } else { + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.addAll(other.attachedGcsUris_); + } + onChanged(); + } + if (!other.getContextToken().isEmpty()) { + contextToken_ = other.contextToken_; + 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: + { + app_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + assistantSession_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + message_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(s); + break; + } // case 42 + case 50: + { + contextToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + 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 app_ = ""; + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + public java.lang.String getApp() { + java.lang.Object ref = app_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + app_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + public com.google.protobuf.ByteString getAppBytes() { + java.lang.Object ref = app_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + app_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The app to set. + * @return This builder for chaining. + */ + public Builder setApp(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearApp() { + app_ = getDefaultInstance().getApp(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The app to run assistant for.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for app to set. + * @return This builder for chaining. + */ + public Builder setAppBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + app_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object assistantSession_ = ""; + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + public java.lang.String getAssistantSession() { + java.lang.Object ref = assistantSession_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSession_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + public com.google.protobuf.ByteString getAssistantSessionBytes() { + java.lang.Object ref = assistantSession_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSession_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The assistantSession to set. + * @return This builder for chaining. + */ + public Builder setAssistantSession(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSession_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAssistantSession() { + assistantSession_ = getDefaultInstance().getAssistantSession(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The assistant session to be used to run the assistant.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for assistantSession to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSession_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object message_ = ""; + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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; + } + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The message to send to the assistant agent.
+     * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @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_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList attachedGcsUris_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedGcsUrisIsMutable() { + if (!attachedGcsUris_.isModifiable()) { + attachedGcsUris_ = new com.google.protobuf.LazyStringArrayList(attachedGcsUris_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + public com.google.protobuf.ProtocolStringList getAttachedGcsUrisList() { + attachedGcsUris_.makeImmutable(); + return attachedGcsUris_; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + public int getAttachedGcsUrisCount() { + return attachedGcsUris_.size(); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + public java.lang.String getAttachedGcsUris(int index) { + return attachedGcsUris_.get(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + public com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index) { + return attachedGcsUris_.getByteString(index); + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The attachedGcsUris to set. + * @return This builder for chaining. + */ + public Builder setAttachedGcsUris(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUris(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedGcsUris(java.lang.Iterable values) { + ensureAttachedGcsUrisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedGcsUris_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAttachedGcsUris() { + attachedGcsUris_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Cloud Storage URIs for files uploaded by the user during this
+     * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+     * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the attachedGcsUris to add. + * @return This builder for chaining. + */ + public Builder addAttachedGcsUrisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedGcsUrisIsMutable(); + attachedGcsUris_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object contextToken_ = ""; + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearContextToken() { + contextToken_ = getDefaultInstance().getContextToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Opaque onboarding context token returned by
+     * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+     * When set and still fresh, the server reuses the onboarding snapshot
+     * computed for the zero state instead of recomputing it for the first
+     * conversation turn.
+     * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChatAiAssistantRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChatAiAssistantRequest) + private static final com.google.cloud.ces.v1beta.ChatAiAssistantRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChatAiAssistantRequest(); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatAiAssistantRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ChatAiAssistantRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java new file mode 100644 index 000000000000..0ab865cc1d90 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantRequestOrBuilder.java @@ -0,0 +1,214 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ChatAiAssistantRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChatAiAssistantRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The app. + */ + java.lang.String getApp(); + + /** + * + * + *
+   * Required. The app to run assistant for.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string app = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for app. + */ + com.google.protobuf.ByteString getAppBytes(); + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The assistantSession. + */ + java.lang.String getAssistantSession(); + + /** + * + * + *
+   * Required. The assistant session to be used to run the assistant.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string assistant_session = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for assistantSession. + */ + com.google.protobuf.ByteString getAssistantSessionBytes(); + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+   * Required. The message to send to the assistant agent.
+   * 
+ * + * string message = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the attachedGcsUris. + */ + java.util.List getAttachedGcsUrisList(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of attachedGcsUris. + */ + int getAttachedGcsUrisCount(); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The attachedGcsUris at the given index. + */ + java.lang.String getAttachedGcsUris(int index); + + /** + * + * + *
+   * Optional. Cloud Storage URIs for files uploaded by the user during this
+   * turn. Example: "gs://cxas-transient-uploads/uuid/prd.pdf"
+   * 
+ * + * repeated string attached_gcs_uris = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the attachedGcsUris at the given index. + */ + com.google.protobuf.ByteString getAttachedGcsUrisBytes(int index); + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The contextToken. + */ + java.lang.String getContextToken(); + + /** + * + * + *
+   * Optional. Opaque onboarding context token returned by
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * When set and still fresh, the server reuses the onboarding snapshot
+   * computed for the zero state instead of recomputing it for the first
+   * conversation turn.
+   * 
+ * + * string context_token = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for contextToken. + */ + com.google.protobuf.ByteString getContextTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java new file mode 100644 index 000000000000..3c69586958aa --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponse.java @@ -0,0 +1,2064 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantResponse} + */ +@com.google.protobuf.Generated +public final class ChatAiAssistantResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ChatAiAssistantResponse) + ChatAiAssistantResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ChatAiAssistantResponse"); + } + + // Use ChatAiAssistantResponse.newBuilder() to construct. + private ChatAiAssistantResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ChatAiAssistantResponse() { + eventId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.Builder.class); + } + + private int bitField0_; + private int eventCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object event_; + + public enum EventCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT_CHUNK(3), + STATUS_MESSAGE(4), + SESSION_CHECKPOINT(13), + EVENT_NOT_SET(0); + private final int value; + + private EventCase(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 EventCase valueOf(int value) { + return forNumber(value); + } + + public static EventCase forNumber(int value) { + switch (value) { + case 3: + return TEXT_CHUNK; + case 4: + return STATUS_MESSAGE; + case 13: + return SESSION_CHECKPOINT; + case 0: + return EVENT_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public static final int TEXT_CHUNK_FIELD_NUMBER = 3; + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + public boolean hasTextChunk() { + return eventCase_ == 3; + } + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + public java.lang.String getTextChunk() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof java.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 (eventCase_ == 3) { + event_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + public com.google.protobuf.ByteString getTextChunkBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 3) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_MESSAGE_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + public boolean hasStatusMessage() { + return eventCase_ == 4; + } + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + public java.lang.String getStatusMessage() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof java.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 (eventCase_ == 4) { + event_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 4) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SESSION_CHECKPOINT_FIELD_NUMBER = 13; + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return eventCase_ == 13; + } + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + + public static final int EVENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object eventId_ = ""; + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + @java.lang.Override + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } + } + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int UI_EVENT_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1beta.UiEvent uiEvent_; + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + @java.lang.Override + public boolean hasUiEvent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UiEvent getUiEvent() { + return uiEvent_ == null ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() : uiEvent_; + } + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder() { + return uiEvent_ == null ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() : uiEvent_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(eventId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, eventId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getEventTime()); + } + if (eventCase_ == 3) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, event_); + } + if (eventCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(5, getUiEvent()); + } + if (eventCase_ == 13) { + output.writeMessage(13, (com.google.cloud.ces.v1beta.SessionCheckpoint) event_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(eventId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, eventId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEventTime()); + } + if (eventCase_ == 3) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, event_); + } + if (eventCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, event_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUiEvent()); + } + if (eventCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.cloud.ces.v1beta.SessionCheckpoint) event_); + } + 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.ces.v1beta.ChatAiAssistantResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ChatAiAssistantResponse other = + (com.google.cloud.ces.v1beta.ChatAiAssistantResponse) obj; + + if (!getEventId().equals(other.getEventId())) return false; + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasUiEvent() != other.hasUiEvent()) return false; + if (hasUiEvent()) { + if (!getUiEvent().equals(other.getUiEvent())) return false; + } + if (!getEventCase().equals(other.getEventCase())) return false; + switch (eventCase_) { + case 3: + if (!getTextChunk().equals(other.getTextChunk())) return false; + break; + case 4: + if (!getStatusMessage().equals(other.getStatusMessage())) return false; + break; + case 13: + if (!getSessionCheckpoint().equals(other.getSessionCheckpoint())) 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) + EVENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getEventId().hashCode(); + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasUiEvent()) { + hash = (37 * hash) + UI_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getUiEvent().hashCode(); + } + switch (eventCase_) { + case 3: + hash = (37 * hash) + TEXT_CHUNK_FIELD_NUMBER; + hash = (53 * hash) + getTextChunk().hashCode(); + break; + case 4: + hash = (37 * hash) + STATUS_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getStatusMessage().hashCode(); + break; + case 13: + hash = (37 * hash) + SESSION_CHECKPOINT_FIELD_NUMBER; + hash = (53 * hash) + getSessionCheckpoint().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse 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.ces.v1beta.ChatAiAssistantResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + 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.ces.v1beta.ChatAiAssistantResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ChatAiAssistantResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [AssistantService.ChatAiAssistant][google.cloud.ces.v1beta.AssistantService.ChatAiAssistant].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ChatAiAssistantResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ChatAiAssistantResponse) + com.google.cloud.ces.v1beta.ChatAiAssistantResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.class, + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ChatAiAssistantResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEventTimeFieldBuilder(); + internalGetUiEventFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (sessionCheckpointBuilder_ != null) { + sessionCheckpointBuilder_.clear(); + } + eventId_ = ""; + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + uiEvent_ = null; + if (uiEventBuilder_ != null) { + uiEventBuilder_.dispose(); + uiEventBuilder_ = null; + } + eventCase_ = 0; + event_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ChatAiAssistantResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ChatAiAssistantResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse build() { + com.google.cloud.ces.v1beta.ChatAiAssistantResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ChatAiAssistantResponse buildPartial() { + com.google.cloud.ces.v1beta.ChatAiAssistantResponse result = + new com.google.cloud.ces.v1beta.ChatAiAssistantResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ChatAiAssistantResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.eventId_ = eventId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.uiEvent_ = uiEventBuilder_ == null ? uiEvent_ : uiEventBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.ChatAiAssistantResponse result) { + result.eventCase_ = eventCase_; + result.event_ = this.event_; + if (eventCase_ == 13 && sessionCheckpointBuilder_ != null) { + result.event_ = sessionCheckpointBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ChatAiAssistantResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ChatAiAssistantResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ChatAiAssistantResponse other) { + if (other == com.google.cloud.ces.v1beta.ChatAiAssistantResponse.getDefaultInstance()) + return this; + if (!other.getEventId().isEmpty()) { + eventId_ = other.eventId_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasUiEvent()) { + mergeUiEvent(other.getUiEvent()); + } + switch (other.getEventCase()) { + case TEXT_CHUNK: + { + eventCase_ = 3; + event_ = other.event_; + onChanged(); + break; + } + case STATUS_MESSAGE: + { + eventCase_ = 4; + event_ = other.event_; + onChanged(); + break; + } + case SESSION_CHECKPOINT: + { + mergeSessionCheckpoint(other.getSessionCheckpoint()); + break; + } + case EVENT_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: + { + eventId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 18 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + eventCase_ = 3; + event_ = s; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + eventCase_ = 4; + event_ = s; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetUiEventFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 42 + case 106: + { + input.readMessage( + internalGetSessionCheckpointFieldBuilder().getBuilder(), extensionRegistry); + eventCase_ = 13; + break; + } // case 106 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 eventCase_ = 0; + private java.lang.Object event_; + + public EventCase getEventCase() { + return EventCase.forNumber(eventCase_); + } + + public Builder clearEvent() { + eventCase_ = 0; + event_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + @java.lang.Override + public boolean hasTextChunk() { + return eventCase_ == 3; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + @java.lang.Override + public java.lang.String getTextChunk() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (eventCase_ == 3) { + event_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextChunkBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 3) { + ref = event_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 3) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @param value The textChunk to set. + * @return This builder for chaining. + */ + public Builder setTextChunk(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventCase_ = 3; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @return This builder for chaining. + */ + public Builder clearTextChunk() { + if (eventCase_ == 3) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Text Token (for streaming Gemini responses word-by-word)
+     * 
+ * + * string text_chunk = 3; + * + * @param value The bytes for textChunk to set. + * @return This builder for chaining. + */ + public Builder setTextChunkBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventCase_ = 3; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + @java.lang.Override + public boolean hasStatusMessage() { + return eventCase_ == 4; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + @java.lang.Override + public java.lang.String getStatusMessage() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (eventCase_ == 4) { + event_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusMessageBytes() { + java.lang.Object ref = ""; + if (eventCase_ == 4) { + ref = event_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (eventCase_ == 4) { + event_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @param value The statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventCase_ = 4; + event_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatusMessage() { + if (eventCase_ == 4) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Simple status update
+     * 
+ * + * string status_message = 4; + * + * @param value The bytes for statusMessage to set. + * @return This builder for chaining. + */ + public Builder setStatusMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventCase_ = 4; + event_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + sessionCheckpointBuilder_; + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + @java.lang.Override + public boolean hasSessionCheckpoint() { + return eventCase_ == 13; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } else { + if (eventCase_ == 13) { + return sessionCheckpointBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder setSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + event_ = value; + onChanged(); + } else { + sessionCheckpointBuilder_.setMessage(value); + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder setSessionCheckpoint( + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder builderForValue) { + if (sessionCheckpointBuilder_ == null) { + event_ = builderForValue.build(); + onChanged(); + } else { + sessionCheckpointBuilder_.setMessage(builderForValue.build()); + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder mergeSessionCheckpoint(com.google.cloud.ces.v1beta.SessionCheckpoint value) { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13 + && event_ != com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance()) { + event_ = + com.google.cloud.ces.v1beta.SessionCheckpoint.newBuilder( + (com.google.cloud.ces.v1beta.SessionCheckpoint) event_) + .mergeFrom(value) + .buildPartial(); + } else { + event_ = value; + } + onChanged(); + } else { + if (eventCase_ == 13) { + sessionCheckpointBuilder_.mergeFrom(value); + } else { + sessionCheckpointBuilder_.setMessage(value); + } + } + eventCase_ = 13; + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public Builder clearSessionCheckpoint() { + if (sessionCheckpointBuilder_ == null) { + if (eventCase_ == 13) { + eventCase_ = 0; + event_ = null; + onChanged(); + } + } else { + if (eventCase_ == 13) { + eventCase_ = 0; + event_ = null; + } + sessionCheckpointBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + public com.google.cloud.ces.v1beta.SessionCheckpoint.Builder getSessionCheckpointBuilder() { + return internalGetSessionCheckpointFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder() { + if ((eventCase_ == 13) && (sessionCheckpointBuilder_ != null)) { + return sessionCheckpointBuilder_.getMessageOrBuilder(); + } else { + if (eventCase_ == 13) { + return (com.google.cloud.ces.v1beta.SessionCheckpoint) event_; + } + return com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Session checkpoint/compaction recap event containing user intent and
+     * rolling summary.
+     * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder> + internalGetSessionCheckpointFieldBuilder() { + if (sessionCheckpointBuilder_ == null) { + if (!(eventCase_ == 13)) { + event_ = com.google.cloud.ces.v1beta.SessionCheckpoint.getDefaultInstance(); + } + sessionCheckpointBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.SessionCheckpoint, + com.google.cloud.ces.v1beta.SessionCheckpoint.Builder, + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder>( + (com.google.cloud.ces.v1beta.SessionCheckpoint) event_, + getParentForChildren(), + isClean()); + event_ = null; + } + eventCase_ = 13; + onChanged(); + return sessionCheckpointBuilder_; + } + + private java.lang.Object eventId_ = ""; + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + public java.lang.String getEventId() { + java.lang.Object ref = eventId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + public com.google.protobuf.ByteString getEventIdBytes() { + java.lang.Object ref = eventId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @param value The eventId to set. + * @return This builder for chaining. + */ + public Builder setEventId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + eventId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearEventId() { + eventId_ = getDefaultInstance().getEventId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Unique identifier for the event.
+     * 
+ * + * string event_id = 1; + * + * @param value The bytes for eventId to set. + * @return This builder for chaining. + */ + public Builder setEventIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + eventId_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @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(); + } + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000010); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
+     * Timestamp when the event occurred.
+     * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.cloud.ces.v1beta.UiEvent uiEvent_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder> + uiEventBuilder_; + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + public boolean hasUiEvent() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + public com.google.cloud.ces.v1beta.UiEvent getUiEvent() { + if (uiEventBuilder_ == null) { + return uiEvent_ == null + ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() + : uiEvent_; + } else { + return uiEventBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUiEvent(com.google.cloud.ces.v1beta.UiEvent value) { + if (uiEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + uiEvent_ = value; + } else { + uiEventBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUiEvent(com.google.cloud.ces.v1beta.UiEvent.Builder builderForValue) { + if (uiEventBuilder_ == null) { + uiEvent_ = builderForValue.build(); + } else { + uiEventBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUiEvent(com.google.cloud.ces.v1beta.UiEvent value) { + if (uiEventBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && uiEvent_ != null + && uiEvent_ != com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance()) { + getUiEventBuilder().mergeFrom(value); + } else { + uiEvent_ = value; + } + } else { + uiEventBuilder_.mergeFrom(value); + } + if (uiEvent_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUiEvent() { + bitField0_ = (bitField0_ & ~0x00000020); + uiEvent_ = null; + if (uiEventBuilder_ != null) { + uiEventBuilder_.dispose(); + uiEventBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.UiEvent.Builder getUiEventBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetUiEventFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder() { + if (uiEventBuilder_ != null) { + return uiEventBuilder_.getMessageOrBuilder(); + } else { + return uiEvent_ == null + ? com.google.cloud.ces.v1beta.UiEvent.getDefaultInstance() + : uiEvent_; + } + } + + /** + * + * + *
+     * Optional. UI event payload.
+     * 
+ * + * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder> + internalGetUiEventFieldBuilder() { + if (uiEventBuilder_ == null) { + uiEventBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.UiEvent, + com.google.cloud.ces.v1beta.UiEvent.Builder, + com.google.cloud.ces.v1beta.UiEventOrBuilder>( + getUiEvent(), getParentForChildren(), isClean()); + uiEvent_ = null; + } + return uiEventBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ChatAiAssistantResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ChatAiAssistantResponse) + private static final com.google.cloud.ces.v1beta.ChatAiAssistantResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ChatAiAssistantResponse(); + } + + public static com.google.cloud.ces.v1beta.ChatAiAssistantResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChatAiAssistantResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ChatAiAssistantResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java new file mode 100644 index 000000000000..0c23fbe85c87 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ChatAiAssistantResponseOrBuilder.java @@ -0,0 +1,251 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ChatAiAssistantResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ChatAiAssistantResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return Whether the textChunk field is set. + */ + boolean hasTextChunk(); + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The textChunk. + */ + java.lang.String getTextChunk(); + + /** + * + * + *
+   * Text Token (for streaming Gemini responses word-by-word)
+   * 
+ * + * string text_chunk = 3; + * + * @return The bytes for textChunk. + */ + com.google.protobuf.ByteString getTextChunkBytes(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return Whether the statusMessage field is set. + */ + boolean hasStatusMessage(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The statusMessage. + */ + java.lang.String getStatusMessage(); + + /** + * + * + *
+   * Simple status update
+   * 
+ * + * string status_message = 4; + * + * @return The bytes for statusMessage. + */ + com.google.protobuf.ByteString getStatusMessageBytes(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return Whether the sessionCheckpoint field is set. + */ + boolean hasSessionCheckpoint(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + * + * @return The sessionCheckpoint. + */ + com.google.cloud.ces.v1beta.SessionCheckpoint getSessionCheckpoint(); + + /** + * + * + *
+   * Session checkpoint/compaction recap event containing user intent and
+   * rolling summary.
+   * 
+ * + * .google.cloud.ces.v1beta.SessionCheckpoint session_checkpoint = 13; + */ + com.google.cloud.ces.v1beta.SessionCheckpointOrBuilder getSessionCheckpointOrBuilder(); + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The eventId. + */ + java.lang.String getEventId(); + + /** + * + * + *
+   * Unique identifier for the event.
+   * 
+ * + * string event_id = 1; + * + * @return The bytes for eventId. + */ + com.google.protobuf.ByteString getEventIdBytes(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
+   * Timestamp when the event occurred.
+   * 
+ * + * .google.protobuf.Timestamp event_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the uiEvent field is set. + */ + boolean hasUiEvent(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The uiEvent. + */ + com.google.cloud.ces.v1beta.UiEvent getUiEvent(); + + /** + * + * + *
+   * Optional. UI event payload.
+   * 
+ * + * .google.cloud.ces.v1beta.UiEvent ui_event = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.UiEventOrBuilder getUiEventOrBuilder(); + + com.google.cloud.ces.v1beta.ChatAiAssistantResponse.EventCase getEventCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java index 20dc45f4515f..73699169e36a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Citations.java @@ -53,6 +53,7 @@ private Citations(com.google.protobuf.GeneratedMessage.Builder builder) { private Citations() { citedChunks_ = java.util.Collections.emptyList(); + inlineCitations_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1217,6 +1218,926 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunk getDefaultInstanceForTyp } } + public interface InlineCitationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Citations.InlineCitation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * The starting index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + int getStartIndex(); + + /** + * + * + *
+     * The ending index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + int getEndIndex(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + java.util.List getCitedChunkIndicesList(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + int getCitedChunkIndicesCount(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + int getCitedChunkIndices(int index); + } + + /** + * + * + *
+   * An inline citation in the response text.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Citations.InlineCitation} + */ + public static final class InlineCitation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Citations.InlineCitation) + InlineCitationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InlineCitation"); + } + + // Use InlineCitation.newBuilder() to construct. + private InlineCitation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InlineCitation() { + citedChunkIndices_ = emptyIntList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Citations.InlineCitation.class, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder.class); + } + + public static final int START_INDEX_FIELD_NUMBER = 1; + private int startIndex_ = 0; + + /** + * + * + *
+     * The starting index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + public static final int END_INDEX_FIELD_NUMBER = 2; + private int endIndex_ = 0; + + /** + * + * + *
+     * The ending index (in bytes) of the text segment in the agent response.
+     * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + public static final int CITED_CHUNK_INDICES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList citedChunkIndices_ = emptyIntList(); + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + @java.lang.Override + public java.util.List getCitedChunkIndicesList() { + return citedChunkIndices_; + } + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + public int getCitedChunkIndicesCount() { + return citedChunkIndices_.size(); + } + + /** + * + * + *
+     * The indices of the cited chunks that back this text segment.
+     * Indices refer to the elements in `cited_chunks`.
+     * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + public int getCitedChunkIndices(int index) { + return citedChunkIndices_.getInt(index); + } + + private int citedChunkIndicesMemoizedSerializedSize = -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 (startIndex_ != 0) { + output.writeInt32(1, startIndex_); + } + if (endIndex_ != 0) { + output.writeInt32(2, endIndex_); + } + if (getCitedChunkIndicesList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(citedChunkIndicesMemoizedSerializedSize); + } + for (int i = 0; i < citedChunkIndices_.size(); i++) { + output.writeInt32NoTag(citedChunkIndices_.getInt(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (startIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, startIndex_); + } + if (endIndex_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, endIndex_); + } + { + int dataSize = 0; + for (int i = 0; i < citedChunkIndices_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag( + citedChunkIndices_.getInt(i)); + } + size += dataSize; + if (!getCitedChunkIndicesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeInt32SizeNoTag(dataSize); + } + citedChunkIndicesMemoizedSerializedSize = 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.ces.v1beta.Citations.InlineCitation)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Citations.InlineCitation other = + (com.google.cloud.ces.v1beta.Citations.InlineCitation) obj; + + if (getStartIndex() != other.getStartIndex()) return false; + if (getEndIndex() != other.getEndIndex()) return false; + if (!getCitedChunkIndicesList().equals(other.getCitedChunkIndicesList())) 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) + START_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getStartIndex(); + hash = (37 * hash) + END_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getEndIndex(); + if (getCitedChunkIndicesCount() > 0) { + hash = (37 * hash) + CITED_CHUNK_INDICES_FIELD_NUMBER; + hash = (53 * hash) + getCitedChunkIndicesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation 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.ces.v1beta.Citations.InlineCitation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + 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.ces.v1beta.Citations.InlineCitation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.Citations.InlineCitation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * An inline citation in the response text.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Citations.InlineCitation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Citations.InlineCitation) + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Citations.InlineCitation.class, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Citations.InlineCitation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + startIndex_ = 0; + endIndex_ = 0; + citedChunkIndices_ = emptyIntList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_Citations_InlineCitation_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation build() { + com.google.cloud.ces.v1beta.Citations.InlineCitation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation buildPartial() { + com.google.cloud.ces.v1beta.Citations.InlineCitation result = + new com.google.cloud.ces.v1beta.Citations.InlineCitation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Citations.InlineCitation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.startIndex_ = startIndex_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.endIndex_ = endIndex_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + citedChunkIndices_.makeImmutable(); + result.citedChunkIndices_ = citedChunkIndices_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Citations.InlineCitation) { + return mergeFrom((com.google.cloud.ces.v1beta.Citations.InlineCitation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Citations.InlineCitation other) { + if (other == com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()) + return this; + if (other.getStartIndex() != 0) { + setStartIndex(other.getStartIndex()); + } + if (other.getEndIndex() != 0) { + setEndIndex(other.getEndIndex()); + } + if (!other.citedChunkIndices_.isEmpty()) { + if (citedChunkIndices_.isEmpty()) { + citedChunkIndices_ = other.citedChunkIndices_; + citedChunkIndices_.makeImmutable(); + bitField0_ |= 0x00000004; + } else { + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addAll(other.citedChunkIndices_); + } + 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: + { + startIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + endIndex_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + int v = input.readInt32(); + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addInt(v); + break; + } // case 24 + case 26: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureCitedChunkIndicesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + citedChunkIndices_.addInt(input.readInt32()); + } + 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 int startIndex_; + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @return The startIndex. + */ + @java.lang.Override + public int getStartIndex() { + return startIndex_; + } + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @param value The startIndex to set. + * @return This builder for chaining. + */ + public Builder setStartIndex(int value) { + + startIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * The starting index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 start_index = 1; + * + * @return This builder for chaining. + */ + public Builder clearStartIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + startIndex_ = 0; + onChanged(); + return this; + } + + private int endIndex_; + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @return The endIndex. + */ + @java.lang.Override + public int getEndIndex() { + return endIndex_; + } + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @param value The endIndex to set. + * @return This builder for chaining. + */ + public Builder setEndIndex(int value) { + + endIndex_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * The ending index (in bytes) of the text segment in the agent response.
+       * 
+ * + * int32 end_index = 2; + * + * @return This builder for chaining. + */ + public Builder clearEndIndex() { + bitField0_ = (bitField0_ & ~0x00000002); + endIndex_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.Internal.IntList citedChunkIndices_ = emptyIntList(); + + private void ensureCitedChunkIndicesIsMutable() { + if (!citedChunkIndices_.isModifiable()) { + citedChunkIndices_ = makeMutableCopy(citedChunkIndices_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return A list containing the citedChunkIndices. + */ + public java.util.List getCitedChunkIndicesList() { + citedChunkIndices_.makeImmutable(); + return citedChunkIndices_; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return The count of citedChunkIndices. + */ + public int getCitedChunkIndicesCount() { + return citedChunkIndices_.size(); + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index of the element to return. + * @return The citedChunkIndices at the given index. + */ + public int getCitedChunkIndices(int index) { + return citedChunkIndices_.getInt(index); + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param index The index to set the value at. + * @param value The citedChunkIndices to set. + * @return This builder for chaining. + */ + public Builder setCitedChunkIndices(int index, int value) { + + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.setInt(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param value The citedChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addCitedChunkIndices(int value) { + + ensureCitedChunkIndicesIsMutable(); + citedChunkIndices_.addInt(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @param values The citedChunkIndices to add. + * @return This builder for chaining. + */ + public Builder addAllCitedChunkIndices( + java.lang.Iterable values) { + ensureCitedChunkIndicesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, citedChunkIndices_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * The indices of the cited chunks that back this text segment.
+       * Indices refer to the elements in `cited_chunks`.
+       * 
+ * + * repeated int32 cited_chunk_indices = 3; + * + * @return This builder for chaining. + */ + public Builder clearCitedChunkIndices() { + citedChunkIndices_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Citations.InlineCitation) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Citations.InlineCitation) + private static final com.google.cloud.ces.v1beta.Citations.InlineCitation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Citations.InlineCitation(); + } + + public static com.google.cloud.ces.v1beta.Citations.InlineCitation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InlineCitation parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.Citations.InlineCitation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public static final int CITED_CHUNKS_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1294,6 +2215,94 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunkOrBuilder getCitedChunksO return citedChunks_.get(index); } + public static final int INLINE_CITATIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List inlineCitations_; + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInlineCitationsList() { + return inlineCitations_; + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getInlineCitationsOrBuilderList() { + return inlineCitations_; + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getInlineCitationsCount() { + return inlineCitations_.size(); + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index) { + return inlineCitations_.get(index); + } + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder getInlineCitationsOrBuilder( + int index) { + return inlineCitations_.get(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1311,6 +2320,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < citedChunks_.size(); i++) { output.writeMessage(1, citedChunks_.get(i)); } + for (int i = 0; i < inlineCitations_.size(); i++) { + output.writeMessage(2, inlineCitations_.get(i)); + } getUnknownFields().writeTo(output); } @@ -1323,6 +2335,9 @@ public int getSerializedSize() { for (int i = 0; i < citedChunks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, citedChunks_.get(i)); } + for (int i = 0; i < inlineCitations_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, inlineCitations_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1339,6 +2354,7 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.ces.v1beta.Citations other = (com.google.cloud.ces.v1beta.Citations) obj; if (!getCitedChunksList().equals(other.getCitedChunksList())) return false; + if (!getInlineCitationsList().equals(other.getInlineCitationsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1354,6 +2370,10 @@ public int hashCode() { hash = (37 * hash) + CITED_CHUNKS_FIELD_NUMBER; hash = (53 * hash) + getCitedChunksList().hashCode(); } + if (getInlineCitationsCount() > 0) { + hash = (37 * hash) + INLINE_CITATIONS_FIELD_NUMBER; + hash = (53 * hash) + getInlineCitationsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1500,6 +2520,13 @@ public Builder clear() { citedChunksBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (inlineCitationsBuilder_ == null) { + inlineCitations_ = java.util.Collections.emptyList(); + } else { + inlineCitations_ = null; + inlineCitationsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); return this; } @@ -1545,6 +2572,15 @@ private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.Citations re } else { result.citedChunks_ = citedChunksBuilder_.build(); } + if (inlineCitationsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + inlineCitations_ = java.util.Collections.unmodifiableList(inlineCitations_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.inlineCitations_ = inlineCitations_; + } else { + result.inlineCitations_ = inlineCitationsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.ces.v1beta.Citations result) { @@ -1590,6 +2626,33 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Citations other) { } } } + if (inlineCitationsBuilder_ == null) { + if (!other.inlineCitations_.isEmpty()) { + if (inlineCitations_.isEmpty()) { + inlineCitations_ = other.inlineCitations_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureInlineCitationsIsMutable(); + inlineCitations_.addAll(other.inlineCitations_); + } + onChanged(); + } + } else { + if (!other.inlineCitations_.isEmpty()) { + if (inlineCitationsBuilder_.isEmpty()) { + inlineCitationsBuilder_.dispose(); + inlineCitationsBuilder_ = null; + inlineCitations_ = other.inlineCitations_; + bitField0_ = (bitField0_ & ~0x00000002); + inlineCitationsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInlineCitationsFieldBuilder() + : null; + } else { + inlineCitationsBuilder_.addAllMessages(other.inlineCitations_); + } + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1630,6 +2693,20 @@ public Builder mergeFrom( } break; } // case 10 + case 18: + { + com.google.cloud.ces.v1beta.Citations.InlineCitation m = + input.readMessage( + com.google.cloud.ces.v1beta.Citations.InlineCitation.parser(), + extensionRegistry); + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(m); + } else { + inlineCitationsBuilder_.addMessage(m); + } + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2022,6 +3099,422 @@ public com.google.cloud.ces.v1beta.Citations.CitedChunk.Builder addCitedChunksBu return citedChunksBuilder_; } + private java.util.List inlineCitations_ = + java.util.Collections.emptyList(); + + private void ensureInlineCitationsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + inlineCitations_ = + new java.util.ArrayList( + inlineCitations_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder> + inlineCitationsBuilder_; + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsList() { + if (inlineCitationsBuilder_ == null) { + return java.util.Collections.unmodifiableList(inlineCitations_); + } else { + return inlineCitationsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getInlineCitationsCount() { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.size(); + } else { + return inlineCitationsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index) { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.get(index); + } else { + return inlineCitationsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.set(index, value); + onChanged(); + } else { + inlineCitationsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.set(index, builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations(com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.add(value); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation value) { + if (inlineCitationsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInlineCitationsIsMutable(); + inlineCitations_.add(index, value); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addInlineCitations( + int index, com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder builderForValue) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.add(index, builderForValue.build()); + onChanged(); + } else { + inlineCitationsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllInlineCitations( + java.lang.Iterable values) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inlineCitations_); + onChanged(); + } else { + inlineCitationsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearInlineCitations() { + if (inlineCitationsBuilder_ == null) { + inlineCitations_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + inlineCitationsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeInlineCitations(int index) { + if (inlineCitationsBuilder_ == null) { + ensureInlineCitationsIsMutable(); + inlineCitations_.remove(index); + onChanged(); + } else { + inlineCitationsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder getInlineCitationsBuilder( + int index) { + return internalGetInlineCitationsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder + getInlineCitationsOrBuilder(int index) { + if (inlineCitationsBuilder_ == null) { + return inlineCitations_.get(index); + } else { + return inlineCitationsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsOrBuilderList() { + if (inlineCitationsBuilder_ != null) { + return inlineCitationsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(inlineCitations_); + } + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder + addInlineCitationsBuilder() { + return internalGetInlineCitationsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder addInlineCitationsBuilder( + int index) { + return internalGetInlineCitationsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.Citations.InlineCitation.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. List of inline citations in the agent response.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getInlineCitationsBuilderList() { + return internalGetInlineCitationsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder> + internalGetInlineCitationsFieldBuilder() { + if (inlineCitationsBuilder_ == null) { + inlineCitationsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.Citations.InlineCitation, + com.google.cloud.ces.v1beta.Citations.InlineCitation.Builder, + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder>( + inlineCitations_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + inlineCitations_ = null; + } + return inlineCitationsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Citations) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java index b85cee25820b..d45547d71204 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CitationsOrBuilder.java @@ -81,4 +81,71 @@ public interface CitationsOrBuilder * repeated .google.cloud.ces.v1beta.Citations.CitedChunk cited_chunks = 1; */ com.google.cloud.ces.v1beta.Citations.CitedChunkOrBuilder getCitedChunksOrBuilder(int index); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getInlineCitationsList(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Citations.InlineCitation getInlineCitations(int index); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getInlineCitationsCount(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getInlineCitationsOrBuilderList(); + + /** + * + * + *
+   * Optional. List of inline citations in the agent response.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.Citations.InlineCitation inline_citations = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Citations.InlineCitationOrBuilder getInlineCitationsOrBuilder( + int index); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java index c36b9dcd0165..d81e8c12aedd 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CommonProto.java @@ -112,6 +112,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_EvaluationRunCachingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_UiEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -132,24 +140,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\003 \001(\tB\004\342A\001\001\022\026\n" + "\010disabled\030\002 \001(\010B\004\342A\001\001\022)\n" + "\033proactive_execution_enabled\030\004 \001(\010B\004\342A\001\001B\n\n" - + "\010callback\"T\n\r" + + "\010callback\"\205\002\n\r" + "ModelSettings\022\023\n" + "\005model\030\001 \001(\tB\004\342A\001\001\022\036\n" - + "\013temperature\030\002 \001(\001B\004\342A\001\001H\000\210\001\001B\016\n" + + "\013temperature\030\002 \001(\001B\004\342A\001\001H\000\210\001\001\022R\n" + + "\016thinking_level\030\005 \001(\01624.google.cloud.ces" + + ".v1beta.ModelSettings.ThinkingLevelB\004\342A\001\001\"[\n\r" + + "ThinkingLevel\022\036\n" + + "\032THINKING_LEVEL_UNSPECIFIED\020\000\022\013\n" + + "\007DEFAULT\020\001\022\007\n" + + "\003LOW\020\002\022\n\n" + + "\006MEDIUM\020\003\022\010\n" + + "\004HIGH\020\004B\016\n" + "\014_temperature\"\260\004\n\r" + "TriggerAction\022^\n" - + "\023respond_immediately\030\001 \001(\01329.google.cloud.ces.v" - + "1beta.TriggerAction.RespondImmediatelyB\004\342A\001\001H\000\022T\n" - + "\016transfer_agent\030\002 \001(\01324.google." - + "cloud.ces.v1beta.TriggerAction.TransferAgentB\004\342A\001\001H\000\022Z\n" - + "\021generative_answer\030\003 \001(\0132" - + "7.google.cloud.ces.v1beta.TriggerAction.GenerativeAnswerB\004\342A\001\001H\000\0326\n" + + "\023respond_immediately\030\001 \001(\01329." + + "google.cloud.ces.v1beta.TriggerAction.RespondImmediatelyB\004\342A\001\001H\000\022T\n" + + "\016transfer_agent\030\002" + + " \001(\01324.google.cloud.ces.v1beta.TriggerAction.TransferAgentB\004\342A\001\001H\000\022Z\n" + + "\021generative_answer\030\003 \001(\01327.google.cloud.ces.v1b" + + "eta.TriggerAction.GenerativeAnswerB\004\342A\001\001H\000\0326\n" + "\010Response\022\022\n" + "\004text\030\001 \001(\tB\004\342A\001\002\022\026\n" + "\010disabled\030\002 \001(\010B\004\342A\001\001\032^\n" + "\022RespondImmediately\022H\n" - + "\tresponses\030\001 \003(" - + "\0132/.google.cloud.ces.v1beta.TriggerAction.ResponseB\004\342A\001\002\032(\n" + + "\tresponses\030\001" + + " \003(\0132/.google.cloud.ces.v1beta.TriggerAction.ResponseB\004\342A\001\002\032(\n" + "\020GenerativeAnswer\022\024\n" + "\006prompt\030\001 \001(\tB\004\342A\001\002\032A\n\r" + "TransferAgent\0220\n" @@ -167,34 +183,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'servicedirectory.googleapis.com/Service\"\247\017\n" + "\016ChannelProfile\022\030\n\n" + "profile_id\030\001 \001(\tB\004\342A\001\001\022O\n" - + "\014channel_type\030\003 \001(\01623.goo" - + "gle.cloud.ces.v1beta.ChannelProfile.ChannelTypeB\004\342A\001\001\022W\n" - + "\020persona_property\030\002 \001(\0132" - + "7.google.cloud.ces.v1beta.ChannelProfile.PersonaPropertyB\004\342A\001\001\022\032\n" + + "\014channel_type\030\003" + + " \001(\01623.google.cloud.ces.v1beta.ChannelProfile.ChannelTypeB\004\342A\001\001\022W\n" + + "\020persona_property\030\002 \001(\01327.google.cloud.ces.v1b" + + "eta.ChannelProfile.PersonaPropertyB\004\342A\001\001\022\032\n" + "\014disable_dtmf\030\004 \001(\010B\004\342A\001\001\022&\n" + "\030disable_barge_in_control\030\005 \001(\010B\004\342A\001\001\022X\n" - + "\021web_widget_config\030\007 \001(\01327." - + "google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfigB\004\342A\001\001\022%\n" + + "\021web_widget_config\030\007 \001(\01327.google.cloud.ces.v1bet" + + "a.ChannelProfile.WebWidgetConfigB\004\342A\001\001\022%\n" + "\027noise_suppression_level\030\010 \001(\tB\004\342A\001\001\022U\n" - + "\017whatsapp_config\030\t" - + " \001(\01326.google.cloud.ces.v1beta.ChannelProfile.WhatsAppConfigB\004\342A\001\001\022W\n" + + "\017whatsapp_config\030\t \001(\01326.google.cloud.ce" + + "s.v1beta.ChannelProfile.WhatsAppConfigB\004\342A\001\001\022W\n" + "\020instagram_config\030\n" - + " \001(\01327.google.cloud.ces.v1beta.ChannelProfile.InstagramConfigB\004\342A\001\001\032\232\001\n" + + " \001(\01327.google." + + "cloud.ces.v1beta.ChannelProfile.InstagramConfigB\004\342A\001\001\032\232\001\n" + "\017PersonaProperty\022V\n" - + "\007persona\030\001 \001(\0162?.googl" - + "e.cloud.ces.v1beta.ChannelProfile.PersonaProperty.PersonaB\004\342A\001\001\"/\n" + + "\007persona\030\001 \001(\0162?.google.cloud.ces.v1beta.Cha" + + "nnelProfile.PersonaProperty.PersonaB\004\342A\001\001\"/\n" + "\007Persona\022\013\n" + "\007UNKNOWN\020\000\022\013\n" - + "\007CONCISE\020\001\022\n\n" + + "\007CONCISE\020\001\022\n" + + "\n" + "\006CHATTY\020\002\032\215\005\n" + "\017WebWidgetConfig\022X\n" - + "\010modality\030\001 \001(\0162@.google." - + "cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ModalityB\004\342A\001\001\022R\n" - + "\005theme\030\002 \001(\0162=." - + "google.cloud.ces.v1beta.ChannelProfile.WebWidgetConfig.ThemeB\004\342A\001\001\022\036\n" + + "\010modality\030\001 \001(\0162@.google.cloud.ces.v1beta.Chann" + + "elProfile.WebWidgetConfig.ModalityB\004\342A\001\001\022R\n" + + "\005theme\030\002 \001(\0162=.google.cloud.ces.v1bet" + + "a.ChannelProfile.WebWidgetConfig.ThemeB\004\342A\001\001\022\036\n" + "\020web_widget_title\030\003 \001(\tB\004\342A\001\001\022i\n" - + "\021security_settings\030\004 \001(\0132H.google.cloud.ces.v1beta.ChannelP" - + "rofile.WebWidgetConfig.SecuritySettingsB\004\342A\001\001\032\230\001\n" + + "\021security_settings\030\004 \001(\0132H.google.cloud.c" + + "es.v1beta.ChannelProfile.WebWidgetConfig.SecuritySettingsB\004\342A\001\001\032\230\001\n" + "\020SecuritySettings\022\"\n" + "\024enable_public_access\030\001 \001(\010B\004\342A\001\001\022!\n" + "\023enable_origin_check\030\004 \001(\010B\004\342A\001\001\022\035\n" @@ -219,8 +237,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\006 \001(\tB\004\342A\001\003\032\211\001\n" + "\017InstagramConfig\022\"\n" + "\024instagram_account_id\030\001 \001(\tB\004\342A\001\002\022\032\n" - + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\033\n" - + "\r" + + "\014display_name\030\002 \001(\tB\004\342A\001\003\022\033\n\r" + "thumbnail_url\030\003 \001(\tB\004\342A\001\003\022\031\n" + "\013description\030\004 \001(\tB\004\342A\001\003\"\351\001\n" + "\013ChannelType\022\013\n" @@ -246,20 +263,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013child_spans\030\005" + " \003(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\003\"\375\001\n" + "\034EvaluationRunCachingSettings\022n\n" - + "\020run_caching_mode\030\001 \001(\0162N.google.cloud.ces.v1beta.Evaluation" - + "RunCachingSettings.EvaluationRunCachingModeB\004\342A\001\001\"m\n" + + "\020run_caching_mode\030\001 \001(\0162N.google.cloud.ces" + + ".v1beta.EvaluationRunCachingSettings.EvaluationRunCachingModeB\004\342A\001\001\"m\n" + "\030EvaluationRunCachingMode\022+\n" + "\'EVALUATION_RUN_CACHING_MODE_UNSPECIFIED\020\000\022\r\n" + "\tFORCE_RUN\020\001\022\025\n" - + "\021SKIP_IF_UNCHANGED\020\002*R\n\r" + + "\021SKIP_IF_UNCHANGED\020\002\"2\n" + + "\007UiEvent\022\021\n" + + "\tmime_type\030\001 \001(\t\022\024\n" + + "\014json_payload\030\002 \001(\t\"(\n" + + "\021SessionCheckpoint\022\023\n" + + "\013user_intent\030\001 \001(\t*R\n\r" + "ExecutionType\022\036\n" + "\032EXECUTION_TYPE_UNSPECIFIED\020\000\022\017\n" + "\013SYNCHRONOUS\020\001\022\020\n" + "\014ASYNCHRONOUS\020\002B\332\001\n" - + "\033com.google.cloud.ces.v1betaB\013Co" - + "mmonProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" - + "\'servicedirectory.googleapis.com/Service\022Qprojects/{projec" - + "t}/locations/{location}/namespaces/{namespace}/services/{service}b\006proto3" + + "\033com.google.cloud.ces.v1betaB\013CommonProt" + + "oP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A|\n" + + "\'servicedirectory.googleapis.com/Service\022Qprojects/{project}/locat" + + "ions/{location}/namespaces/{namespace}/services/{service}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -284,7 +306,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ModelSettings_descriptor, new java.lang.String[] { - "Model", "Temperature", + "Model", "Temperature", "ThinkingLevel", }); internal_static_google_cloud_ces_v1beta_TriggerAction_descriptor = getDescriptor().getMessageType(2); @@ -427,6 +449,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "RunCachingMode", }); + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor = getDescriptor().getMessageType(8); + internal_static_google_cloud_ces_v1beta_UiEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_UiEvent_descriptor, + new java.lang.String[] { + "MimeType", "JsonPayload", + }); + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_SessionCheckpoint_descriptor, + new java.lang.String[] { + "UserIntent", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java index 1cbe2f950dc3..6e46ad73304a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Conversation.java @@ -893,6 +893,34 @@ public interface TurnOrBuilder * */ com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder(); + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + java.lang.String getUserIntendedText(); + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + com.google.protobuf.ByteString getUserIntendedTextBytes(); } /** @@ -927,6 +955,7 @@ private Turn(com.google.protobuf.GeneratedMessage.Builder builder) { private Turn() { messages_ = java.util.Collections.emptyList(); + userIntendedText_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1088,6 +1117,61 @@ public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; } + public static final int USER_INTENDED_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object userIntendedText_ = ""; + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + @java.lang.Override + public java.lang.String getUserIntendedText() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userIntendedText_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional. The intended ground-truth text from the Simulated Caller
+     * (Polysynth). Only populated when word error rate metrics are enabled.
+     * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserIntendedTextBytes() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userIntendedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1108,6 +1192,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getRootSpan()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userIntendedText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, userIntendedText_); + } getUnknownFields().writeTo(output); } @@ -1123,6 +1210,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRootSpan()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(userIntendedText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, userIntendedText_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1144,6 +1234,7 @@ public boolean equals(final java.lang.Object obj) { if (hasRootSpan()) { if (!getRootSpan().equals(other.getRootSpan())) return false; } + if (!getUserIntendedText().equals(other.getUserIntendedText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1163,6 +1254,8 @@ public int hashCode() { hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; hash = (53 * hash) + getRootSpan().hashCode(); } + hash = (37 * hash) + USER_INTENDED_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getUserIntendedText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1325,6 +1418,7 @@ public Builder clear() { rootSpanBuilder_.dispose(); rootSpanBuilder_ = null; } + userIntendedText_ = ""; return this; } @@ -1380,6 +1474,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Conversation.Turn result) result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.userIntendedText_ = userIntendedText_; + } result.bitField0_ |= to_bitField0_; } @@ -1426,6 +1523,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Conversation.Turn other) { if (other.hasRootSpan()) { mergeRootSpan(other.getRootSpan()); } + if (!other.getUserIntendedText().isEmpty()) { + userIntendedText_ = other.userIntendedText_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1472,6 +1574,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + userIntendedText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2122,6 +2230,122 @@ public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { return rootSpanBuilder_; } + private java.lang.Object userIntendedText_ = ""; + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The userIntendedText. + */ + public java.lang.String getUserIntendedText() { + java.lang.Object ref = userIntendedText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userIntendedText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for userIntendedText. + */ + public com.google.protobuf.ByteString getUserIntendedTextBytes() { + java.lang.Object ref = userIntendedText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userIntendedText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The userIntendedText to set. + * @return This builder for chaining. + */ + public Builder setUserIntendedText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + userIntendedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUserIntendedText() { + userIntendedText_ = getDefaultInstance().getUserIntendedText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The intended ground-truth text from the Simulated Caller
+       * (Polysynth). Only populated when word error rate metrics are enabled.
+       * 
+ * + * string user_intended_text = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for userIntendedText to set. + * @return This builder for chaining. + */ + public Builder setUserIntendedTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + userIntendedText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Conversation.Turn) } @@ -2456,7 +2680,7 @@ public int getTurnCount() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -2477,7 +2701,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Override @@ -4704,7 +4928,7 @@ public Builder clearTurnCount() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Override @@ -4725,7 +4949,7 @@ public int getChannelTypeValue() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @param value The enum numeric value on the wire for channelType to set. * @return This builder for chaining. */ @@ -4749,7 +4973,7 @@ public Builder setChannelTypeValue(int value) { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Override @@ -4774,7 +4998,7 @@ public com.google.cloud.ces.v1beta.Conversation.ChannelType getChannelType() { * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @param value The channelType to set. * @return This builder for chaining. */ @@ -4801,7 +5025,7 @@ public Builder setChannelType(com.google.cloud.ces.v1beta.Conversation.ChannelTy * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java index c150593e1a11..a9118990538b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationOrBuilder.java @@ -227,7 +227,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The enum numeric value on the wire for channelType. */ @java.lang.Deprecated @@ -245,7 +245,7 @@ public interface ConversationOrBuilder * * * @deprecated google.cloud.ces.v1beta.Conversation.channel_type is deprecated. See - * google/cloud/ces/v1beta/conversation.proto;l=133 + * google/cloud/ces/v1beta/conversation.proto;l=137 * @return The channelType. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java index 1729e5000bca..f5cd5fbf0463 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationProto.java @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "roto\022\027google.cloud.ces.v1beta\032\037google/ap" + "i/field_behavior.proto\032\031google/api/resou" + "rce.proto\032$google/cloud/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example" - + ".proto\032\037google/protobuf/timestamp.proto\"\317\n\n" + + ".proto\032\037google/protobuf/timestamp.proto\"\362\n\n" + "\014Conversation\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\0224\n\n" + "start_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" @@ -84,11 +84,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB&\342A\001\003\372A\037\n" + "\035ces.googleapis.com/AppVersion\022\033\n\r" + "language_code\030\016 \001(\tB\004\342A\001\003\0226\n" - + "\010messages\030\002 \003(\0132 .google.cloud.ces.v1beta.MessageB\002\030\001\032x\n" + + "\010messages\030\002 \003(\0132" + + " .google.cloud.ces.v1beta.MessageB\002\030\001\032\232\001\n" + "\004Turn\0228\n" + "\010messages\030\001 \003(\0132" + " .google.cloud.ces.v1beta.MessageB\004\342A\001\001\0226\n" - + "\troot_span\030\002 \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\001\"P\n" + + "\troot_span\030\002 \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\001\022" + + " \n" + + "\022user_intended_text\030\003 \001(\tB\004\342A\001\001\"P\n" + "\013ChannelType\022\034\n" + "\030CHANNEL_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -109,11 +112,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017INPUT_TYPE_BLOB\020\004\022\034\n" + "\030INPUT_TYPE_TOOL_RESPONSE\020\005\022\030\n" + "\024INPUT_TYPE_VARIABLES\020\006:\223\001\352A\217\001\n" - + "\037ces.googleapis.com/Conversation\022Oprojects/{project}/location" - + "s/{location}/apps/{app}/conversations/{conversation}*\r" + + "\037ces.googleapis.com/Conversation\022Oprojects/{project}/locations/{lo" + + "cation}/apps/{app}/conversations/{conversation}*\r" + "conversations2\014conversationBa\n" - + "\033com.google.cloud.ces.v1betaB\021ConversationProtoP\001Z-cloud.google.com/go/ces/a" - + "piv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\021Conversatio" + + "nProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -151,7 +154,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Conversation_Turn_descriptor, new java.lang.String[] { - "Messages", "RootSpan", + "Messages", "RootSpan", "UserIntendedText", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java new file mode 100644 index 000000000000..2bd951c19634 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequest.java @@ -0,0 +1,1410 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.CreateAssistantSession][google.cloud.ces.v1beta.AssistantService.CreateAssistantSession].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CreateAssistantSessionRequest} + */ +@com.google.protobuf.Generated +public final class CreateAssistantSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + CreateAssistantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAssistantSessionRequest"); + } + + // Use CreateAssistantSessionRequest.newBuilder() to construct. + private CreateAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAssistantSessionRequest() { + parent_ = ""; + assistantSessionId_ = ""; + assistantSessionMessages_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 ASSISTANT_SESSION_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object assistantSessionId_ = ""; + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + @java.lang.Override + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List assistantSessionMessages_; + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAssistantSessionMessagesList() { + return assistantSessionMessages_; + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getAssistantSessionMessagesOrBuilderList() { + return assistantSessionMessages_; + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getAssistantSessionMessagesCount() { + return assistantSessionMessages_.size(); + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index) { + return assistantSessionMessages_.get(index); + } + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getAssistantSessionMessagesOrBuilder( + int index) { + return assistantSessionMessages_.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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, assistantSessionId_); + } + for (int i = 0; i < assistantSessionMessages_.size(); i++) { + output.writeMessage(3, assistantSessionMessages_.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(assistantSessionId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, assistantSessionId_); + } + for (int i = 0; i < assistantSessionMessages_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, assistantSessionMessages_.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.ces.v1beta.CreateAssistantSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAssistantSessionId().equals(other.getAssistantSessionId())) return false; + if (!getAssistantSessionMessagesList().equals(other.getAssistantSessionMessagesList())) + 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) + ASSISTANT_SESSION_ID_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionId().hashCode(); + if (getAssistantSessionMessagesCount() > 0) { + hash = (37 * hash) + ASSISTANT_SESSION_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionMessagesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest 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.ces.v1beta.CreateAssistantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + 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.ces.v1beta.CreateAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.CreateAssistantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [AssistantService.CreateAssistantSession][google.cloud.ces.v1beta.AssistantService.CreateAssistantSession].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CreateAssistantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + com.google.cloud.ces.v1beta.CreateAssistantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + assistantSessionId_ = ""; + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessages_ = java.util.Collections.emptyList(); + } else { + assistantSessionMessages_ = null; + assistantSessionMessagesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_CreateAssistantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CreateAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.CreateAssistantSessionRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result) { + if (assistantSessionMessagesBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + assistantSessionMessages_ = + java.util.Collections.unmodifiableList(assistantSessionMessages_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.assistantSessionMessages_ = assistantSessionMessages_; + } else { + result.assistantSessionMessages_ = assistantSessionMessagesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.assistantSessionId_ = assistantSessionId_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.CreateAssistantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CreateAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.CreateAssistantSessionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAssistantSessionId().isEmpty()) { + assistantSessionId_ = other.assistantSessionId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (assistantSessionMessagesBuilder_ == null) { + if (!other.assistantSessionMessages_.isEmpty()) { + if (assistantSessionMessages_.isEmpty()) { + assistantSessionMessages_ = other.assistantSessionMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.addAll(other.assistantSessionMessages_); + } + onChanged(); + } + } else { + if (!other.assistantSessionMessages_.isEmpty()) { + if (assistantSessionMessagesBuilder_.isEmpty()) { + assistantSessionMessagesBuilder_.dispose(); + assistantSessionMessagesBuilder_ = null; + assistantSessionMessages_ = other.assistantSessionMessages_; + bitField0_ = (bitField0_ & ~0x00000004); + assistantSessionMessagesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantSessionMessagesFieldBuilder() + : null; + } else { + assistantSessionMessagesBuilder_.addAllMessages(other.assistantSessionMessages_); + } + } + } + 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: + { + assistantSessionId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.ces.v1beta.AssistantMessage m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantMessage.parser(), extensionRegistry); + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(m); + } else { + assistantSessionMessagesBuilder_.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 parent_ = ""; + + /** + * + * + *
+     * Required. The app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to create the assistant session in
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 assistantSessionId_ = ""; + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + public java.lang.String getAssistantSessionId() { + java.lang.Object ref = assistantSessionId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + assistantSessionId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + public com.google.protobuf.ByteString getAssistantSessionIdBytes() { + java.lang.Object ref = assistantSessionId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + assistantSessionId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + assistantSessionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAssistantSessionId() { + assistantSessionId_ = getDefaultInstance().getAssistantSessionId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The ID to use for the assistant session, which will become the
+     * final component of the assistant session's resource name. If not provided,
+     * a unique ID will be automatically assigned for the assistant session.
+     * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for assistantSessionId to set. + * @return This builder for chaining. + */ + public Builder setAssistantSessionIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + assistantSessionId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List assistantSessionMessages_ = + java.util.Collections.emptyList(); + + private void ensureAssistantSessionMessagesIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + assistantSessionMessages_ = + new java.util.ArrayList( + assistantSessionMessages_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + assistantSessionMessagesBuilder_; + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesList() { + if (assistantSessionMessagesBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistantSessionMessages_); + } else { + return assistantSessionMessagesBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getAssistantSessionMessagesCount() { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.size(); + } else { + return assistantSessionMessagesBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index) { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.get(index); + } else { + return assistantSessionMessagesBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.set(index, value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages(com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage value) { + if (assistantSessionMessagesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(index, value); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAssistantSessionMessages( + int index, com.google.cloud.ces.v1beta.AssistantMessage.Builder builderForValue) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllAssistantSessionMessages( + java.lang.Iterable values) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistantSessionMessages_); + onChanged(); + } else { + assistantSessionMessagesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAssistantSessionMessages() { + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessages_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + assistantSessionMessagesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAssistantSessionMessages(int index) { + if (assistantSessionMessagesBuilder_ == null) { + ensureAssistantSessionMessagesIsMutable(); + assistantSessionMessages_.remove(index); + onChanged(); + } else { + assistantSessionMessagesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder getAssistantSessionMessagesBuilder( + int index) { + return internalGetAssistantSessionMessagesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessageOrBuilder + getAssistantSessionMessagesOrBuilder(int index) { + if (assistantSessionMessagesBuilder_ == null) { + return assistantSessionMessages_.get(index); + } else { + return assistantSessionMessagesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesOrBuilderList() { + if (assistantSessionMessagesBuilder_ != null) { + return assistantSessionMessagesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistantSessionMessages_); + } + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder + addAssistantSessionMessagesBuilder() { + return internalGetAssistantSessionMessagesFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AssistantMessage.Builder addAssistantSessionMessagesBuilder( + int index) { + return internalGetAssistantSessionMessagesFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantMessage.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. The messages to seed the assistant session with.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getAssistantSessionMessagesBuilderList() { + return internalGetAssistantSessionMessagesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder> + internalGetAssistantSessionMessagesFieldBuilder() { + if (assistantSessionMessagesBuilder_ == null) { + assistantSessionMessagesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantMessage, + com.google.cloud.ces.v1beta.AssistantMessage.Builder, + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder>( + assistantSessionMessages_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + assistantSessionMessages_ = null; + } + return assistantSessionMessagesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.CreateAssistantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CreateAssistantSessionRequest(); + } + + public static com.google.cloud.ces.v1beta.CreateAssistantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAssistantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.CreateAssistantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..93a36325f9d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CreateAssistantSessionRequestOrBuilder.java @@ -0,0 +1,159 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CreateAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CreateAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The app to create the assistant session in
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The assistantSessionId. + */ + java.lang.String getAssistantSessionId(); + + /** + * + * + *
+   * Optional. The ID to use for the assistant session, which will become the
+   * final component of the assistant session's resource name. If not provided,
+   * a unique ID will be automatically assigned for the assistant session.
+   * 
+ * + * string assistant_session_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for assistantSessionId. + */ + com.google.protobuf.ByteString getAssistantSessionIdBytes(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getAssistantSessionMessagesList(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessage getAssistantSessionMessages(int index); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAssistantSessionMessagesCount(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getAssistantSessionMessagesOrBuilderList(); + + /** + * + * + *
+   * Optional. The messages to seed the assistant session with.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.AssistantMessage assistant_session_messages = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AssistantMessageOrBuilder getAssistantSessionMessagesOrBuilder( + int index); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java new file mode 100644 index 000000000000..b16643f3b734 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSample.java @@ -0,0 +1,3422 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Configuration for a custom voice sample used for voice cloning.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample} + */ +@com.google.protobuf.Generated +public final class CustomVoiceSample extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CustomVoiceSample) + CustomVoiceSampleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CustomVoiceSample"); + } + + // Use CustomVoiceSample.newBuilder() to construct. + private CustomVoiceSample(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomVoiceSample() { + name_ = ""; + voiceSampleGcsUri_ = ""; + consentAudioGcsUri_ = ""; + voiceInstruction_ = ""; + previewAudioContent_ = com.google.protobuf.ByteString.EMPTY; + previewText_ = ""; + warnings_ = java.util.Collections.emptyList(); + voiceInstructionMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder.class); + } + + /** + * + * + *
+   * Instruction mode for the voice sample.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode} + */ + public enum VoiceInstructionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified instruction mode. Defaults to NO_INSTRUCTION.
+     * 
+ * + * VOICE_INSTRUCTION_MODE_UNSPECIFIED = 0; + */ + VOICE_INSTRUCTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+     * No voice instruction will be used.
+     * 
+ * + * NO_INSTRUCTION = 1; + */ + NO_INSTRUCTION(1), + /** + * + * + *
+     * Voice instruction will be automatically generated by AI from the audio
+     * sample.
+     * 
+ * + * GENERATE_INSTRUCTION = 2; + */ + GENERATE_INSTRUCTION(2), + /** + * + * + *
+     * Custom voice instruction provided by the user.
+     * 
+ * + * CUSTOM_INSTRUCTION = 3; + */ + CUSTOM_INSTRUCTION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "VoiceInstructionMode"); + } + + /** + * + * + *
+     * Unspecified instruction mode. Defaults to NO_INSTRUCTION.
+     * 
+ * + * VOICE_INSTRUCTION_MODE_UNSPECIFIED = 0; + */ + public static final int VOICE_INSTRUCTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * No voice instruction will be used.
+     * 
+ * + * NO_INSTRUCTION = 1; + */ + public static final int NO_INSTRUCTION_VALUE = 1; + + /** + * + * + *
+     * Voice instruction will be automatically generated by AI from the audio
+     * sample.
+     * 
+ * + * GENERATE_INSTRUCTION = 2; + */ + public static final int GENERATE_INSTRUCTION_VALUE = 2; + + /** + * + * + *
+     * Custom voice instruction provided by the user.
+     * 
+ * + * CUSTOM_INSTRUCTION = 3; + */ + public static final int CUSTOM_INSTRUCTION_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 VoiceInstructionMode 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 VoiceInstructionMode forNumber(int value) { + switch (value) { + case 0: + return VOICE_INSTRUCTION_MODE_UNSPECIFIED; + case 1: + return NO_INSTRUCTION; + case 2: + return GENERATE_INSTRUCTION; + case 3: + return CUSTOM_INSTRUCTION; + 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 VoiceInstructionMode findValueByNumber(int number) { + return VoiceInstructionMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.getDescriptor().getEnumTypes().get(0); + } + + private static final VoiceInstructionMode[] VALUES = values(); + + public static VoiceInstructionMode 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 VoiceInstructionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode) + } + + public interface WarningOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + int getTypeValue(); + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType(); + } + + /** + * + * + *
+   * A warning message encountered during voice sample processing.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning} + */ + public static final class Warning extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + WarningOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Warning"); + } + + // Use Warning.newBuilder() to construct. + private Warning(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Warning() { + message_ = ""; + type_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder.class); + } + + /** + * + * + *
+     * Type of warning encountered during voice sample processing.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType} + */ + public enum WarningType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Unspecified warning type.
+       * 
+ * + * WARNING_TYPE_UNSPECIFIED = 0; + */ + WARNING_TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * The audio level of the voice sample is too low (e.g. low RMS
+       * amplitude).
+       * 
+ * + * LOW_AUDIO_LEVEL = 1; + */ + LOW_AUDIO_LEVEL(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "WarningType"); + } + + /** + * + * + *
+       * Unspecified warning type.
+       * 
+ * + * WARNING_TYPE_UNSPECIFIED = 0; + */ + public static final int WARNING_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * The audio level of the voice sample is too low (e.g. low RMS
+       * amplitude).
+       * 
+ * + * LOW_AUDIO_LEVEL = 1; + */ + public static final int LOW_AUDIO_LEVEL_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 WarningType 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 WarningType forNumber(int value) { + switch (value) { + case 0: + return WARNING_TYPE_UNSPECIFIED; + case 1: + return LOW_AUDIO_LEVEL; + 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 WarningType findValueByNumber(int number) { + return WarningType.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final WarningType[] VALUES = values(); + + public static WarningType 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 WarningType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType) + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+     * Output only. A human-readable description of the warning.
+     * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 TYPE_FIELD_NUMBER = 2; + private int type_ = 0; + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Output only. The type of the warning.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType result = + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.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.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + if (type_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType + .WARNING_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + if (type_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType + .WARNING_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, 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.ces.v1beta.CustomVoiceSample.Warning)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning other = + (com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) obj; + + if (!getMessage().equals(other.getMessage())) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning 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.ces.v1beta.CustomVoiceSample.Warning parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + 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.ces.v1beta.CustomVoiceSample.Warning parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.CustomVoiceSample.Warning prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A warning message encountered during voice sample processing.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample.Warning} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + type_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_Warning_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning build() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning buildPartial() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result = + new com.google.cloud.ces.v1beta.CustomVoiceSample.Warning(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.type_ = type_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) { + return mergeFrom((com.google.cloud.ces.v1beta.CustomVoiceSample.Warning) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning other) { + if (other == com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()) + return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + bitField0_ |= 0x00000001; + 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 16: + { + type_ = 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 java.lang.Object message_ = ""; + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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; + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. A human-readable description of the warning.
+       * 
+ * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @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 int type_ = 0; + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType getType() { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType result = + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Output only. The type of the warning.
+       * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.Warning.WarningType type = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000002); + type_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CustomVoiceSample.Warning) + private static final com.google.cloud.ces.v1beta.CustomVoiceSample.Warning DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CustomVoiceSample.Warning(); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Warning parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.CustomVoiceSample.Warning getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 VOICE_SAMPLE_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceSampleGcsUri_ = ""; + + /** + * + * + *
+   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+   * audio sample should be a mono-channel, 24kHz WAV file.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + @java.lang.Override + public java.lang.String getVoiceSampleGcsUri() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceSampleGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+   * audio sample should be a mono-channel, 24kHz WAV file.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceSampleGcsUriBytes() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceSampleGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONSENT_AUDIO_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object consentAudioGcsUri_ = ""; + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + @java.lang.Override + public java.lang.String getConsentAudioGcsUri() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consentAudioGcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getConsentAudioGcsUriBytes() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consentAudioGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VOICE_INSTRUCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object voiceInstruction_ = ""; + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + @java.lang.Override + public java.lang.String getVoiceInstruction() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceInstruction_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getVoiceInstructionBytes() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PREVIEW_AUDIO_CONTENT_FIELD_NUMBER = 5; + private com.google.protobuf.ByteString previewAudioContent_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+   * Output only. Synthesized preview audio for custom voice, formatted as
+   * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+   * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewAudioContent() { + return previewAudioContent_; + } + + public static final int PREVIEW_TEXT_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object previewText_ = ""; + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + @java.lang.Override + public java.lang.String getPreviewText() { + java.lang.Object ref = previewText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewText_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewTextBytes() { + java.lang.Object ref = previewText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int WARNINGS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private java.util.List warnings_; + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getWarningsList() { + return warnings_; + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getWarningsOrBuilderList() { + return warnings_; + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getWarningsCount() { + return warnings_.size(); + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index) { + return warnings_.get(index); + } + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder( + int index) { + return warnings_.get(index); + } + + public static final int VOICE_INSTRUCTION_MODE_FIELD_NUMBER = 8; + private int voiceInstructionMode_ = 0; + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + @java.lang.Override + public int getVoiceInstructionModeValue() { + return voiceInstructionMode_; + } + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + getVoiceInstructionMode() { + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode result = + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.forNumber( + voiceInstructionMode_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceSampleGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consentAudioGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, consentAudioGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceInstruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, voiceInstruction_); + } + if (!previewAudioContent_.isEmpty()) { + output.writeBytes(5, previewAudioContent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, previewText_); + } + for (int i = 0; i < warnings_.size(); i++) { + output.writeMessage(7, warnings_.get(i)); + } + if (voiceInstructionMode_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + .VOICE_INSTRUCTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(8, voiceInstructionMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceSampleGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, voiceSampleGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(consentAudioGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, consentAudioGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(voiceInstruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, voiceInstruction_); + } + if (!previewAudioContent_.isEmpty()) { + size += com.google.protobuf.CodedOutputStream.computeBytesSize(5, previewAudioContent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(previewText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, previewText_); + } + for (int i = 0; i < warnings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, warnings_.get(i)); + } + if (voiceInstructionMode_ + != com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + .VOICE_INSTRUCTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, voiceInstructionMode_); + } + 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.ces.v1beta.CustomVoiceSample)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.CustomVoiceSample other = + (com.google.cloud.ces.v1beta.CustomVoiceSample) obj; + + if (!getName().equals(other.getName())) return false; + if (!getVoiceSampleGcsUri().equals(other.getVoiceSampleGcsUri())) return false; + if (!getConsentAudioGcsUri().equals(other.getConsentAudioGcsUri())) return false; + if (!getVoiceInstruction().equals(other.getVoiceInstruction())) return false; + if (!getPreviewAudioContent().equals(other.getPreviewAudioContent())) return false; + if (!getPreviewText().equals(other.getPreviewText())) return false; + if (!getWarningsList().equals(other.getWarningsList())) return false; + if (voiceInstructionMode_ != other.voiceInstructionMode_) 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) + VOICE_SAMPLE_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getVoiceSampleGcsUri().hashCode(); + hash = (37 * hash) + CONSENT_AUDIO_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getConsentAudioGcsUri().hashCode(); + hash = (37 * hash) + VOICE_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getVoiceInstruction().hashCode(); + hash = (37 * hash) + PREVIEW_AUDIO_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getPreviewAudioContent().hashCode(); + hash = (37 * hash) + PREVIEW_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getPreviewText().hashCode(); + if (getWarningsCount() > 0) { + hash = (37 * hash) + WARNINGS_FIELD_NUMBER; + hash = (53 * hash) + getWarningsList().hashCode(); + } + hash = (37 * hash) + VOICE_INSTRUCTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + voiceInstructionMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample 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.ces.v1beta.CustomVoiceSample parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + 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.ces.v1beta.CustomVoiceSample parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.CustomVoiceSample prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for a custom voice sample used for voice cloning.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.CustomVoiceSample} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.CustomVoiceSample) + com.google.cloud.ces.v1beta.CustomVoiceSampleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.CustomVoiceSample.class, + com.google.cloud.ces.v1beta.CustomVoiceSample.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.CustomVoiceSample.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + voiceSampleGcsUri_ = ""; + consentAudioGcsUri_ = ""; + voiceInstruction_ = ""; + previewAudioContent_ = com.google.protobuf.ByteString.EMPTY; + previewText_ = ""; + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + } else { + warnings_ = null; + warningsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + voiceInstructionMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_CustomVoiceSample_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample build() { + com.google.cloud.ces.v1beta.CustomVoiceSample result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample buildPartial() { + com.google.cloud.ces.v1beta.CustomVoiceSample result = + new com.google.cloud.ces.v1beta.CustomVoiceSample(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.CustomVoiceSample result) { + if (warningsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + warnings_ = java.util.Collections.unmodifiableList(warnings_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.warnings_ = warnings_; + } else { + result.warnings_ = warningsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.CustomVoiceSample result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.voiceSampleGcsUri_ = voiceSampleGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.consentAudioGcsUri_ = consentAudioGcsUri_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.voiceInstruction_ = voiceInstruction_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.previewAudioContent_ = previewAudioContent_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.previewText_ = previewText_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.voiceInstructionMode_ = voiceInstructionMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.CustomVoiceSample) { + return mergeFrom((com.google.cloud.ces.v1beta.CustomVoiceSample) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.CustomVoiceSample other) { + if (other == com.google.cloud.ces.v1beta.CustomVoiceSample.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getVoiceSampleGcsUri().isEmpty()) { + voiceSampleGcsUri_ = other.voiceSampleGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getConsentAudioGcsUri().isEmpty()) { + consentAudioGcsUri_ = other.consentAudioGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getVoiceInstruction().isEmpty()) { + voiceInstruction_ = other.voiceInstruction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getPreviewAudioContent().isEmpty()) { + setPreviewAudioContent(other.getPreviewAudioContent()); + } + if (!other.getPreviewText().isEmpty()) { + previewText_ = other.previewText_; + bitField0_ |= 0x00000020; + onChanged(); + } + if (warningsBuilder_ == null) { + if (!other.warnings_.isEmpty()) { + if (warnings_.isEmpty()) { + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureWarningsIsMutable(); + warnings_.addAll(other.warnings_); + } + onChanged(); + } + } else { + if (!other.warnings_.isEmpty()) { + if (warningsBuilder_.isEmpty()) { + warningsBuilder_.dispose(); + warningsBuilder_ = null; + warnings_ = other.warnings_; + bitField0_ = (bitField0_ & ~0x00000040); + warningsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetWarningsFieldBuilder() + : null; + } else { + warningsBuilder_.addAllMessages(other.warnings_); + } + } + } + if (other.voiceInstructionMode_ != 0) { + setVoiceInstructionModeValue(other.getVoiceInstructionModeValue()); + } + 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: + { + voiceSampleGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + consentAudioGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + voiceInstruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + previewAudioContent_ = input.readBytes(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + previewText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning m = + input.readMessage( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.parser(), + extensionRegistry); + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(m); + } else { + warningsBuilder_.addMessage(m); + } + break; + } // case 58 + case 64: + { + voiceInstructionMode_ = input.readEnum(); + bitField0_ |= 0x00000080; + break; + } // case 64 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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_ = ""; + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The user-defined name for the custom voice sample.
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 voiceSampleGcsUri_ = ""; + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + public java.lang.String getVoiceSampleGcsUri() { + java.lang.Object ref = voiceSampleGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceSampleGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + public com.google.protobuf.ByteString getVoiceSampleGcsUriBytes() { + java.lang.Object ref = voiceSampleGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceSampleGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceSampleGcsUri to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceSampleGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceSampleGcsUri() { + voiceSampleGcsUri_ = getDefaultInstance().getVoiceSampleGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+     * audio sample should be a mono-channel, 24kHz WAV file.
+     * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voiceSampleGcsUri to set. + * @return This builder for chaining. + */ + public Builder setVoiceSampleGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceSampleGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object consentAudioGcsUri_ = ""; + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + public java.lang.String getConsentAudioGcsUri() { + java.lang.Object ref = consentAudioGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + consentAudioGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + public com.google.protobuf.ByteString getConsentAudioGcsUriBytes() { + java.lang.Object ref = consentAudioGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + consentAudioGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The consentAudioGcsUri to set. + * @return This builder for chaining. + */ + public Builder setConsentAudioGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + consentAudioGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConsentAudioGcsUri() { + consentAudioGcsUri_ = getDefaultInstance().getConsentAudioGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Consent audio for voice cloning.
+     * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for consentAudioGcsUri to set. + * @return This builder for chaining. + */ + public Builder setConsentAudioGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + consentAudioGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object voiceInstruction_ = ""; + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + public java.lang.String getVoiceInstruction() { + java.lang.Object ref = voiceInstruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + voiceInstruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + public com.google.protobuf.ByteString getVoiceInstructionBytes() { + java.lang.Object ref = voiceInstruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + voiceInstruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The voiceInstruction to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + voiceInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVoiceInstruction() { + voiceInstruction_ = getDefaultInstance().getVoiceInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Natural language instructions for voice style, tone, pacing, or
+     * pronunciation.
+     * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for voiceInstruction to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + voiceInstruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.ByteString previewAudioContent_ = + com.google.protobuf.ByteString.EMPTY; + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPreviewAudioContent() { + return previewAudioContent_; + } + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The previewAudioContent to set. + * @return This builder for chaining. + */ + public Builder setPreviewAudioContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + previewAudioContent_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. Synthesized preview audio for custom voice, formatted as
+     * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+     * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewAudioContent() { + bitField0_ = (bitField0_ & ~0x00000010); + previewAudioContent_ = getDefaultInstance().getPreviewAudioContent(); + onChanged(); + return this; + } + + private java.lang.Object previewText_ = ""; + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + public java.lang.String getPreviewText() { + java.lang.Object ref = previewText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + previewText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + public com.google.protobuf.ByteString getPreviewTextBytes() { + java.lang.Object ref = previewText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + previewText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The previewText to set. + * @return This builder for chaining. + */ + public Builder setPreviewText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + previewText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPreviewText() { + previewText_ = getDefaultInstance().getPreviewText(); + bitField0_ = (bitField0_ & ~0x00000020); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Text for synthesizing preview audio for custom voice.
+     * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for previewText to set. + * @return This builder for chaining. + */ + public Builder setPreviewTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + previewText_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private java.util.List warnings_ = + java.util.Collections.emptyList(); + + private void ensureWarningsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + warnings_ = + new java.util.ArrayList( + warnings_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder> + warningsBuilder_; + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getWarningsList() { + if (warningsBuilder_ == null) { + return java.util.Collections.unmodifiableList(warnings_); + } else { + return warningsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getWarningsCount() { + if (warningsBuilder_ == null) { + return warnings_.size(); + } else { + return warningsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.set(index, value); + onChanged(); + } else { + warningsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.set(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(value); + onChanged(); + } else { + warningsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning value) { + if (warningsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureWarningsIsMutable(); + warnings_.add(index, value); + onChanged(); + } else { + warningsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addWarnings( + int index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder builderForValue) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.add(index, builderForValue.build()); + onChanged(); + } else { + warningsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllWarnings( + java.lang.Iterable + values) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, warnings_); + onChanged(); + } else { + warningsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearWarnings() { + if (warningsBuilder_ == null) { + warnings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + warningsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeWarnings(int index) { + if (warningsBuilder_ == null) { + ensureWarningsIsMutable(); + warnings_.remove(index); + onChanged(); + } else { + warningsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder getWarningsBuilder( + int index) { + return internalGetWarningsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder( + int index) { + if (warningsBuilder_ == null) { + return warnings_.get(index); + } else { + return warningsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsOrBuilderList() { + if (warningsBuilder_ != null) { + return warningsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(warnings_); + } + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder addWarningsBuilder() { + return internalGetWarningsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder addWarningsBuilder( + int index) { + return internalGetWarningsFieldBuilder() + .addBuilder( + index, com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.getDefaultInstance()); + } + + /** + * + * + *
+     * Output only. Warning messages encountered during voice clone processing
+     * (e.g. low audio level).
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getWarningsBuilderList() { + return internalGetWarningsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder> + internalGetWarningsFieldBuilder() { + if (warningsBuilder_ == null) { + warningsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning, + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning.Builder, + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder>( + warnings_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + warnings_ = null; + } + return warningsBuilder_; + } + + private int voiceInstructionMode_ = 0; + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + @java.lang.Override + public int getVoiceInstructionModeValue() { + return voiceInstructionMode_; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for voiceInstructionMode to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionModeValue(int value) { + voiceInstructionMode_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode + getVoiceInstructionMode() { + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode result = + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.forNumber( + voiceInstructionMode_); + return result == null + ? com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The voiceInstructionMode to set. + * @return This builder for chaining. + */ + public Builder setVoiceInstructionMode( + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000080; + voiceInstructionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Instruction mode for the voice sample. If unspecified, defaults
+     * to NO_INSTRUCTION.
+     * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVoiceInstructionMode() { + bitField0_ = (bitField0_ & ~0x00000080); + voiceInstructionMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.CustomVoiceSample) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.CustomVoiceSample) + private static final com.google.cloud.ces.v1beta.CustomVoiceSample DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.CustomVoiceSample(); + } + + public static com.google.cloud.ces.v1beta.CustomVoiceSample getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomVoiceSample parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.CustomVoiceSample getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java new file mode 100644 index 000000000000..d021b07d93e1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/CustomVoiceSampleOrBuilder.java @@ -0,0 +1,279 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface CustomVoiceSampleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.CustomVoiceSample) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Optional. The user-defined name for the custom voice sample.
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+   * audio sample should be a mono-channel, 24kHz WAV file.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceSampleGcsUri. + */ + java.lang.String getVoiceSampleGcsUri(); + + /** + * + * + *
+   * Optional. The Cloud Storage URI to the audio sample for voice cloning. The
+   * audio sample should be a mono-channel, 24kHz WAV file.
+   * 
+ * + * string voice_sample_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceSampleGcsUri. + */ + com.google.protobuf.ByteString getVoiceSampleGcsUriBytes(); + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The consentAudioGcsUri. + */ + java.lang.String getConsentAudioGcsUri(); + + /** + * + * + *
+   * Optional. Consent audio for voice cloning.
+   * 
+ * + * string consent_audio_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for consentAudioGcsUri. + */ + com.google.protobuf.ByteString getConsentAudioGcsUriBytes(); + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The voiceInstruction. + */ + java.lang.String getVoiceInstruction(); + + /** + * + * + *
+   * Optional. Natural language instructions for voice style, tone, pacing, or
+   * pronunciation.
+   * 
+ * + * string voice_instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for voiceInstruction. + */ + com.google.protobuf.ByteString getVoiceInstructionBytes(); + + /** + * + * + *
+   * Output only. Synthesized preview audio for custom voice, formatted as
+   * canonical WAV (LINEAR16, 24kHz, 16-bit, mono).
+   * 
+ * + * bytes preview_audio_content = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The previewAudioContent. + */ + com.google.protobuf.ByteString getPreviewAudioContent(); + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The previewText. + */ + java.lang.String getPreviewText(); + + /** + * + * + *
+   * Optional. Text for synthesizing preview audio for custom voice.
+   * 
+ * + * string preview_text = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for previewText. + */ + com.google.protobuf.ByteString getPreviewTextBytes(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getWarningsList(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.Warning getWarnings(int index); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getWarningsCount(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getWarningsOrBuilderList(); + + /** + * + * + *
+   * Output only. Warning messages encountered during voice clone processing
+   * (e.g. low audio level).
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.CustomVoiceSample.Warning warnings = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.WarningOrBuilder getWarningsOrBuilder(int index); + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for voiceInstructionMode. + */ + int getVoiceInstructionModeValue(); + + /** + * + * + *
+   * Optional. Instruction mode for the voice sample. If unspecified, defaults
+   * to NO_INSTRUCTION.
+   * 
+ * + * + * .google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode voice_instruction_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The voiceInstructionMode. + */ + com.google.cloud.ces.v1beta.CustomVoiceSample.VoiceInstructionMode getVoiceInstructionMode(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java new file mode 100644 index 000000000000..6badb300cf00 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettings.java @@ -0,0 +1,639 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Settings for dashboards associated with the app, that show up in the
+ * Monitoring view.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DashboardSettings} + */ +@com.google.protobuf.Generated +public final class DashboardSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DashboardSettings) + DashboardSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DashboardSettings"); + } + + // Use DashboardSettings.newBuilder() to construct. + private DashboardSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DashboardSettings() { + defaultDashboard_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DashboardSettings.class, + com.google.cloud.ces.v1beta.DashboardSettings.Builder.class); + } + + public static final int DEFAULT_DASHBOARD_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object defaultDashboard_ = ""; + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + @java.lang.Override + public java.lang.String getDefaultDashboard() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDashboard_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDefaultDashboardBytes() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDashboard_ = 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.GeneratedMessage.isStringEmpty(defaultDashboard_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, defaultDashboard_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(defaultDashboard_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, defaultDashboard_); + } + 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.ces.v1beta.DashboardSettings)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DashboardSettings other = + (com.google.cloud.ces.v1beta.DashboardSettings) obj; + + if (!getDefaultDashboard().equals(other.getDefaultDashboard())) 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_DASHBOARD_FIELD_NUMBER; + hash = (53 * hash) + getDefaultDashboard().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings 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.ces.v1beta.DashboardSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + 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.ces.v1beta.DashboardSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.DashboardSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Settings for dashboards associated with the app, that show up in the
+   * Monitoring view.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DashboardSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DashboardSettings) + com.google.cloud.ces.v1beta.DashboardSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DashboardSettings.class, + com.google.cloud.ces.v1beta.DashboardSettings.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DashboardSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + defaultDashboard_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_DashboardSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings build() { + com.google.cloud.ces.v1beta.DashboardSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DashboardSettings buildPartial() { + com.google.cloud.ces.v1beta.DashboardSettings result = + new com.google.cloud.ces.v1beta.DashboardSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DashboardSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.defaultDashboard_ = defaultDashboard_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.DashboardSettings) { + return mergeFrom((com.google.cloud.ces.v1beta.DashboardSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DashboardSettings other) { + if (other == com.google.cloud.ces.v1beta.DashboardSettings.getDefaultInstance()) return this; + if (!other.getDefaultDashboard().isEmpty()) { + defaultDashboard_ = other.defaultDashboard_; + 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: + { + defaultDashboard_ = 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 defaultDashboard_ = ""; + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + public java.lang.String getDefaultDashboard() { + java.lang.Object ref = defaultDashboard_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + defaultDashboard_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + public com.google.protobuf.ByteString getDefaultDashboardBytes() { + java.lang.Object ref = defaultDashboard_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + defaultDashboard_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The defaultDashboard to set. + * @return This builder for chaining. + */ + public Builder setDefaultDashboard(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + defaultDashboard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearDefaultDashboard() { + defaultDashboard_ = getDefaultInstance().getDefaultDashboard(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The resource name of the default Contact Center Insights
+     * dashboard associated with the app. This is the dashboard that will be
+     * displayed when users navigate to the Monitoring view for the app.
+     *
+     * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+     * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for defaultDashboard to set. + * @return This builder for chaining. + */ + public Builder setDefaultDashboardBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + defaultDashboard_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DashboardSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DashboardSettings) + private static final com.google.cloud.ces.v1beta.DashboardSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DashboardSettings(); + } + + public static com.google.cloud.ces.v1beta.DashboardSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DashboardSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.DashboardSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java new file mode 100644 index 000000000000..94980e16c8de --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DashboardSettingsOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/app.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface DashboardSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DashboardSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The defaultDashboard. + */ + java.lang.String getDefaultDashboard(); + + /** + * + * + *
+   * Optional. The resource name of the default Contact Center Insights
+   * dashboard associated with the app. This is the dashboard that will be
+   * displayed when users navigate to the Monitoring view for the app.
+   *
+   * Format: `projects/{project}/locations/{location}/dashboards/{dashboard}`
+   * 
+ * + * + * string default_dashboard = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for defaultDashboard. + */ + com.google.protobuf.ByteString getDefaultDashboardBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java index 8bbeaff1fbfd..4e00d8ed3b9f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreTool.java @@ -12517,6 +12517,623 @@ public com.google.cloud.ces.v1beta.DataStoreTool.BoostSpec getDefaultInstanceFor } } + public interface SnippetsConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether snippets are enabled.
+     * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + boolean getEnableSnippets(); + + /** + * + * + *
+     * Optional. Number of snippets to return per query.
+     * If unset, returns all snippets from the service by default.
+     * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + int getMaxSnippets(); + } + + /** + * + * + *
+   * Snippets configuration.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig} + */ + public static final class SnippetsConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + SnippetsConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SnippetsConfig"); + } + + // Use SnippetsConfig.newBuilder() to construct. + private SnippetsConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SnippetsConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.class, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder.class); + } + + public static final int ENABLE_SNIPPETS_FIELD_NUMBER = 1; + private boolean enableSnippets_ = false; + + /** + * + * + *
+     * Optional. Whether snippets are enabled.
+     * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + @java.lang.Override + public boolean getEnableSnippets() { + return enableSnippets_; + } + + public static final int MAX_SNIPPETS_FIELD_NUMBER = 2; + private int maxSnippets_ = 0; + + /** + * + * + *
+     * Optional. Number of snippets to return per query.
+     * If unset, returns all snippets from the service by default.
+     * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + @java.lang.Override + public int getMaxSnippets() { + return maxSnippets_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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 (enableSnippets_ != false) { + output.writeBool(1, enableSnippets_); + } + if (maxSnippets_ != 0) { + output.writeInt32(2, maxSnippets_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enableSnippets_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, enableSnippets_); + } + if (maxSnippets_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSnippets_); + } + 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.ces.v1beta.DataStoreTool.SnippetsConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig other = + (com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) obj; + + if (getEnableSnippets() != other.getEnableSnippets()) return false; + if (getMaxSnippets() != other.getMaxSnippets()) 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_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableSnippets()); + hash = (37 * hash) + MAX_SNIPPETS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSnippets(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig 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.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + 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.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.DataStoreTool.SnippetsConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Snippets configuration.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.class, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableSnippets_ = false; + maxSnippets_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.DataStoreToolProto + .internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig build() { + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig buildPartial() { + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result = + new com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.enableSnippets_ = enableSnippets_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSnippets_ = maxSnippets_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig other) { + if (other == com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance()) + return this; + if (other.getEnableSnippets() != false) { + setEnableSnippets(other.getEnableSnippets()); + } + if (other.getMaxSnippets() != 0) { + setMaxSnippets(other.getMaxSnippets()); + } + 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: + { + enableSnippets_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + maxSnippets_ = 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 boolean enableSnippets_; + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableSnippets. + */ + @java.lang.Override + public boolean getEnableSnippets() { + return enableSnippets_; + } + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableSnippets to set. + * @return This builder for chaining. + */ + public Builder setEnableSnippets(boolean value) { + + enableSnippets_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether snippets are enabled.
+       * 
+ * + * bool enable_snippets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableSnippets() { + bitField0_ = (bitField0_ & ~0x00000001); + enableSnippets_ = false; + onChanged(); + return this; + } + + private int maxSnippets_; + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSnippets. + */ + @java.lang.Override + public int getMaxSnippets() { + return maxSnippets_; + } + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSnippets to set. + * @return This builder for chaining. + */ + public Builder setMaxSnippets(int value) { + + maxSnippets_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Number of snippets to return per query.
+       * If unset, returns all snippets from the service by default.
+       * 
+ * + * int32 max_snippets = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSnippets() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSnippets_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig) + private static final com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig(); + } + + public static com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SnippetsConfig parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.DataStoreTool.SnippetsConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + public interface ModalityConfigOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DataStoreTool.ModalityConfig) @@ -12682,6 +13299,49 @@ public interface ModalityConfigOrBuilder */ com.google.cloud.ces.v1beta.DataStoreTool.GroundingConfigOrBuilder getGroundingConfigOrBuilder(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + boolean hasSnippetsConfig(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig(); + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder getSnippetsConfigOrBuilder(); } /** @@ -13130,6 +13790,66 @@ public com.google.cloud.ces.v1beta.DataStoreTool.GroundingConfig getGroundingCon : groundingConfig_; } + public static final int SNIPPETS_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippetsConfig_; + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + @java.lang.Override + public boolean hasSnippetsConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig() { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + + /** + * + * + *
+     * Optional. The snippets configuration.
+     * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder + getSnippetsConfigOrBuilder() { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13159,6 +13879,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getGroundingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getSnippetsConfig()); + } getUnknownFields().writeTo(output); } @@ -13184,6 +13907,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGroundingConfig()); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getSnippetsConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -13213,6 +13939,10 @@ public boolean equals(final java.lang.Object obj) { if (hasGroundingConfig()) { if (!getGroundingConfig().equals(other.getGroundingConfig())) return false; } + if (hasSnippetsConfig() != other.hasSnippetsConfig()) return false; + if (hasSnippetsConfig()) { + if (!getSnippetsConfig().equals(other.getSnippetsConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -13238,6 +13968,10 @@ public int hashCode() { hash = (37 * hash) + GROUNDING_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getGroundingConfig().hashCode(); } + if (hasSnippetsConfig()) { + hash = (37 * hash) + SNIPPETS_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getSnippetsConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -13384,6 +14118,7 @@ private void maybeForceBuilderInitialization() { internalGetRewriterConfigFieldBuilder(); internalGetSummarizationConfigFieldBuilder(); internalGetGroundingConfigFieldBuilder(); + internalGetSnippetsConfigFieldBuilder(); } } @@ -13407,6 +14142,11 @@ public Builder clear() { groundingConfigBuilder_.dispose(); groundingConfigBuilder_ = null; } + snippetsConfig_ = null; + if (snippetsConfigBuilder_ != null) { + snippetsConfigBuilder_.dispose(); + snippetsConfigBuilder_ = null; + } return this; } @@ -13464,6 +14204,11 @@ private void buildPartial0(com.google.cloud.ces.v1beta.DataStoreTool.ModalityCon groundingConfigBuilder_ == null ? groundingConfig_ : groundingConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.snippetsConfig_ = + snippetsConfigBuilder_ == null ? snippetsConfig_ : snippetsConfigBuilder_.build(); + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -13492,6 +14237,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.DataStoreTool.ModalityConfi if (other.hasGroundingConfig()) { mergeGroundingConfig(other.getGroundingConfig()); } + if (other.hasSnippetsConfig()) { + mergeSnippetsConfig(other.getSnippetsConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -13545,6 +14293,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 42: + { + input.readMessage( + internalGetSnippetsConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -14332,6 +15087,225 @@ public Builder clearGroundingConfig() { return groundingConfigBuilder_; } + private com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippetsConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder> + snippetsConfigBuilder_; + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the snippetsConfig field is set. + */ + public boolean hasSnippetsConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The snippetsConfig. + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig getSnippetsConfig() { + if (snippetsConfigBuilder_ == null) { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } else { + return snippetsConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig value) { + if (snippetsConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snippetsConfig_ = value; + } else { + snippetsConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder builderForValue) { + if (snippetsConfigBuilder_ == null) { + snippetsConfig_ = builderForValue.build(); + } else { + snippetsConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSnippetsConfig( + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig value) { + if (snippetsConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && snippetsConfig_ != null + && snippetsConfig_ + != com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig + .getDefaultInstance()) { + getSnippetsConfigBuilder().mergeFrom(value); + } else { + snippetsConfig_ = value; + } + } else { + snippetsConfigBuilder_.mergeFrom(value); + } + if (snippetsConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSnippetsConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + snippetsConfig_ = null; + if (snippetsConfigBuilder_ != null) { + snippetsConfigBuilder_.dispose(); + snippetsConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder + getSnippetsConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetSnippetsConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder + getSnippetsConfigOrBuilder() { + if (snippetsConfigBuilder_ != null) { + return snippetsConfigBuilder_.getMessageOrBuilder(); + } else { + return snippetsConfig_ == null + ? com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.getDefaultInstance() + : snippetsConfig_; + } + } + + /** + * + * + *
+       * Optional. The snippets configuration.
+       * 
+ * + * + * .google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig snippets_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder> + internalGetSnippetsConfigFieldBuilder() { + if (snippetsConfigBuilder_ == null) { + snippetsConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfig.Builder, + com.google.cloud.ces.v1beta.DataStoreTool.SnippetsConfigOrBuilder>( + getSnippetsConfig(), getParentForChildren(), isClean()); + snippetsConfig_ = null; + } + return snippetsConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DataStoreTool.ModalityConfig) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java index 40355975891d..3686684a83f3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DataStoreToolProto.java @@ -84,6 +84,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_DataStoreTool_BoostSpec_ConditionBoostSpec_BoostControlSpec_ControlPoint_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -101,7 +105,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-google/cloud/ces/v1beta/data_store_too" + "l.proto\022\027google.cloud.ces.v1beta\032\037google" + "/api/field_behavior.proto\032$google/cloud/" - + "ces/v1beta/common.proto\032(google/cloud/ces/v1beta/data_store.proto\"\333\025\n\r" + + "ces/v1beta/common.proto\032(google/cloud/ces/v1beta/data_store.proto\"\376\026\n\r" + "DataStoreTool\022Y\n" + "\021data_store_source\030\003 \001(\01326.google." + "cloud.ces.v1beta.DataStoreTool.DataStoreSourceB\004\342A\001\001H\000\022R\n\r" @@ -169,16 +173,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tFRESHNESS\020\002\"C\n" + "\021InterpolationType\022\"\n" + "\036INTERPOLATION_TYPE_UNSPECIFIED\020\000\022\n\n" - + "\006LINEAR\020\001\032\303\003\n" + + "\006LINEAR\020\001\032K\n" + + "\016SnippetsConfig\022\035\n" + + "\017enable_snippets\030\001 \001(\010B\004\342A\001\001\022\032\n" + + "\014max_snippets\030\002 \001(\005B\004\342A\001\001\032\231\004\n" + "\016ModalityConfig\022_\n\r" - + "modality_type\030\001 \001(\0162B.google.c" - + "loud.ces.v1beta.DataStoreTool.ModalityConfig.ModalityTypeB\004\342A\001\002\022T\n" + + "modality_type\030\001 \001(\0162B.google.clou" + + "d.ces.v1beta.DataStoreTool.ModalityConfig.ModalityTypeB\004\342A\001\002\022T\n" + "\017rewriter_config\030\002" + " \001(\01325.google.cloud.ces.v1beta.DataStoreTool.RewriterConfigB\004\342A\001\001\022^\n" - + "\024summarization_config\030\003 \001(\0132:.google.cloud.ces.v" - + "1beta.DataStoreTool.SummarizationConfigB\004\342A\001\001\022V\n" - + "\020grounding_config\030\004 \001(\01326.google" - + ".cloud.ces.v1beta.DataStoreTool.GroundingConfigB\004\342A\001\001\"B\n" + + "\024summarization_config\030\003 \001(\0132:.google.cloud.ces.v1be" + + "ta.DataStoreTool.SummarizationConfigB\004\342A\001\001\022V\n" + + "\020grounding_config\030\004 \001(\01326.google.cl" + + "oud.ces.v1beta.DataStoreTool.GroundingConfigB\004\342A\001\001\022T\n" + + "\017snippets_config\030\005 \001(\01325.go" + + "ogle.cloud.ces.v1beta.DataStoreTool.SnippetsConfigB\004\342A\001\001\"B\n" + "\014ModalityType\022\035\n" + "\031MODALITY_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -188,8 +197,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016ALWAYS_INCLUDE\020\002\022\021\n\r" + "NEVER_INCLUDE\020\003B\017\n\r" + "search_sourceBb\n" - + "\033com.google.cloud.ces.v1betaB\022DataStoreToolProtoP\001Z-cloud.google.com/g" - + "o/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\022DataStoreToolProtoP\001Z-cloud.google.co" + + "m/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -296,13 +305,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "AttributeValue", "BoostAmount", }); - internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor = + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor = internal_static_google_cloud_ces_v1beta_DataStoreTool_descriptor.getNestedType(7); + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_DataStoreTool_SnippetsConfig_descriptor, + new java.lang.String[] { + "EnableSnippets", "MaxSnippets", + }); + internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor = + internal_static_google_cloud_ces_v1beta_DataStoreTool_descriptor.getNestedType(8); internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_DataStoreTool_ModalityConfig_descriptor, new java.lang.String[] { - "ModalityType", "RewriterConfig", "SummarizationConfig", "GroundingConfig", + "ModalityType", + "RewriterConfig", + "SummarizationConfig", + "GroundingConfig", + "SnippetsConfig", }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java new file mode 100644 index 000000000000..260019790e56 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.DeleteAssistantSession][google.cloud.ces.v1beta.AssistantService.DeleteAssistantSession].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeleteAssistantSessionRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAssistantSessionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + DeleteAssistantSessionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DeleteAssistantSessionRequest"); + } + + // Use DeleteAssistantSessionRequest.newBuilder() to construct. + private DeleteAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAssistantSessionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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 assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.ces.v1beta.DeleteAssistantSessionRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) 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.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest 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.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + 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.ces.v1beta.DeleteAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.DeleteAssistantSessionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [AssistantService.DeleteAssistantSession][google.cloud.ces.v1beta.AssistantService.DeleteAssistantSession].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.DeleteAssistantSessionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_DeleteAssistantSessionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest.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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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 assistant session to delete.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+     * 
+ * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest(); + } + + public static com.google.cloud.ces.v1beta.DeleteAssistantSessionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAssistantSessionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.DeleteAssistantSessionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..9233d17e263e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteAssistantSessionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface DeleteAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DeleteAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the assistant session to delete.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java index ccb7cc689509..e9f75701115e 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Override @@ -648,7 +648,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -670,7 +670,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -695,7 +695,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Override @@ -719,7 +719,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @param value The source to set. * @return This builder for chaining. */ @@ -747,7 +747,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java index 0d33f18ab1ff..921cc1b8464a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeleteConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface DeleteConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.DeleteConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1205 + * google/cloud/ces/v1beta/agent_service.proto;l=1229 * @return The source. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPart.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java similarity index 52% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPart.java rename to java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java index b777080befd7..d7b87b7cb6f3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPart.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponse.java @@ -15,25 +15,26 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/ces/v1beta/agent_service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.ces.v1beta; /** * * *
- * DataPart represents a structured blob. This is most commonly a JSON payload.
+ * Response message for
+ * [AgentService.DeployChannel][google.cloud.ces.v1beta.AgentService.DeployChannel].
  * 
* - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DataPart} + * Protobuf type {@code google.cloud.ces.v1beta.DeployChannelResponse} */ @com.google.protobuf.Generated -public final class DataPart extends com.google.protobuf.GeneratedMessage +public final class DeployChannelResponse extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.DataPart) - DataPartOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.DeployChannelResponse) + DeployChannelResponseOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,48 +44,48 @@ public final class DataPart extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "DataPart"); + "DeployChannelResponse"); } - // Use DataPart.newBuilder() to construct. - private DataPart(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DeployChannelResponse.newBuilder() to construct. + private DeployChannelResponse(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private DataPart() {} + private DeployChannelResponse() {} public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_descriptor; + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_fieldAccessorTable + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.DataPart.class, - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder.class); + com.google.cloud.ces.v1beta.DeployChannelResponse.class, + com.google.cloud.ces.v1beta.DeployChannelResponse.Builder.class); } private int bitField0_; - public static final int DATA_FIELD_NUMBER = 1; - private com.google.protobuf.Struct data_; + public static final int DEPLOYMENT_FIELD_NUMBER = 1; + private com.google.cloud.ces.v1beta.Deployment deployment_; /** * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return Whether the data field is set. + * @return Whether the deployment field is set. */ @java.lang.Override - public boolean hasData() { + public boolean hasDeployment() { return ((bitField0_ & 0x00000001) != 0); } @@ -92,30 +93,34 @@ public boolean hasData() { * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return The data. + * @return The deployment. */ @java.lang.Override - public com.google.protobuf.Struct getData() { - return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + public com.google.cloud.ces.v1beta.Deployment getDeployment() { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; } /** * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ @java.lang.Override - public com.google.protobuf.StructOrBuilder getDataOrBuilder() { - return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + public com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder() { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; } private byte memoizedIsInitialized = -1; @@ -133,7 +138,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(1, getData()); + output.writeMessage(1, getDeployment()); } getUnknownFields().writeTo(output); } @@ -145,7 +150,7 @@ public int getSerializedSize() { size = 0; if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getData()); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDeployment()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -157,15 +162,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.DataPart)) { + if (!(obj instanceof com.google.cloud.ces.v1beta.DeployChannelResponse)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.DataPart other = - (com.google.cloud.geminidataanalytics.v1beta.DataPart) obj; + com.google.cloud.ces.v1beta.DeployChannelResponse other = + (com.google.cloud.ces.v1beta.DeployChannelResponse) obj; - if (hasData() != other.hasData()) return false; - if (hasData()) { - if (!getData().equals(other.getData())) return false; + if (hasDeployment() != other.hasDeployment()) return false; + if (hasDeployment()) { + if (!getDeployment().equals(other.getDeployment())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; @@ -178,80 +183,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasData()) { - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); + if (hasDeployment()) { + hash = (37 * hash) + DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getDeployment().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse 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.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( 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.geminidataanalytics.v1beta.DataPart parseFrom(byte[] data) + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseDelimitedFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart parseFrom( + public static com.google.cloud.ces.v1beta.DeployChannelResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -268,7 +273,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.cloud.geminidataanalytics.v1beta.DataPart prototype) { + public static Builder newBuilder(com.google.cloud.ces.v1beta.DeployChannelResponse prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -287,31 +292,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-   * DataPart represents a structured blob. This is most commonly a JSON payload.
+   * Response message for
+   * [AgentService.DeployChannel][google.cloud.ces.v1beta.AgentService.DeployChannel].
    * 
* - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.DataPart} + * Protobuf type {@code google.cloud.ces.v1beta.DeployChannelResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.DataPart) - com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.DeployChannelResponse) + com.google.cloud.ces.v1beta.DeployChannelResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_descriptor; + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_fieldAccessorTable + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.DataPart.class, - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder.class); + com.google.cloud.ces.v1beta.DeployChannelResponse.class, + com.google.cloud.ces.v1beta.DeployChannelResponse.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.DataPart.newBuilder() + // Construct using com.google.cloud.ces.v1beta.DeployChannelResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -323,7 +329,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetDataFieldBuilder(); + internalGetDeploymentFieldBuilder(); } } @@ -331,28 +337,28 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; - data_ = null; - if (dataBuilder_ != null) { - dataBuilder_.dispose(); - dataBuilder_ = null; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; } return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_descriptor; + return com.google.cloud.ces.v1beta.AgentServiceProto + .internal_static_google_cloud_ces_v1beta_DeployChannelResponse_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPart getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); + public com.google.cloud.ces.v1beta.DeployChannelResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.DeployChannelResponse.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPart build() { - com.google.cloud.geminidataanalytics.v1beta.DataPart result = buildPartial(); + public com.google.cloud.ces.v1beta.DeployChannelResponse build() { + com.google.cloud.ces.v1beta.DeployChannelResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -360,9 +366,9 @@ public com.google.cloud.geminidataanalytics.v1beta.DataPart build() { } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPart buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.DataPart result = - new com.google.cloud.geminidataanalytics.v1beta.DataPart(this); + public com.google.cloud.ces.v1beta.DeployChannelResponse buildPartial() { + com.google.cloud.ces.v1beta.DeployChannelResponse result = + new com.google.cloud.ces.v1beta.DeployChannelResponse(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -370,11 +376,11 @@ public com.google.cloud.geminidataanalytics.v1beta.DataPart buildPartial() { return result; } - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataPart result) { + private void buildPartial0(com.google.cloud.ces.v1beta.DeployChannelResponse result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { - result.data_ = dataBuilder_ == null ? data_ : dataBuilder_.build(); + result.deployment_ = deploymentBuilder_ == null ? deployment_ : deploymentBuilder_.build(); to_bitField0_ |= 0x00000001; } result.bitField0_ |= to_bitField0_; @@ -382,19 +388,19 @@ private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.DataPart @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.DataPart) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.DataPart) other); + if (other instanceof com.google.cloud.ces.v1beta.DeployChannelResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.DeployChannelResponse) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.DataPart other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.ces.v1beta.DeployChannelResponse other) { + if (other == com.google.cloud.ces.v1beta.DeployChannelResponse.getDefaultInstance()) return this; - if (other.hasData()) { - mergeData(other.getData()); + if (other.hasDeployment()) { + mergeDeployment(other.getDeployment()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); @@ -424,7 +430,8 @@ public Builder mergeFrom( break; case 10: { - input.readMessage(internalGetDataFieldBuilder().getBuilder(), extensionRegistry); + input.readMessage( + internalGetDeploymentFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 @@ -447,25 +454,25 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.Struct data_; + private com.google.cloud.ces.v1beta.Deployment deployment_; private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - dataBuilder_; + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder> + deploymentBuilder_; /** * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return Whether the data field is set. + * @return Whether the deployment field is set. */ - public boolean hasData() { + public boolean hasDeployment() { return ((bitField0_ & 0x00000001) != 0); } @@ -473,18 +480,20 @@ public boolean hasData() { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return The data. + * @return The deployment. */ - public com.google.protobuf.Struct getData() { - if (dataBuilder_ == null) { - return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + public com.google.cloud.ces.v1beta.Deployment getDeployment() { + if (deploymentBuilder_ == null) { + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; } else { - return dataBuilder_.getMessage(); + return deploymentBuilder_.getMessage(); } } @@ -492,19 +501,19 @@ public com.google.protobuf.Struct getData() { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public Builder setData(com.google.protobuf.Struct value) { - if (dataBuilder_ == null) { + public Builder setDeployment(com.google.cloud.ces.v1beta.Deployment value) { + if (deploymentBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - data_ = value; + deployment_ = value; } else { - dataBuilder_.setMessage(value); + deploymentBuilder_.setMessage(value); } bitField0_ |= 0x00000001; onChanged(); @@ -515,16 +524,16 @@ public Builder setData(com.google.protobuf.Struct value) { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public Builder setData(com.google.protobuf.Struct.Builder builderForValue) { - if (dataBuilder_ == null) { - data_ = builderForValue.build(); + public Builder setDeployment(com.google.cloud.ces.v1beta.Deployment.Builder builderForValue) { + if (deploymentBuilder_ == null) { + deployment_ = builderForValue.build(); } else { - dataBuilder_.setMessage(builderForValue.build()); + deploymentBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; onChanged(); @@ -535,24 +544,24 @@ public Builder setData(com.google.protobuf.Struct.Builder builderForValue) { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public Builder mergeData(com.google.protobuf.Struct value) { - if (dataBuilder_ == null) { + public Builder mergeDeployment(com.google.cloud.ces.v1beta.Deployment value) { + if (deploymentBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) - && data_ != null - && data_ != com.google.protobuf.Struct.getDefaultInstance()) { - getDataBuilder().mergeFrom(value); + && deployment_ != null + && deployment_ != com.google.cloud.ces.v1beta.Deployment.getDefaultInstance()) { + getDeploymentBuilder().mergeFrom(value); } else { - data_ = value; + deployment_ = value; } } else { - dataBuilder_.mergeFrom(value); + deploymentBuilder_.mergeFrom(value); } - if (data_ != null) { + if (deployment_ != null) { bitField0_ |= 0x00000001; onChanged(); } @@ -563,17 +572,17 @@ public Builder mergeData(com.google.protobuf.Struct value) { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public Builder clearData() { + public Builder clearDeployment() { bitField0_ = (bitField0_ & ~0x00000001); - data_ = null; - if (dataBuilder_ != null) { - dataBuilder_.dispose(); - dataBuilder_ = null; + deployment_ = null; + if (deploymentBuilder_ != null) { + deploymentBuilder_.dispose(); + deploymentBuilder_ = null; } onChanged(); return this; @@ -583,31 +592,33 @@ public Builder clearData() { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public com.google.protobuf.Struct.Builder getDataBuilder() { + public com.google.cloud.ces.v1beta.Deployment.Builder getDeploymentBuilder() { bitField0_ |= 0x00000001; onChanged(); - return internalGetDataFieldBuilder().getBuilder(); + return internalGetDeploymentFieldBuilder().getBuilder(); } /** * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - public com.google.protobuf.StructOrBuilder getDataOrBuilder() { - if (dataBuilder_ != null) { - return dataBuilder_.getMessageOrBuilder(); + public com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder() { + if (deploymentBuilder_ != null) { + return deploymentBuilder_.getMessageOrBuilder(); } else { - return data_ == null ? com.google.protobuf.Struct.getDefaultInstance() : data_; + return deployment_ == null + ? com.google.cloud.ces.v1beta.Deployment.getDefaultInstance() + : deployment_; } } @@ -615,45 +626,46 @@ public com.google.protobuf.StructOrBuilder getDataOrBuilder() { * * *
-     * Optional. The structured data payload.
+     * The created deployment.
      * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetDataFieldBuilder() { - if (dataBuilder_ == null) { - dataBuilder_ = + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder> + internalGetDeploymentFieldBuilder() { + if (deploymentBuilder_ == null) { + deploymentBuilder_ = new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>(getData(), getParentForChildren(), isClean()); - data_ = null; + com.google.cloud.ces.v1beta.Deployment, + com.google.cloud.ces.v1beta.Deployment.Builder, + com.google.cloud.ces.v1beta.DeploymentOrBuilder>( + getDeployment(), getParentForChildren(), isClean()); + deployment_ = null; } - return dataBuilder_; + return deploymentBuilder_; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.DataPart) + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.DeployChannelResponse) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.DataPart) - private static final com.google.cloud.geminidataanalytics.v1beta.DataPart DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.DeployChannelResponse) + private static final com.google.cloud.ces.v1beta.DeployChannelResponse DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.DataPart(); + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.DeployChannelResponse(); } - public static com.google.cloud.geminidataanalytics.v1beta.DataPart getDefaultInstance() { + public static com.google.cloud.ces.v1beta.DeployChannelResponse 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 DataPart parsePartialFrom( + public DeployChannelResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -672,17 +684,17 @@ public DataPart 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.geminidataanalytics.v1beta.DataPart getDefaultInstanceForType() { + public com.google.cloud.ces.v1beta.DeployChannelResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPartOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java similarity index 53% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPartOrBuilder.java rename to java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java index a2462bc610dd..4f069da61c1d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataPartOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeployChannelResponseOrBuilder.java @@ -15,51 +15,51 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/ces/v1beta/agent_service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.ces.v1beta; @com.google.protobuf.Generated -public interface DataPartOrBuilder +public interface DeployChannelResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.DataPart) + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.DeployChannelResponse) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return Whether the data field is set. + * @return Whether the deployment field is set. */ - boolean hasData(); + boolean hasDeployment(); /** * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; * - * @return The data. + * @return The deployment. */ - com.google.protobuf.Struct getData(); + com.google.cloud.ces.v1beta.Deployment getDeployment(); /** * * *
-   * Optional. The structured data payload.
+   * The created deployment.
    * 
* - * .google.protobuf.Struct data = 1 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.Deployment deployment = 1; */ - com.google.protobuf.StructOrBuilder getDataOrBuilder(); + com.google.cloud.ces.v1beta.DeploymentOrBuilder getDeploymentOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java index dd869febe5db..a43b30999f4c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Deployment.java @@ -57,6 +57,7 @@ private Deployment() { displayName_ = ""; appVersion_ = ""; etag_ = ""; + modality_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -74,6 +75,198 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.Deployment.Builder.class); } + /** + * + * + *
+   * The modality of the deployment.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Deployment.Modality} + */ + public enum Modality implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unknown modality.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + MODALITY_UNSPECIFIED(0), + /** + * + * + *
+     * Text modality.
+     * 
+ * + * MODALITY_TEXT = 1; + */ + MODALITY_TEXT(1), + /** + * + * + *
+     * Voice modality.
+     * 
+ * + * MODALITY_VOICE = 2; + */ + MODALITY_VOICE(2), + /** + * + * + *
+     * Video modality.
+     * 
+ * + * MODALITY_VIDEO = 3; + */ + MODALITY_VIDEO(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Modality"); + } + + /** + * + * + *
+     * Unknown modality.
+     * 
+ * + * MODALITY_UNSPECIFIED = 0; + */ + public static final int MODALITY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Text modality.
+     * 
+ * + * MODALITY_TEXT = 1; + */ + public static final int MODALITY_TEXT_VALUE = 1; + + /** + * + * + *
+     * Voice modality.
+     * 
+ * + * MODALITY_VOICE = 2; + */ + public static final int MODALITY_VOICE_VALUE = 2; + + /** + * + * + *
+     * Video modality.
+     * 
+ * + * MODALITY_VIDEO = 3; + */ + public static final int MODALITY_VIDEO_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 Modality 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 Modality forNumber(int value) { + switch (value) { + case 0: + return MODALITY_UNSPECIFIED; + case 1: + return MODALITY_TEXT; + case 2: + return MODALITY_VOICE; + case 3: + return MODALITY_VIDEO; + 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 Modality findValueByNumber(int number) { + return Modality.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.Deployment.getDescriptor().getEnumTypes().get(0); + } + + private static final Modality[] VALUES = values(); + + public static Modality 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 Modality(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.Deployment.Modality) + } + private int bitField0_; public static final int NAME_FIELD_NUMBER = 1; @@ -655,6 +848,182 @@ public com.google.cloud.ces.v1beta.InstagramCredentials getInstagramCredentials( : instagramCredentials_; } + public static final int MODEL_SETTINGS_FIELD_NUMBER = 12; + private com.google.cloud.ces.v1beta.ModelSettings modelSettings_; + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + @java.lang.Override + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings getModelSettings() { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + + public static final int MODALITY_FIELD_NUMBER = 13; + private int modality_ = 0; + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Deployment.Modality getModality() { + com.google.cloud.ces.v1beta.Deployment.Modality result = + com.google.cloud.ces.v1beta.Deployment.Modality.forNumber(modality_); + return result == null ? com.google.cloud.ces.v1beta.Deployment.Modality.UNRECOGNIZED : result; + } + + public static final int AGENT_REGISTRY_DEPLOYMENT_FIELD_NUMBER = 14; + private com.google.cloud.ces.v1beta.AgentRegistryDeployment agentRegistryDeployment_; + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + @java.lang.Override + public boolean hasAgentRegistryDeployment() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment() { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder() { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -699,6 +1068,16 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(11, getInstagramCredentials()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(12, getModelSettings()); + } + if (modality_ + != com.google.cloud.ces.v1beta.Deployment.Modality.MODALITY_UNSPECIFIED.getNumber()) { + output.writeEnum(13, modality_); + } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(14, getAgentRegistryDeployment()); + } getUnknownFields().writeTo(output); } @@ -740,6 +1119,18 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getInstagramCredentials()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getModelSettings()); + } + if (modality_ + != com.google.cloud.ces.v1beta.Deployment.Modality.MODALITY_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(13, modality_); + } + if (((bitField0_ & 0x00000080) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, getAgentRegistryDeployment()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -783,6 +1174,15 @@ public boolean equals(final java.lang.Object obj) { if (hasInstagramCredentials()) { if (!getInstagramCredentials().equals(other.getInstagramCredentials())) return false; } + if (hasModelSettings() != other.hasModelSettings()) return false; + if (hasModelSettings()) { + if (!getModelSettings().equals(other.getModelSettings())) return false; + } + if (modality_ != other.modality_) return false; + if (hasAgentRegistryDeployment() != other.hasAgentRegistryDeployment()) return false; + if (hasAgentRegistryDeployment()) { + if (!getAgentRegistryDeployment().equals(other.getAgentRegistryDeployment())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -826,6 +1226,16 @@ public int hashCode() { hash = (37 * hash) + INSTAGRAM_CREDENTIALS_FIELD_NUMBER; hash = (53 * hash) + getInstagramCredentials().hashCode(); } + if (hasModelSettings()) { + hash = (37 * hash) + MODEL_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getModelSettings().hashCode(); + } + hash = (37 * hash) + MODALITY_FIELD_NUMBER; + hash = (53 * hash) + modality_; + if (hasAgentRegistryDeployment()) { + hash = (37 * hash) + AGENT_REGISTRY_DEPLOYMENT_FIELD_NUMBER; + hash = (53 * hash) + getAgentRegistryDeployment().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -974,6 +1384,8 @@ private void maybeForceBuilderInitialization() { internalGetExperimentConfigFieldBuilder(); internalGetWhatsappCredentialsFieldBuilder(); internalGetInstagramCredentialsFieldBuilder(); + internalGetModelSettingsFieldBuilder(); + internalGetAgentRegistryDeploymentFieldBuilder(); } } @@ -1015,6 +1427,17 @@ public Builder clear() { instagramCredentialsBuilder_.dispose(); instagramCredentialsBuilder_ = null; } + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + modality_ = 0; + agentRegistryDeployment_ = null; + if (agentRegistryDeploymentBuilder_ != null) { + agentRegistryDeploymentBuilder_.dispose(); + agentRegistryDeploymentBuilder_ = null; + } return this; } @@ -1096,6 +1519,21 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Deployment result) { : instagramCredentialsBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.modelSettings_ = + modelSettingsBuilder_ == null ? modelSettings_ : modelSettingsBuilder_.build(); + to_bitField0_ |= 0x00000040; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.modality_ = modality_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + result.agentRegistryDeployment_ = + agentRegistryDeploymentBuilder_ == null + ? agentRegistryDeployment_ + : agentRegistryDeploymentBuilder_.build(); + to_bitField0_ |= 0x00000080; + } result.bitField0_ |= to_bitField0_; } @@ -1149,6 +1587,15 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Deployment other) { if (other.hasInstagramCredentials()) { mergeInstagramCredentials(other.getInstagramCredentials()); } + if (other.hasModelSettings()) { + mergeModelSettings(other.getModelSettings()); + } + if (other.modality_ != 0) { + setModalityValue(other.getModalityValue()); + } + if (other.hasAgentRegistryDeployment()) { + mergeAgentRegistryDeployment(other.getAgentRegistryDeployment()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1241,6 +1688,27 @@ public Builder mergeFrom( bitField0_ |= 0x00000200; break; } // case 90 + case 98: + { + input.readMessage( + internalGetModelSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 104: + { + modality_ = input.readEnum(); + bitField0_ |= 0x00000800; + break; + } // case 104 + case 114: + { + input.readMessage( + internalGetAgentRegistryDeploymentFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00001000; + break; + } // case 114 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3055,6 +3523,588 @@ public Builder clearInstagramCredentials() { return instagramCredentialsBuilder_; } + private com.google.cloud.ces.v1beta.ModelSettings modelSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder> + modelSettingsBuilder_; + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + public boolean hasModelSettings() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + public com.google.cloud.ces.v1beta.ModelSettings getModelSettings() { + if (modelSettingsBuilder_ == null) { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } else { + return modelSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelSettings_ = value; + } else { + modelSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setModelSettings( + com.google.cloud.ces.v1beta.ModelSettings.Builder builderForValue) { + if (modelSettingsBuilder_ == null) { + modelSettings_ = builderForValue.build(); + } else { + modelSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeModelSettings(com.google.cloud.ces.v1beta.ModelSettings value) { + if (modelSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && modelSettings_ != null + && modelSettings_ != com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance()) { + getModelSettingsBuilder().mergeFrom(value); + } else { + modelSettings_ = value; + } + } else { + modelSettingsBuilder_.mergeFrom(value); + } + if (modelSettings_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearModelSettings() { + bitField0_ = (bitField0_ & ~0x00000400); + modelSettings_ = null; + if (modelSettingsBuilder_ != null) { + modelSettingsBuilder_.dispose(); + modelSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ModelSettings.Builder getModelSettingsBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetModelSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder() { + if (modelSettingsBuilder_ != null) { + return modelSettingsBuilder_.getMessageOrBuilder(); + } else { + return modelSettings_ == null + ? com.google.cloud.ces.v1beta.ModelSettings.getDefaultInstance() + : modelSettings_; + } + } + + /** + * + * + *
+     * Optional. Model settings for the deployment.
+     * Overrides model settings configured at the app/agent levels.
+     * Note: Deployment-level model settings override is gated behind an
+     * allowlist. Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder> + internalGetModelSettingsFieldBuilder() { + if (modelSettingsBuilder_ == null) { + modelSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ModelSettings, + com.google.cloud.ces.v1beta.ModelSettings.Builder, + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder>( + getModelSettings(), getParentForChildren(), isClean()); + modelSettings_ = null; + } + return modelSettingsBuilder_; + } + + private int modality_ = 0; + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + @java.lang.Override + public int getModalityValue() { + return modality_; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for modality to set. + * @return This builder for chaining. + */ + public Builder setModalityValue(int value) { + modality_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Deployment.Modality getModality() { + com.google.cloud.ces.v1beta.Deployment.Modality result = + com.google.cloud.ces.v1beta.Deployment.Modality.forNumber(modality_); + return result == null ? com.google.cloud.ces.v1beta.Deployment.Modality.UNRECOGNIZED : result; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The modality to set. + * @return This builder for chaining. + */ + public Builder setModality(com.google.cloud.ces.v1beta.Deployment.Modality value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000800; + modality_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The modality of the deployment.
+     * Note: Deployment-level modality override is gated behind an allowlist.
+     * Contact the CXAS team to enable this field.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearModality() { + bitField0_ = (bitField0_ & ~0x00000800); + modality_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1beta.AgentRegistryDeployment agentRegistryDeployment_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder> + agentRegistryDeploymentBuilder_; + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + public boolean hasAgentRegistryDeployment() { + return ((bitField0_ & 0x00001000) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment() { + if (agentRegistryDeploymentBuilder_ == null) { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } else { + return agentRegistryDeploymentBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment value) { + if (agentRegistryDeploymentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentRegistryDeployment_ = value; + } else { + agentRegistryDeploymentBuilder_.setMessage(value); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder builderForValue) { + if (agentRegistryDeploymentBuilder_ == null) { + agentRegistryDeployment_ = builderForValue.build(); + } else { + agentRegistryDeploymentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentRegistryDeployment( + com.google.cloud.ces.v1beta.AgentRegistryDeployment value) { + if (agentRegistryDeploymentBuilder_ == null) { + if (((bitField0_ & 0x00001000) != 0) + && agentRegistryDeployment_ != null + && agentRegistryDeployment_ + != com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance()) { + getAgentRegistryDeploymentBuilder().mergeFrom(value); + } else { + agentRegistryDeployment_ = value; + } + } else { + agentRegistryDeploymentBuilder_.mergeFrom(value); + } + if (agentRegistryDeployment_ != null) { + bitField0_ |= 0x00001000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentRegistryDeployment() { + bitField0_ = (bitField0_ & ~0x00001000); + agentRegistryDeployment_ = null; + if (agentRegistryDeploymentBuilder_ != null) { + agentRegistryDeploymentBuilder_.dispose(); + agentRegistryDeploymentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder + getAgentRegistryDeploymentBuilder() { + bitField0_ |= 0x00001000; + onChanged(); + return internalGetAgentRegistryDeploymentFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder() { + if (agentRegistryDeploymentBuilder_ != null) { + return agentRegistryDeploymentBuilder_.getMessageOrBuilder(); + } else { + return agentRegistryDeployment_ == null + ? com.google.cloud.ces.v1beta.AgentRegistryDeployment.getDefaultInstance() + : agentRegistryDeployment_; + } + } + + /** + * + * + *
+     * Optional. Configuration for deploying this deployment to Agent Registry.
+     * If present, this deployment will be published to Agent Registry.
+     * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder> + internalGetAgentRegistryDeploymentFieldBuilder() { + if (agentRegistryDeploymentBuilder_ == null) { + agentRegistryDeploymentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.AgentRegistryDeployment, + com.google.cloud.ces.v1beta.AgentRegistryDeployment.Builder, + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder>( + getAgentRegistryDeployment(), getParentForChildren(), isClean()); + agentRegistryDeployment_ = null; + } + return agentRegistryDeploymentBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Deployment) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java index 478e13fd35b0..f1523648b765 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/DeploymentOrBuilder.java @@ -407,4 +407,137 @@ public interface DeploymentOrBuilder * */ com.google.cloud.ces.v1beta.InstagramCredentialsOrBuilder getInstagramCredentialsOrBuilder(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the modelSettings field is set. + */ + boolean hasModelSettings(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modelSettings. + */ + com.google.cloud.ces.v1beta.ModelSettings getModelSettings(); + + /** + * + * + *
+   * Optional. Model settings for the deployment.
+   * Overrides model settings configured at the app/agent levels.
+   * Note: Deployment-level model settings override is gated behind an
+   * allowlist. Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings model_settings = 12 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for modality. + */ + int getModalityValue(); + + /** + * + * + *
+   * Optional. The modality of the deployment.
+   * Note: Deployment-level modality override is gated behind an allowlist.
+   * Contact the CXAS team to enable this field.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Deployment.Modality modality = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The modality. + */ + com.google.cloud.ces.v1beta.Deployment.Modality getModality(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentRegistryDeployment field is set. + */ + boolean hasAgentRegistryDeployment(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentRegistryDeployment. + */ + com.google.cloud.ces.v1beta.AgentRegistryDeployment getAgentRegistryDeployment(); + + /** + * + * + *
+   * Optional. Configuration for deploying this deployment to Agent Registry.
+   * If present, this deployment will be published to Agent Registry.
+   * 
+ * + * + * .google.cloud.ces.v1beta.AgentRegistryDeployment agent_registry_deployment = 14 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.AgentRegistryDeploymentOrBuilder + getAgentRegistryDeploymentOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java index 62ea257b3742..b80b4da6793f 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java @@ -255,15 +255,12 @@ private EvaluationChannel(int value) { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasInputAudioConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -276,15 +273,12 @@ public boolean hasInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { return inputAudioConfig_ == null ? com.google.cloud.ces.v1beta.InputAudioConfig.getDefaultInstance() @@ -299,11 +293,10 @@ public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { return inputAudioConfig_ == null ? com.google.cloud.ces.v1beta.InputAudioConfig.getDefaultInstance() @@ -321,15 +314,12 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ @java.lang.Override - @java.lang.Deprecated public boolean hasOutputAudioConfig() { return ((bitField0_ & 0x00000002) != 0); } @@ -342,15 +332,12 @@ public boolean hasOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { return outputAudioConfig_ == null ? com.google.cloud.ces.v1beta.OutputAudioConfig.getDefaultInstance() @@ -365,11 +352,10 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ @java.lang.Override - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { return outputAudioConfig_ == null ? com.google.cloud.ces.v1beta.OutputAudioConfig.getDefaultInstance() @@ -903,14 +889,11 @@ public Builder mergeFrom( * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ - @java.lang.Deprecated public boolean hasInputAudioConfig() { return ((bitField0_ & 0x00000001) != 0); } @@ -923,14 +906,11 @@ public boolean hasInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { if (inputAudioConfigBuilder_ == null) { return inputAudioConfig_ == null @@ -949,10 +929,9 @@ public com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig value) { if (inputAudioConfigBuilder_ == null) { if (value == null) { @@ -975,10 +954,9 @@ public Builder setInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setInputAudioConfig( com.google.cloud.ces.v1beta.InputAudioConfig.Builder builderForValue) { if (inputAudioConfigBuilder_ == null) { @@ -999,10 +977,9 @@ public Builder setInputAudioConfig( * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder mergeInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfig value) { if (inputAudioConfigBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) @@ -1031,10 +1008,9 @@ public Builder mergeInputAudioConfig(com.google.cloud.ces.v1beta.InputAudioConfi * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder clearInputAudioConfig() { bitField0_ = (bitField0_ & ~0x00000001); inputAudioConfig_ = null; @@ -1054,10 +1030,9 @@ public Builder clearInputAudioConfig() { * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfig.Builder getInputAudioConfigBuilder() { bitField0_ |= 0x00000001; onChanged(); @@ -1072,10 +1047,9 @@ public com.google.cloud.ces.v1beta.InputAudioConfig.Builder getInputAudioConfigB * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder() { if (inputAudioConfigBuilder_ != null) { return inputAudioConfigBuilder_.getMessageOrBuilder(); @@ -1094,7 +1068,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< @@ -1129,14 +1103,11 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ - @java.lang.Deprecated public boolean hasOutputAudioConfig() { return ((bitField0_ & 0x00000002) != 0); } @@ -1149,14 +1120,11 @@ public boolean hasOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { if (outputAudioConfigBuilder_ == null) { return outputAudioConfig_ == null @@ -1175,10 +1143,9 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { if (value == null) { @@ -1201,10 +1168,9 @@ public Builder setOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfi * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder setOutputAudioConfig( com.google.cloud.ces.v1beta.OutputAudioConfig.Builder builderForValue) { if (outputAudioConfigBuilder_ == null) { @@ -1225,10 +1191,9 @@ public Builder setOutputAudioConfig( * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder mergeOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioConfig value) { if (outputAudioConfigBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) @@ -1257,10 +1222,9 @@ public Builder mergeOutputAudioConfig(com.google.cloud.ces.v1beta.OutputAudioCon * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public Builder clearOutputAudioConfig() { bitField0_ = (bitField0_ & ~0x00000002); outputAudioConfig_ = null; @@ -1280,10 +1244,9 @@ public Builder clearOutputAudioConfig() { * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfig.Builder getOutputAudioConfigBuilder() { bitField0_ |= 0x00000002; onChanged(); @@ -1298,10 +1261,9 @@ public com.google.cloud.ces.v1beta.OutputAudioConfig.Builder getOutputAudioConfi * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder() { if (outputAudioConfigBuilder_ != null) { return outputAudioConfigBuilder_.getMessageOrBuilder(); @@ -1320,7 +1282,7 @@ public com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConf * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ private com.google.protobuf.SingleFieldBuilder< diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java index c33d91da9b6e..b820f0dbdc74 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java @@ -34,14 +34,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return Whether the inputAudioConfig field is set. */ - @java.lang.Deprecated boolean hasInputAudioConfig(); /** @@ -52,14 +49,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1503 * @return The inputAudioConfig. */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.InputAudioConfig getInputAudioConfig(); /** @@ -70,10 +64,9 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.InputAudioConfig input_audio_config = 1 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfigOrBuilder(); /** @@ -84,14 +77,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return Whether the outputAudioConfig field is set. */ - @java.lang.Deprecated boolean hasOutputAudioConfig(); /** @@ -102,14 +92,11 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * * - * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1507 * @return The outputAudioConfig. */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.OutputAudioConfig getOutputAudioConfig(); /** @@ -120,10 +107,9 @@ public interface EvaluationConfigOrBuilder * * * - * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.ces.v1beta.OutputAudioConfig output_audio_config = 2 [(.google.api.field_behavior) = OPTIONAL]; * */ - @java.lang.Deprecated com.google.cloud.ces.v1beta.OutputAudioConfigOrBuilder getOutputAudioConfigOrBuilder(); /** diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java index 0f2019b1279f..95db307857ba 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java @@ -4770,7 +4770,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4792,7 +4792,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5586,7 +5586,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5608,7 +5608,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5633,7 +5633,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5662,7 +5662,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5691,7 +5691,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java index cb0a9545e5df..c603dcbf5cbc 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=623 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=734 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java index 2eee13c7e8d3..446a81875a20 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java @@ -472,7 +472,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.AggregatedMetricsB\004\342A\001\003:\255\001\352A\251\001\n" + "$ces.googleapis.com/EvaluationDataset\022Zprojects/{proj" + "ect}/locations/{location}/apps/{app}/eva" - + "luationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\3678\n" + + "luationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\325:\n" + "\020EvaluationResult\022U\n\r" + "golden_result\030\007 \001(\0132" + "6.google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\004\342A\001\003H\000\022Y\n" @@ -508,7 +508,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006config\030\022" + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022I\n" + "\021golden_run_method\030\023 \001" - + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\032\352\007\n" + + "(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\0226\n" + + "\troot_span\030\030" + + " \001(\0132\035.google.cloud.ces.v1beta.SpanB\004\342A\001\003\022Y\n" + + "\020outcome_metadata\030\031 \001(\01629.google.cloud.ces.v1beta.E" + + "valuationResult.OutcomeMetadataB\004\342A\001\003\032\352\007\n" + "\030GoldenExpectationOutcome\022E\n" + "\022observed_tool_call\030\002" + " \001(\0132!.google.cloud.ces.v1beta.ToolCallB\004\342A\001\003H\000\022M\n" @@ -520,20 +524,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132&.google.cloud.ces.v1beta.AgentTransferB\004\342A\001\003H\000\0229\n" + "\020observed_payload\030\t" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\003H\000\022P\n" - + "\013expectation\030\001 \001(\01325.google.cloud" - + ".ces.v1beta.Evaluation.GoldenExpectationB\004\342A\001\003\022H\n" - + "\007outcome\030\006 \001(\01621.google.cloud.c" - + "es.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022n\n" - + "\032semantic_similarity_result\030\007 \001(\0132B.g" - + "oogle.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\006\030\001\342A\001\003\022}\n" - + "\026tool_invocation_result\030\010 \001(\0132W.google.cloud." - + "ces.v1beta.EvaluationResult.GoldenExpect" - + "ationOutcome.ToolInvocationResultB\004\342A\001\003\032\313\001\n" + + "\013expectation\030\001" + + " \001(\01325.google.cloud.ces.v1beta.Evaluation.GoldenExpectationB\004\342A\001\003\022H\n" + + "\007outcome\030\006" + + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022n\n" + + "\032semantic_similarity_result\030\007 \001(\0132B.google.cloud.c" + + "es.v1beta.EvaluationResult.SemanticSimilarityResultB\006\030\001\342A\001\003\022}\n" + + "\026tool_invocation_result\030\010 \001(\0132W.google.cloud.ces.v1beta.Ev" + + "aluationResult.GoldenExpectationOutcome.ToolInvocationResultB\004\342A\001\003\032\313\001\n" + "\024ToolInvocationResult\022.\n" + "\033parameter_correctness_score\030\001" + " \001(\002B\004\342A\001\003H\000\210\001\001\022H\n" - + "\007outcome\030\002" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + + "\007outcome\030\002 \001(\01621.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + "\013explanation\030\003 \001(\tB\004\342A\001\003B\036\n" + "\034_parameter_correctness_scoreB\010\n" + "\006result\032\353\001\n" @@ -541,36 +544,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026evaluation_expectation\030\001 \001(\tB1\342A\001\003\372A*\n" + "(ces.googleapis.com/EvaluationExpectation\022\024\n" + "\006prompt\030\002 \001(\tB\004\342A\001\003\022H\n" - + "\007outcome\030\003" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + + "\007outcome\030\003 \001(\01621.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\022\031\n" + "\013explanation\030\004 \001(\tB\004\342A\001\003\032\236\t\n" + "\014GoldenResult\022j\n" - + "\023turn_replay_results\030\001 \003(\0132G.google.cloud.ces.v" - + "1beta.EvaluationResult.GoldenResult.TurnReplayResultB\004\342A\001\003\022s\n" - + "\036evaluation_expectation_results\030\002 \003(\0132E.google.cloud.ces.v1" - + "beta.EvaluationResult.EvaluationExpectationResultB\004\342A\001\003\032\254\007\n" + + "\023turn_replay_results\030\001 \003(\0132G.google.cloud.ces.v1beta.Evaluat" + + "ionResult.GoldenResult.TurnReplayResultB\004\342A\001\003\022s\n" + + "\036evaluation_expectation_results\030\002" + + " \003(\0132E.google.cloud.ces.v1beta.Evaluati" + + "onResult.EvaluationExpectationResultB\004\342A\001\003\032\254\007\n" + "\020TurnReplayResult\022>\n" + "\014conversation\030\001 \001(\tB(\342A\001\003\372A!\n" + "\037ces.googleapis.com/Conversation\022e\n" - + "\023expectation_outcome\030\002 \003(\0132B.google.cloud.ces.v1beta.Eval" - + "uationResult.GoldenExpectationOutcomeB\004\342A\001\003\022a\n" - + "\024hallucination_result\030\003 \001(\0132=.goog" - + "le.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022%\n" + + "\023expectation_outcome\030\002 \003(\0132B.g" + + "oogle.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcomeB\004\342A\001\003\022a\n" + + "\024hallucination_result\030\003 \001(\0132=.google.cloud.ces." + + "v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022%\n" + "\025tool_invocation_score\030\004 \001(\002B\006\030\001\342A\001\003\0220\n" + "\035tool_ordered_invocation_score\030\005" + " \001(\002B\004\342A\001\003H\000\210\001\001\0225\n" + "\014turn_latency\030\006" + " \001(\0132\031.google.protobuf.DurationB\004\342A\001\003\022\\\n" - + "\023tool_call_latencies\030\007 \003(\01329.go" - + "ogle.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022l\n" - + "\032semantic_similarity_result\030\010 \001(\0132B.google.cloud.ces.v1be" - + "ta.EvaluationResult.SemanticSimilarityResultB\004\342A\001\003\022s\n" - + "\036overall_tool_invocation_result\030\t \001(\0132E.google.cloud.ces.v1beta.Eva" - + "luationResult.OverallToolInvocationResultB\004\342A\001\003\022F\n\n" + + "\023tool_call_latencies\030\007 \003(\01329.google.cloud.ce" + + "s.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022l\n" + + "\032semantic_similarity_result\030\010 " + + "\001(\0132B.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResultB\004\342A\001\003\022s\n" + + "\036overall_tool_invocation_result\030\t \001(\0132E." + + "google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResultB\004\342A\001\003\022F\n\n" + "error_info\030\n" + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022S\n" - + "\016span_latencies\030\013 \003(\01325.google.cloud.c" - + "es.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003B \n" + + "\016span_latencies\030\013" + + " \003(\01325.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003B" + + " \n" + "\036_tool_ordered_invocation_score\032r\n" + "\025ScenarioRubricOutcome\022\024\n" + "\006rubric\030\001 \001(\tB\004\342A\001\003\022\030\n" @@ -578,14 +583,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021score_explanation\030\003 \001(\tB\004\342A\001\003B\010\n" + "\006_score\032\237\004\n" + "\032ScenarioExpectationOutcome\022y\n" - + "\022observed_tool_call\030\002 \001(\0132U.google.cloud.ces.v1beta." - + "EvaluationResult.ScenarioExpectationOutcome.ObservedToolCallB\004\342A\001\003H\000\022I\n" + + "\022observed_tool_call\030\002 \001(\0132U.google.cloud.ces.v1beta.EvaluationRes" + + "ult.ScenarioExpectationOutcome.ObservedToolCallB\004\342A\001\003H\000\022I\n" + "\027observed_agent_response\030\003 \001(\0132" + " .google.cloud.ces.v1beta.MessageB\004\342A\001\003H\000\022R\n" - + "\013expectation\030\001" - + " \001(\01327.google.cloud.ces.v1beta.Evaluation.ScenarioExpectationB\004\342A\001\003\022H\n" - + "\007outcome\030\004" - + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\032\222\001\n" + + "\013expectation\030\001 \001(\01327.google" + + ".cloud.ces.v1beta.Evaluation.ScenarioExpectationB\004\342A\001\003\022H\n" + + "\007outcome\030\004 \001(\01621.google" + + ".cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003\032\222\001\n" + "\020ObservedToolCall\022:\n" + "\ttool_call\030\001" + " \001(\0132!.google.cloud.ces.v1beta.ToolCallB\004\342A\001\003\022B\n\r" @@ -597,38 +602,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037ces.googleapis.com/Conversation\022\022\n" + "\004task\030\n" + " \001(\tB\004\342A\001\003\022O\n\n" - + "user_facts\030\013 \003(\01325.google.cloud.c" - + "es.v1beta.Evaluation.Scenario.UserFactB\004\342A\001\003\022h\n" - + "\024expectation_outcomes\030\002 \003(\0132D.goo" - + "gle.cloud.ces.v1beta.EvaluationResult.ScenarioExpectationOutcomeB\004\342A\001\003\022^\n" - + "\017rubric_outcomes\030\003 \003(\0132?.google.cloud.ces.v1bet" - + "a.EvaluationResult.ScenarioRubricOutcomeB\004\342A\001\003\022a\n" - + "\024hallucination_result\030\004 \003(\0132=.g" - + "oogle.cloud.ces.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022f\n" - + "\026task_completion_result\030\005 \001(\0132>.google.cloud.ces.v1b" - + "eta.EvaluationResult.TaskCompletionResultB\006\030\001\342A\001\003\022\\\n" - + "\023tool_call_latencies\030\006 \003(\01329" - + ".google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022q\n" - + "\035user_goal_satisfaction_result\030\007 \001(\0132D.google.cloud.ce" - + "s.v1beta.EvaluationResult.UserGoalSatisfactionResultB\004\342A\001\003\022-\n" + + "user_facts\030\013" + + " \003(\01325.google.cloud.ces.v1beta.Evaluation.Scenario.UserFactB\004\342A\001\003\022h\n" + + "\024expectation_outcomes\030\002 \003(\0132D.google.cloud.ces" + + ".v1beta.EvaluationResult.ScenarioExpectationOutcomeB\004\342A\001\003\022^\n" + + "\017rubric_outcomes\030\003 \003" + + "(\0132?.google.cloud.ces.v1beta.EvaluationResult.ScenarioRubricOutcomeB\004\342A\001\003\022a\n" + + "\024hallucination_result\030\004 \003(\0132=.google.cloud.c" + + "es.v1beta.EvaluationResult.HallucinationResultB\004\342A\001\003\022f\n" + + "\026task_completion_result\030\005" + + " \001(\0132>.google.cloud.ces.v1beta.EvaluationResult.TaskCompletionResultB\006\030\001\342A\001\003\022\\\n" + + "\023tool_call_latencies\030\006 \003(\01329.google.cloud" + + ".ces.v1beta.EvaluationResult.ToolCallLatencyB\004\342A\001\003\022q\n" + + "\035user_goal_satisfaction_result\030\007 \001(\0132D.google.cloud.ces.v1beta.Eval" + + "uationResult.UserGoalSatisfactionResultB\004\342A\001\003\022-\n" + "\032all_expectations_satisfied\030\010" + " \001(\010B\004\342A\001\003H\000\210\001\001\022!\n" + "\016task_completed\030\t \001(\010B\004\342A\001\003H\001\210\001\001\022S\n" - + "\016span_latencies\030\014" - + " \003(\01325.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003\022s\n" + + "\016span_latencies\030\014 \003(\01325.google" + + ".cloud.ces.v1beta.EvaluationResult.SpanLatencyB\004\342A\001\003\022s\n" + "\036evaluation_expectation_results\030\r" - + " \003(\0132E.google.cloud" - + ".ces.v1beta.EvaluationResult.EvaluationExpectationResultB\004\342A\001\003B\035\n" + + " \003(\0132E.google.cloud.ces.v1beta.E" + + "valuationResult.EvaluationExpectationResultB\004\342A\001\003B\035\n" + "\033_all_expectations_satisfiedB\021\n" + "\017_task_completed\032\212\004\n" + "\013SpanLatency\022\030\n" + "\010resource\030\002 \001(\tB\004\342A\001\003H\000\022=\n" - + "\007toolset\030\003" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\025\n" + + "\007toolset\030\003 \001(\0132$" + + ".google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\025\n" + "\005model\030\004 \001(\tB\004\342A\001\003H\000\022\030\n" + "\010callback\030\005 \001(\tB\004\342A\001\003H\000\022N\n" - + "\004type\030\001 \001(\016" - + "2:.google.cloud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\004\342A\001\003\022\032\n" + + "\004type\030\001 \001(\0162:.google.clo" + + "ud.ces.v1beta.EvaluationResult.SpanLatency.TypeB\004\342A\001\003\022\032\n" + "\014display_name\030\t \001(\tB\004\342A\001\003\0224\n\n" + "start_time\030\006 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0222\n" + "\010end_time\030\007 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022:\n" @@ -663,13 +668,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\005B\004\342A\001\003H\000\210\001\001\022\023\n" + "\005label\030\002 \001(\tB\004\342A\001\003\022\031\n" + "\013explanation\030\003 \001(\tB\004\342A\001\003\022H\n" - + "\007outcome\030\004 \001(\016" - + "21.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\010\n" + + "\007outcome\030\004 \001(\01621.google.clo" + + "ud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\010\n" + "\006_score\032\245\001\n" + "\033OverallToolInvocationResult\022\"\n" + "\025tool_invocation_score\030\001 \001(\002H\000\210\001\001\022H\n" - + "\007outcome\030\002 \001(\01621.googl" - + "e.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\030\n" + + "\007outcome\030\002" + + " \001(\01621.google.cloud.ces.v1beta.EvaluationResult.OutcomeB\004\342A\001\003B\030\n" + "\026_tool_invocation_score\032j\n" + "\024TaskCompletionResult\022\030\n" + "\005score\030\001 \001(\005B\004\342A\001\003H\000\210\001\001\022\023\n" @@ -687,10 +692,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003\022\r\n" - + "\tCANCELLED\020\004:\267\001\352A\263\001\n" - + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/locati" - + "ons/{location}/apps/{app}/evaluations/{e" - + "valuation}/results/{evaluation_result}*\021evaluationResults2\020evaluationResultB\010\n" + + "\tCANCELLED\020\004\"I\n" + + "\017OutcomeMetadata\022 \n" + + "\034OUTCOME_METADATA_UNSPECIFIED\020\000\022\024\n" + + "\020GRACEFUL_HANDOFF\020\001:\267\001\352A\263\001\n" + + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/locations/{location}/app" + + "s/{app}/evaluations/{evaluation}/results" + + "/{evaluation_result}*\021evaluationResults2\020evaluationResultB\010\n" + "\006result\"\234\022\n\r" + "EvaluationRun\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" @@ -712,30 +720,33 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ces.googleapis.com/Evaluation\022I\n" + "\022evaluation_dataset\030\010 \001(\tB-\342A\001\003\372A&\n" + "$ces.googleapis.com/EvaluationDataset\022T\n" - + "\017evaluation_type\030\t" - + " \001(\01625.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\004\342A\001\003\022N\n" + + "\017evaluation_type\030\t \001(\01625.go" + + "ogle.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\004\342A\001\003\022N\n" + "\005state\030\n" - + " \001(\01629.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\004\342A\001\003\022G\n" - + "\010progress\030\013" - + " \001(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\004\342A\001\003\022?\n" - + "\006config\030\014 " - + "\001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022)\n" - + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\006\030\001\342A\001\003\022F\n\n" - + "error_info\030\021 \001(\0132,.go" - + "ogle.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022j\n" - + "\030evaluation_run_summaries\030\017 \003(" - + "\0132B.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\004\342A\001\003\022D\n" - + "\016latency_report\030\031" - + " \001(\0132&.google.cloud.ces.v1beta.LatencyReportB\004\342A\001\003\022\027\n" + + " \001(\01629.google" + + ".cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\004\342A\001\003\022G\n" + + "\010progress\030\013 \001(\0132/.goo" + + "gle.cloud.ces.v1beta.EvaluationRun.ProgressB\004\342A\001\003\022?\n" + + "\006config\030\014" + + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\004\342A\001\003\022)\n" + + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\006\030\001\342A\001\003\022F\n" + + "\n" + + "error_info\030\021" + + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\004\342A\001\003\022j\n" + + "\030evaluat", + "ion_run_summaries\030\017 \003(\0132B.google.cloud.c" + + "es.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\004\342A\001\003\022D\n" + + "\016latency_report\030\031 \001(" + + "\0132&.google.cloud.ces.v1beta.LatencyReportB\004\342A\001\003\022\027\n" + "\trun_count\030\020 \001(\005B\004\342A\001\003\022L\n" - + "\023persona_run_configs\030\022 \003(\0132", - ").google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\003\022N\n" - + "\023optimization_config\030\023 \001(\0132+." - + "google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + + "\023persona_run_configs\030\022" + + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\003\022N\n" + + "\023optimization_config\030\023" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + "\030scheduled_evaluation_run\030\024 \001(\tB2\342A\001\003\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022I\n" - + "\021golden_run_method\030\025 \001(" - + "\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\022\027\n" + + "\021golden_run_method\030\025" + + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\003\022\027\n" + "\toperation\030\032 \001(\tB\004\342A\001\003\032\266\001\n" + "\010Progress\022\031\n" + "\013total_count\030\001 \001(\005B\004\342A\001\003\022\032\n" @@ -750,34 +761,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013error_count\030\003 \001(\005B\004\342A\001\003\032z\n" + "\033EvaluationRunSummariesEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002 \001(\0132;.google.cloud" - + ".ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + + "\005value\030\002" + + " \001(\0132;.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + "\016EvaluationType\022\037\n" + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006GOLDEN\020\001\022\014\n" + "\010SCENARIO\020\002\022\t\n" + "\005MIXED\020\003\"|\n" + "\022EvaluationRunState\022$\n" - + " EVALUATION_RUN_STATE_UNSPECIFIED\020\000\022\n" - + "\n" + + " EVALUATION_RUN_STATE_UNSPECIFIED\020\000\022\n\n" + "\006QUEUED\020\005\022\013\n" + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003\022\r\n" + "\tCANCELLED\020\004:\231\001\352A\225\001\n" - + " ces.googleapis.com/EvaluationRun\022Rprojects/{pro" - + "ject}/locations/{location}/apps/{app}/ev" - + "aluationRuns/{evaluation_run}*\016evaluationRuns2\r" + + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{l" + + "ocation}/apps/{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + "evaluationRun\"\266\n\n\r" + "LatencyReport\022Q\n" - + "\016tool_latencies\030\001 \003(\01322.google.cloud.ce" - + "s.v1beta.LatencyReport.ToolLatencyB\005\342A\002\003\006\022Y\n" - + "\022callback_latencies\030\002 \003(\01326.google.c" - + "loud.ces.v1beta.LatencyReport.CallbackLatencyB\005\342A\002\003\006\022[\n" - + "\023guardrail_latencies\030\003 \003(" - + "\01327.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\005\342A\002\003\006\022X\n" - + "\022llm_call_latencies\030\004" - + " \003(\01325.google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\005\342A\002\003\006\022\033\n\r" + + "\016tool_latencies\030\001" + + " \003(\01322.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\005\342A\002\003\006\022Y\n" + + "\022callback_latencies\030\002" + + " \003(\01326.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\005\342A\002\003\006\022[\n" + + "\023guardrail_latencies\030\003 \003(\01327.google.cloud.c" + + "es.v1beta.LatencyReport.GuardrailLatencyB\005\342A\002\003\006\022X\n" + + "\022llm_call_latencies\030\004 \003(\01325.go" + + "ogle.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\005\342A\002\003\006\022\033\n\r" + "session_count\030\005 \001(\005B\004\342A\001\003\032\314\001\n" + "\016LatencyMetrics\0224\n" + "\013p50_latency\030\001" @@ -790,29 +799,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013ToolLatency\0220\n" + "\004tool\030\001 \001(\tB \342A\001\003\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" - + "\014toolset_tool\030\002 \001(\0132" - + "$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\037\n" + + "\014toolset_tool\030\002" + + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\003H\000\022\037\n" + "\021tool_display_name\030\003 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\004 \001(\01325.google.cloud.c" - + "es.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003B\021\n" + + "\017latency_metrics\030\004" + + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003B\021\n" + "\017tool_identifier\032|\n" + "\017CallbackLatency\022\023\n" + "\005stage\030\001 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032\310\001\n" + + "\017latency_metrics\030\002 \001(\01325.google." + + "cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032\310\001\n" + "\020GuardrailLatency\0228\n" + "\tguardrail\030\001 \001(\tB%\342A\001\003\372A\036\n" + "\034ces.googleapis.com/Guardrail\022$\n" + "\026guardrail_display_name\030\002 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\003" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032{\n" + + "\017latency_metrics\030\003 \001(\01325.goog" + + "le.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\032{\n" + "\016LlmCallLatency\022\023\n" + "\005model\030\001 \001(\tB\004\342A\001\003\022T\n" - + "\017latency_metrics\030\002 \001(\01325.google.cloud.ces.v1be" - + "ta.LatencyReport.LatencyMetricsB\004\342A\001\003\"\254\004\n" + + "\017latency_metrics\030\002 \001(\01325" + + ".google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\004\342A\001\003\"\254\004\n" + "\025EvaluationExpectation\022X\n" - + "\014llm_criteria\030\003" - + " \001(\0132:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\004\342A\001\001H\000\022\022\n" + + "\014llm_criteria\030\003 \001(\0132:.google.clo" + + "ud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\022\n" + "\004tags\030\010 \003(\tB\004\342A\001\001\0225\n" @@ -823,26 +832,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\004\342A\001\003\032#\n" + "\013LlmCriteria\022\024\n" + "\006prompt\030\001 \001(\tB\004\342A\001\002:\301\001\352A\275\001\n" - + "(ces.googleapis.com/EvaluationExpectation\022bp" - + "rojects/{project}/locations/{location}/apps/{app}/evaluationExpectations/{evalua" - + "tion_expectation}*\026evaluationExpectations2\025evaluationExpectationB\n\n" - + "\010criteria\"\270\003\n" - + "\020EvaluationConfig\022M\n" + + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{project}/" + + "locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expectation}*" + + "\026evaluationExpectations2\025evaluationExpectationB\n\n" + + "\010criteria\"\264\003\n" + + "\020EvaluationConfig\022K\n" + "\022input_audio_config\030\001" - + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\006\030\001\342A\001\001\022O\n" + + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\004\342A\001\001\022M\n" + "\023output_audio_config\030\002" - + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\006\030\001\342A\001\001\022]\n" - + "\022evaluation_channel\030\003" - + " \001(\0162;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\004\342A\001\001\022W\n" - + "\023tool_call_behaviour\030\004 \001(\01624.google.cloud.ces" - + ".v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\"L\n" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\004\342A\001\001\022]\n" + + "\022evaluation_channel\030\003 \001(\0162;.google.cloud.c" + + "es.v1beta.EvaluationConfig.EvaluationChannelB\004\342A\001\001\022W\n" + + "\023tool_call_behaviour\030\004 \001(\0162" + + "4.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\004\342A\001\001\"L\n" + "\021EvaluationChannel\022\"\n" + "\036EVALUATION_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" + "\005AUDIO\020\002\"\233\003\n" + "\023EvaluationErrorInfo\022P\n\n" - + "error_type\030\001 " - + "\001(\01626.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\004\342A\001\003\022\033\n\r" + + "error_type\030\001 \001(\01626.google.cloud.ces" + + ".v1beta.EvaluationErrorInfo.ErrorTypeB\004\342A\001\003\022\033\n\r" + "error_message\030\002 \001(\tB\004\342A\001\003\022\030\n\n" + "session_id\030\003 \001(\tB\004\342A\001\003\022\'\n" + "\031user_facing_error_message\030\004 \001(\tB\004\342A\001\003\"\321\001\n" @@ -869,24 +878,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\trun_count\030\t \001(\005B\004\342A\001\001H\000\210\001\001\022L\n" + "\023persona_run_configs\030\n" + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\004\342A\001\001\022N\n" - + "\023optimization_config\030\013 \001(\0132+.google" - + ".cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + + "\023optimization_config\030\013" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\004\342A\001\001\022T\n" + "\030scheduled_evaluation_run\030\014 \001(\tB2\342A\001\001\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022I\n" + "\021golden_run_method\030\r" + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\004\342A\001\001\022%\n" + "\027generate_latency_report\030\016 \001(\010B\004\342A\001\001\022d\n" - + "\037evaluation_run_caching_settings\030\017 " - + "\001(\01325.google.cloud.ces.v1beta.EvaluationRunCachingSettingsB\004\342A\001\001B\014\n\n" + + "\037evaluation_run_caching_settings\030\017 \001(\01325.google.cloud.ces" + + ".v1beta.EvaluationRunCachingSettingsB\004\342A\001\001B\014\n\n" + "_run_count\"\372\010\n" + "\026ScheduledEvaluationRun\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022D\n" - + "\007request\030\003" - + " \001(\0132-.google.cloud.ces.v1beta.RunEvaluationRequestB\004\342A\001\002\022\031\n" + + "\007request\030\003 \001(\0132-.google.cl" + + "oud.ces.v1beta.RunEvaluationRequestB\004\342A\001\002\022\031\n" + "\013description\030\004 \001(\tB\004\342A\001\001\022a\n" - + "\021scheduling_config\030\005 \001(\0132@." - + "google.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\004\342A\001\002\022\024\n" + + "\021scheduling_config\030\005 \001(\0132@.google.cloud.ces.v1bet" + + "a.ScheduledEvaluationRun.SchedulingConfigB\004\342A\001\002\022\024\n" + "\006active\030\006 \001(\010B\004\342A\001\001\022E\n" + "\022last_completed_run\030\007 \001(\tB)\342A\001\003\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\036\n" @@ -902,8 +911,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\004\342A\001\003\022\022\n" + "\004etag\030\016 \001(\tB\004\342A\001\003\032\240\002\n" + "\020SchedulingConfig\022c\n" - + "\tfrequency\030\001 \001(\0162J.google.cloud.ces.v1beta" - + ".ScheduledEvaluationRun.SchedulingConfig.FrequencyB\004\342A\001\002\0224\n\n" + + "\tfrequency\030\001 \001(\0162J.googl" + + "e.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\004\342A\001\002\0224\n\n" + "start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\002\022\032\n" + "\014days_of_week\030\003 \003(\005B\004\342A\001\001\"U\n" @@ -913,9 +922,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DAILY\020\002\022\n\n" + "\006WEEKLY\020\003\022\014\n" + "\010BIWEEKLY\020\004:\307\001\352A\303\001\n" - + ")ces.googleapis.com/ScheduledEvaluationRun\022epro" - + "jects/{project}/locations/{location}/apps/{app}/scheduledEvaluationRuns/{schedul" - + "ed_evaluation_run}*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"C\n" + + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/locati" + + "ons/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}*\027sc" + + "heduledEvaluationRuns2\026scheduledEvaluationRun\"C\n" + "\020PersonaRunConfig\022\025\n" + "\007persona\030\001 \001(\tB\004\342A\001\001\022\030\n\n" + "task_count\030\002 \001(\005B\004\342A\001\001\"\242\003\n" @@ -924,8 +933,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021assistant_session\030\002 \001(\tB\004\342A\001\003\022\034\n" + "\016report_summary\030\003 \001(\tB\004\342A\001\003\022 \n" + "\022should_suggest_fix\030\005 \001(\010B\004\342A\001\003\022T\n" - + "\006status\030\004 \001(\0162>.google.cl" - + "oud.ces.v1beta.OptimizationConfig.OptimizationStatusB\004\342A\001\003\022\033\n\r" + + "\006status\030\004" + + " \001(\0162>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\004\342A\001\003\022\033\n\r" + "error_message\030\006 \001(\tB\004\342A\001\003\0222\n" + "\013loss_report\030\007 \001(\0132\027.google.protobuf.StructB\004\342A\001\003\"`\n" + "\022OptimizationStatus\022#\n" @@ -933,8 +942,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003B_\n" - + "\033com.google.cloud.ces.v1betaB\017Evaluation" - + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017EvaluationProtoP\001Z-cloud.google." + + "com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1190,6 +1199,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EvaluationMetricsThresholds", "Config", "GoldenRunMethod", + "RootSpan", + "OutcomeMetadata", "Result", }); internal_static_google_cloud_ces_v1beta_EvaluationResult_GoldenExpectationOutcome_descriptor = diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java index cafe2ace8f5b..26a2ff622520 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java @@ -62,6 +62,7 @@ private EvaluationResult() { changelog_ = ""; executionState_ = 0; goldenRunMethod_ = 0; + outcomeMetadata_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -513,6 +514,154 @@ private ExecutionState(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.EvaluationResult.ExecutionState) } + /** + * + * + *
+   * Metadata about the outcome of the evaluation.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata} + */ + public enum OutcomeMetadata implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified outcome metadata.
+     * 
+ * + * OUTCOME_METADATA_UNSPECIFIED = 0; + */ + OUTCOME_METADATA_UNSPECIFIED(0), + /** + * + * + *
+     * The evaluation resulted in a graceful handoff to a human representative.
+     * 
+ * + * GRACEFUL_HANDOFF = 1; + */ + GRACEFUL_HANDOFF(1), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OutcomeMetadata"); + } + + /** + * + * + *
+     * Unspecified outcome metadata.
+     * 
+ * + * OUTCOME_METADATA_UNSPECIFIED = 0; + */ + public static final int OUTCOME_METADATA_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * The evaluation resulted in a graceful handoff to a human representative.
+     * 
+ * + * GRACEFUL_HANDOFF = 1; + */ + public static final int GRACEFUL_HANDOFF_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 OutcomeMetadata 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 OutcomeMetadata forNumber(int value) { + switch (value) { + case 0: + return OUTCOME_METADATA_UNSPECIFIED; + case 1: + return GRACEFUL_HANDOFF; + 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 OutcomeMetadata findValueByNumber(int number) { + return OutcomeMetadata.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationResult.getDescriptor().getEnumTypes().get(2); + } + + private static final OutcomeMetadata[] VALUES = values(); + + public static OutcomeMetadata 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 OutcomeMetadata(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata) + } + public interface GoldenExpectationOutcomeOrBuilder extends // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome) @@ -30279,7 +30428,7 @@ public interface UserGoalSatisfactionResultOrBuilder * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30292,7 +30441,7 @@ public interface UserGoalSatisfactionResultOrBuilder * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30306,6 +30455,7 @@ public interface UserGoalSatisfactionResultOrBuilder * *
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30322,6 +30472,7 @@ public interface UserGoalSatisfactionResultOrBuilder
      *
      * 
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30419,7 +30570,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      *
      *
      * 
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30435,7 +30586,7 @@ public boolean hasScore() { * * *
-     * Output only. The user task satisfaction score. Can be -1, 0, 1.
+     * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
      * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30457,6 +30608,7 @@ public int getScore() { * *
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30484,6 +30636,7 @@ public java.lang.String getLabel() {
      *
      * 
      * Output only. The label associated with each score.
+     * Score 2: Graceful Handoff
      * Score 1: User Task Satisfied
      * Score 0: User Task Not Satisfied
      * Score -1: User Task Unspecified
@@ -30943,7 +31096,7 @@ public Builder mergeFrom(
        *
        *
        * 
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30959,7 +31112,7 @@ public boolean hasScore() { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30975,7 +31128,7 @@ public int getScore() { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -30995,7 +31148,7 @@ public Builder setScore(int value) { * * *
-       * Output only. The user task satisfaction score. Can be -1, 0, 1.
+       * Output only. The user task satisfaction score. Can be -1, 0, 1, 2.
        * 
* * optional int32 score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -31016,6 +31169,7 @@ public Builder clearScore() { * *
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31042,6 +31196,7 @@ public java.lang.String getLabel() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31068,6 +31223,7 @@ public com.google.protobuf.ByteString getLabelBytes() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31093,6 +31249,7 @@ public Builder setLabel(java.lang.String value) {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -31114,6 +31271,7 @@ public Builder clearLabel() {
        *
        * 
        * Output only. The label associated with each score.
+       * Score 2: Graceful Handoff
        * Score 1: User Task Satisfied
        * Score 0: User Task Not Satisfied
        * Score -1: User Task Unspecified
@@ -35037,7 +35195,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu
    * 
    *
    * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See
-   *     google/cloud/ces/v1beta/evaluation.proto;l=1055
+   *     google/cloud/ces/v1beta/evaluation.proto;l=1065
    * @return Whether the error field is set.
    */
   @java.lang.Override
@@ -35059,7 +35217,7 @@ public boolean hasError() {
    * 
    *
    * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See
-   *     google/cloud/ces/v1beta/evaluation.proto;l=1055
+   *     google/cloud/ces/v1beta/evaluation.proto;l=1065
    * @return The error.
    */
   @java.lang.Override
@@ -35587,6 +35745,109 @@ public com.google.cloud.ces.v1beta.GoldenRunMethod getGoldenRunMethod() {
     return result == null ? com.google.cloud.ces.v1beta.GoldenRunMethod.UNRECOGNIZED : result;
   }
 
+  public static final int ROOT_SPAN_FIELD_NUMBER = 24;
+  private com.google.cloud.ces.v1beta.Span rootSpan_;
+
+  /**
+   *
+   *
+   * 
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + @java.lang.Override + public boolean hasRootSpan() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Span getRootSpan() { + return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; + } + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { + return rootSpan_ == null ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() : rootSpan_; + } + + public static final int OUTCOME_METADATA_FIELD_NUMBER = 25; + private int outcomeMetadata_ = 0; + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + @java.lang.Override + public int getOutcomeMetadataValue() { + return outcomeMetadata_; + } + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata() { + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata result = + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.forNumber(outcomeMetadata_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -35662,6 +35923,14 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(22, getChangelogCreateTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + output.writeMessage(24, getRootSpan()); + } + if (outcomeMetadata_ + != com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.OUTCOME_METADATA_UNSPECIFIED + .getNumber()) { + output.writeEnum(25, outcomeMetadata_); + } getUnknownFields().writeTo(output); } @@ -35739,6 +36008,14 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(22, getChangelogCreateTime()); } + if (((bitField0_ & 0x00000080) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(24, getRootSpan()); + } + if (outcomeMetadata_ + != com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.OUTCOME_METADATA_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(25, outcomeMetadata_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -35794,6 +36071,11 @@ public boolean equals(final java.lang.Object obj) { if (!getConfig().equals(other.getConfig())) return false; } if (goldenRunMethod_ != other.goldenRunMethod_) return false; + if (hasRootSpan() != other.hasRootSpan()) return false; + if (hasRootSpan()) { + if (!getRootSpan().equals(other.getRootSpan())) return false; + } + if (outcomeMetadata_ != other.outcomeMetadata_) return false; if (!getResultCase().equals(other.getResultCase())) return false; switch (resultCase_) { case 7: @@ -35864,6 +36146,12 @@ public int hashCode() { } hash = (37 * hash) + GOLDEN_RUN_METHOD_FIELD_NUMBER; hash = (53 * hash) + goldenRunMethod_; + if (hasRootSpan()) { + hash = (37 * hash) + ROOT_SPAN_FIELD_NUMBER; + hash = (53 * hash) + getRootSpan().hashCode(); + } + hash = (37 * hash) + OUTCOME_METADATA_FIELD_NUMBER; + hash = (53 * hash) + outcomeMetadata_; switch (resultCase_) { case 7: hash = (37 * hash) + GOLDEN_RESULT_FIELD_NUMBER; @@ -36024,6 +36312,7 @@ private void maybeForceBuilderInitialization() { internalGetChangelogCreateTimeFieldBuilder(); internalGetEvaluationMetricsThresholdsFieldBuilder(); internalGetConfigFieldBuilder(); + internalGetRootSpanFieldBuilder(); } } @@ -36082,6 +36371,12 @@ public Builder clear() { configBuilder_ = null; } goldenRunMethod_ = 0; + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + outcomeMetadata_ = 0; resultCase_ = 0; result_ = null; return this; @@ -36186,6 +36481,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.EvaluationResult result) if (((from_bitField0_ & 0x00040000) != 0)) { result.goldenRunMethod_ = goldenRunMethod_; } + if (((from_bitField0_ & 0x00080000) != 0)) { + result.rootSpan_ = rootSpanBuilder_ == null ? rootSpan_ : rootSpanBuilder_.build(); + to_bitField0_ |= 0x00000080; + } + if (((from_bitField0_ & 0x00100000) != 0)) { + result.outcomeMetadata_ = outcomeMetadata_; + } result.bitField0_ |= to_bitField0_; } @@ -36277,6 +36579,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.EvaluationResult other) { if (other.goldenRunMethod_ != 0) { setGoldenRunMethodValue(other.getGoldenRunMethodValue()); } + if (other.hasRootSpan()) { + mergeRootSpan(other.getRootSpan()); + } + if (other.outcomeMetadata_ != 0) { + setOutcomeMetadataValue(other.getOutcomeMetadataValue()); + } switch (other.getResultCase()) { case GOLDEN_RESULT: { @@ -36440,6 +36748,19 @@ public Builder mergeFrom( bitField0_ |= 0x00004000; break; } // case 178 + case 194: + { + input.readMessage( + internalGetRootSpanFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00080000; + break; + } // case 194 + case 200: + { + outcomeMetadata_ = input.readEnum(); + bitField0_ |= 0x00100000; + break; + } // case 200 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -38112,7 +38433,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -38133,7 +38454,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return The error. */ @java.lang.Deprecated @@ -39695,6 +40016,340 @@ public Builder clearGoldenRunMethod() { return this; } + private com.google.cloud.ces.v1beta.Span rootSpan_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder> + rootSpanBuilder_; + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + public boolean hasRootSpan() { + return ((bitField0_ & 0x00080000) != 0); + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + public com.google.cloud.ces.v1beta.Span getRootSpan() { + if (rootSpanBuilder_ == null) { + return rootSpan_ == null + ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() + : rootSpan_; + } else { + return rootSpanBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1beta.Span value) { + if (rootSpanBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rootSpan_ = value; + } else { + rootSpanBuilder_.setMessage(value); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRootSpan(com.google.cloud.ces.v1beta.Span.Builder builderForValue) { + if (rootSpanBuilder_ == null) { + rootSpan_ = builderForValue.build(); + } else { + rootSpanBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00080000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeRootSpan(com.google.cloud.ces.v1beta.Span value) { + if (rootSpanBuilder_ == null) { + if (((bitField0_ & 0x00080000) != 0) + && rootSpan_ != null + && rootSpan_ != com.google.cloud.ces.v1beta.Span.getDefaultInstance()) { + getRootSpanBuilder().mergeFrom(value); + } else { + rootSpan_ = value; + } + } else { + rootSpanBuilder_.mergeFrom(value); + } + if (rootSpan_ != null) { + bitField0_ |= 0x00080000; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRootSpan() { + bitField0_ = (bitField0_ & ~0x00080000); + rootSpan_ = null; + if (rootSpanBuilder_ != null) { + rootSpanBuilder_.dispose(); + rootSpanBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.Span.Builder getRootSpanBuilder() { + bitField0_ |= 0x00080000; + onChanged(); + return internalGetRootSpanFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder() { + if (rootSpanBuilder_ != null) { + return rootSpanBuilder_.getMessageOrBuilder(); + } else { + return rootSpan_ == null + ? com.google.cloud.ces.v1beta.Span.getDefaultInstance() + : rootSpan_; + } + } + + /** + * + * + *
+     * Output only. The root span of the evaluation execution, which includes
+     * information about each step of the evaluation.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder> + internalGetRootSpanFieldBuilder() { + if (rootSpanBuilder_ == null) { + rootSpanBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Span, + com.google.cloud.ces.v1beta.Span.Builder, + com.google.cloud.ces.v1beta.SpanOrBuilder>( + getRootSpan(), getParentForChildren(), isClean()); + rootSpan_ = null; + } + return rootSpanBuilder_; + } + + private int outcomeMetadata_ = 0; + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + @java.lang.Override + public int getOutcomeMetadataValue() { + return outcomeMetadata_; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for outcomeMetadata to set. + * @return This builder for chaining. + */ + public Builder setOutcomeMetadataValue(int value) { + outcomeMetadata_ = value; + bitField0_ |= 0x00100000; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata() { + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata result = + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.forNumber(outcomeMetadata_); + return result == null + ? com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The outcomeMetadata to set. + * @return This builder for chaining. + */ + public Builder setOutcomeMetadata( + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00100000; + outcomeMetadata_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The outcome metadata of the evaluation. Only populated if
+     * execution_state is COMPLETE.
+     * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearOutcomeMetadata() { + bitField0_ = (bitField0_ & ~0x00100000); + outcomeMetadata_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.EvaluationResult) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java index cecc84df88b3..d946cccb54a9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java @@ -382,7 +382,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -401,7 +401,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1055 + * google/cloud/ces/v1beta/evaluation.proto;l=1065 * @return The error. */ @java.lang.Deprecated @@ -743,5 +743,83 @@ public interface EvaluationResultOrBuilder */ com.google.cloud.ces.v1beta.GoldenRunMethod getGoldenRunMethod(); + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the rootSpan field is set. + */ + boolean hasRootSpan(); + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The rootSpan. + */ + com.google.cloud.ces.v1beta.Span getRootSpan(); + + /** + * + * + *
+   * Output only. The root span of the evaluation execution, which includes
+   * information about each step of the evaluation.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Span root_span = 24 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.ces.v1beta.SpanOrBuilder getRootSpanOrBuilder(); + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for outcomeMetadata. + */ + int getOutcomeMetadataValue(); + + /** + * + * + *
+   * Output only. The outcome metadata of the evaluation. Only populated if
+   * execution_state is COMPLETE.
+   * 
+ * + * + * .google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata outcome_metadata = 25 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The outcomeMetadata. + */ + com.google.cloud.ces.v1beta.EvaluationResult.OutcomeMetadata getOutcomeMetadata(); + com.google.cloud.ces.v1beta.EvaluationResult.ResultCase getResultCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java index 15279606448f..0390037237de 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java @@ -3278,7 +3278,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Override @@ -3300,7 +3300,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Override @@ -7434,7 +7434,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -7455,7 +7455,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java index 11d396a84021..f6700c7fc352 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java @@ -634,7 +634,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -653,7 +653,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1283 + * google/cloud/ces/v1beta/evaluation.proto;l=1302 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java index d88acdd9a9e1..ed0e7bbedfc4 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Event.java @@ -70,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.Event.Builder.class); } + private int bitField0_; public static final int EVENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -123,6 +124,55 @@ public com.google.protobuf.ByteString getEventBytes() { } } + public static final int VARIABLES_FIELD_NUMBER = 2; + private com.google.protobuf.Struct variables_; + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + @java.lang.Override + public boolean hasVariables() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + @java.lang.Override + public com.google.protobuf.Struct getVariables() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -140,6 +190,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { com.google.protobuf.GeneratedMessage.writeString(output, 1, event_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getVariables()); + } getUnknownFields().writeTo(output); } @@ -152,6 +205,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(event_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, event_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getVariables()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -168,6 +224,10 @@ public boolean equals(final java.lang.Object obj) { com.google.cloud.ces.v1beta.Event other = (com.google.cloud.ces.v1beta.Event) obj; if (!getEvent().equals(other.getEvent())) return false; + if (hasVariables() != other.hasVariables()) return false; + if (hasVariables()) { + if (!getVariables().equals(other.getVariables())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -181,6 +241,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); + if (hasVariables()) { + hash = (37 * hash) + VARIABLES_FIELD_NUMBER; + hash = (53 * hash) + getVariables().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -310,10 +374,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.Event.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetVariablesFieldBuilder(); + } } @java.lang.Override @@ -321,6 +394,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; event_ = ""; + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } return this; } @@ -359,6 +437,12 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Event result) { if (((from_bitField0_ & 0x00000001) != 0)) { result.event_ = event_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.variables_ = variablesBuilder_ == null ? variables_ : variablesBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -378,6 +462,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Event other) { bitField0_ |= 0x00000001; onChanged(); } + if (other.hasVariables()) { + mergeVariables(other.getVariables()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -410,6 +497,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 10 + case 18: + { + input.readMessage( + internalGetVariablesFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -540,6 +634,196 @@ public Builder setEventBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.Struct variables_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + variablesBuilder_; + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + public boolean hasVariables() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + public com.google.protobuf.Struct getVariables() { + if (variablesBuilder_ == null) { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } else { + return variablesBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + variables_ = value; + } else { + variablesBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder setVariables(com.google.protobuf.Struct.Builder builderForValue) { + if (variablesBuilder_ == null) { + variables_ = builderForValue.build(); + } else { + variablesBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder mergeVariables(com.google.protobuf.Struct value) { + if (variablesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && variables_ != null + && variables_ != com.google.protobuf.Struct.getDefaultInstance()) { + getVariablesBuilder().mergeFrom(value); + } else { + variables_ = value; + } + } else { + variablesBuilder_.mergeFrom(value); + } + if (variables_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public Builder clearVariables() { + bitField0_ = (bitField0_ & ~0x00000002); + variables_ = null; + if (variablesBuilder_ != null) { + variablesBuilder_.dispose(); + variablesBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.Struct.Builder getVariablesBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetVariablesFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + public com.google.protobuf.StructOrBuilder getVariablesOrBuilder() { + if (variablesBuilder_ != null) { + return variablesBuilder_.getMessageOrBuilder(); + } else { + return variables_ == null ? com.google.protobuf.Struct.getDefaultInstance() : variables_; + } + } + + /** + * + * + *
+     * Optional. Additional variables associated with the event.
+     * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetVariablesFieldBuilder() { + if (variablesBuilder_ == null) { + variablesBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getVariables(), getParentForChildren(), isClean()); + variables_ = null; + } + return variablesBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Event) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java index 381d79ba0488..63b3616cce89 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EventOrBuilder.java @@ -51,4 +51,41 @@ public interface EventOrBuilder * @return The bytes for event. */ com.google.protobuf.ByteString getEventBytes(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the variables field is set. + */ + boolean hasVariables(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The variables. + */ + com.google.protobuf.Struct getVariables(); + + /** + * + * + *
+   * Optional. Additional variables associated with the event.
+   * 
+ * + * .google.protobuf.Struct variables = 2 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getVariablesOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java index 33cc9ce6b031..8bd80953cf73 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExampleProto.java @@ -130,19 +130,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004data\"3\n" + "\004Blob\022\027\n" + "\tmime_type\030\001 \001(\tB\004\342A\001\002\022\022\n" - + "\004data\030\002 \001(\014B\004\342A\001\002\"4\n" + + "\004data\030\002 \001(\014B\004\342A\001\002\"L\n" + "\005Image\022\027\n" + "\tmime_type\030\001 \001(\tB\004\342A\001\002\022\022\n" - + "\004data\030\002 \001(\014B\004\342A\001\002\"\356\001\n" + + "\004data\030\002 \001(\014B\004\342A\001\002\022\026\n" + + "\010alt_text\030\004 \001(\tB\004\342A\001\001\"\253\002\n" + "\010ToolCall\0220\n" + "\004tool\030\002 \001(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" - + "\014toolset_tool\030\005" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + + "\014toolset_tool\030\005 \001(\0132$.g" + + "oogle.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\004 \001(\tB\004\342A\001\003\022+\n" - + "\004args\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\021\n" - + "\017tool_identifier\"\366\001\n" + + "\004args\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022!\n" + + "\023parent_tool_call_id\030\006 \001(\tB\004\342A\001\003\022\030\n\n" + + "agent_name\030\007 \001(\tB\004\342A\001\003B\021\n" + + "\017tool_identifier\"\263\002\n" + "\014ToolResponse\0220\n" + "\004tool\030\002 \001(\tB \342A\001\001\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022B\n" @@ -150,14 +153,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\004\342A\001\001H\000\022\020\n" + "\002id\030\001 \001(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\004 \001(\tB\004\342A\001\003\022/\n" - + "\010response\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002B\021\n" + + "\010response\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\002\022!\n" + + "\023parent_tool_call_id\030\006 \001(\tB\004\342A\001\003\022\030\n\n" + + "agent_name\030\007 \001(\tB\004\342A\001\003B\021\n" + "\017tool_identifier\"d\n\r" + "AgentTransfer\0227\n" + "\014target_agent\030\001 \001(\tB!\342A\001\002\372A\032\n" + "\030ces.googleapis.com/Agent\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\003B\\\n" - + "\033com.google.cloud.ces.v1betaB\014ExampleP" - + "rotoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\014ExampleProtoP\001Z-cloud." + + "google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -220,14 +225,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Image_descriptor, new java.lang.String[] { - "MimeType", "Data", + "MimeType", "Data", "AltText", }); internal_static_google_cloud_ces_v1beta_ToolCall_descriptor = getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_ToolCall_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolCall_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Id", "DisplayName", "Args", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Id", + "DisplayName", + "Args", + "ParentToolCallId", + "AgentName", + "ToolIdentifier", }); internal_static_google_cloud_ces_v1beta_ToolResponse_descriptor = getDescriptor().getMessageType(6); @@ -235,7 +247,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolResponse_descriptor, new java.lang.String[] { - "Tool", "ToolsetTool", "Id", "DisplayName", "Response", "ToolIdentifier", + "Tool", + "ToolsetTool", + "Id", + "DisplayName", + "Response", + "ParentToolCallId", + "AgentName", + "ToolIdentifier", }); internal_static_google_cloud_ces_v1beta_AgentTransfer_descriptor = getDescriptor().getMessageType(7); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java new file mode 100644 index 000000000000..855d6189fa27 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequest.java @@ -0,0 +1,729 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest} + */ +@com.google.protobuf.Generated +public final class GenerateOnboardingSuggestionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + GenerateOnboardingSuggestionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateOnboardingSuggestionsRequest"); + } + + // Use GenerateOnboardingSuggestionsRequest.newBuilder() to construct. + private GenerateOnboardingSuggestionsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateOnboardingSuggestionsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 MAX_SUGGESTIONS_FIELD_NUMBER = 2; + private int maxSuggestions_ = 0; + + /** + * + * + *
+   * Optional. Maximum number of suggestions to return. Defaults to 4 when
+   * unset.
+   * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (maxSuggestions_ != 0) { + output.writeInt32(2, maxSuggestions_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (maxSuggestions_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxSuggestions_); + } + 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.ces.v1beta.GenerateOnboardingSuggestionsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest other = + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getMaxSuggestions() != other.getMaxSuggestions()) 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) + MAX_SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getMaxSuggestions(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest 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.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + 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.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.GenerateOnboardingSuggestionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + maxSuggestions_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest build() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest buildPartial() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result = + new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxSuggestions_ = maxSuggestions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest other) { + if (other + == com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getMaxSuggestions() != 0) { + setMaxSuggestions(other.getMaxSuggestions()); + } + 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 16: + { + maxSuggestions_ = 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 java.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app whose zero state is being rendered.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 maxSuggestions_; + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + @java.lang.Override + public int getMaxSuggestions() { + return maxSuggestions_; + } + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxSuggestions to set. + * @return This builder for chaining. + */ + public Builder setMaxSuggestions(int value) { + + maxSuggestions_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Maximum number of suggestions to return. Defaults to 4 when
+     * unset.
+     * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxSuggestions() { + bitField0_ = (bitField0_ & ~0x00000002); + maxSuggestions_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + private static final com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest(); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateOnboardingSuggestionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.GenerateOnboardingSuggestionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java new file mode 100644 index 000000000000..ed2997c9228e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsRequestOrBuilder.java @@ -0,0 +1,74 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GenerateOnboardingSuggestionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The app whose zero state is being rendered.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Maximum number of suggestions to return. Defaults to 4 when
+   * unset.
+   * 
+ * + * int32 max_suggestions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxSuggestions. + */ + int getMaxSuggestions(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java new file mode 100644 index 000000000000..e2b863059a03 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponse.java @@ -0,0 +1,1535 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse} + */ +@com.google.protobuf.Generated +public final class GenerateOnboardingSuggestionsResponse + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + GenerateOnboardingSuggestionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GenerateOnboardingSuggestionsResponse"); + } + + // Use GenerateOnboardingSuggestionsResponse.newBuilder() to construct. + private GenerateOnboardingSuggestionsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateOnboardingSuggestionsResponse() { + userProfile_ = 0; + suggestions_ = java.util.Collections.emptyList(); + contextToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.Builder.class); + } + + /** + * + * + *
+   * Classification of the requesting user's history with the assistant in
+   * this app.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile} + */ + public enum UserProfile implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified profile.
+     * 
+ * + * USER_PROFILE_UNSPECIFIED = 0; + */ + USER_PROFILE_UNSPECIFIED(0), + /** + * + * + *
+     * No assistant sessions containing messages.
+     * 
+ * + * NEW = 1; + */ + NEW(1), + /** + * + * + *
+     * One or two assistant sessions containing messages.
+     * 
+ * + * EXPLORING = 2; + */ + EXPLORING(2), + /** + * + * + *
+     * More than two assistant sessions containing messages.
+     * 
+ * + * RETURNING = 3; + */ + RETURNING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UserProfile"); + } + + /** + * + * + *
+     * Unspecified profile.
+     * 
+ * + * USER_PROFILE_UNSPECIFIED = 0; + */ + public static final int USER_PROFILE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * No assistant sessions containing messages.
+     * 
+ * + * NEW = 1; + */ + public static final int NEW_VALUE = 1; + + /** + * + * + *
+     * One or two assistant sessions containing messages.
+     * 
+ * + * EXPLORING = 2; + */ + public static final int EXPLORING_VALUE = 2; + + /** + * + * + *
+     * More than two assistant sessions containing messages.
+     * 
+ * + * RETURNING = 3; + */ + public static final int RETURNING_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 UserProfile 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 UserProfile forNumber(int value) { + switch (value) { + case 0: + return USER_PROFILE_UNSPECIFIED; + case 1: + return NEW; + case 2: + return EXPLORING; + case 3: + return RETURNING; + 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 UserProfile findValueByNumber(int number) { + return UserProfile.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final UserProfile[] VALUES = values(); + + public static UserProfile 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 UserProfile(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile) + } + + public static final int USER_PROFILE_FIELD_NUMBER = 1; + private int userProfile_ = 0; + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + @java.lang.Override + public int getUserProfileValue() { + return userProfile_; + } + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + getUserProfile() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile result = + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.forNumber( + userProfile_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.UNRECOGNIZED + : result; + } + + public static final int SUGGESTIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List suggestions_; + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public java.util.List getSuggestionsList() { + return suggestions_; + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public java.util.List + getSuggestionsOrBuilderList() { + return suggestions_; + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public int getSuggestionsCount() { + return suggestions_.size(); + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index) { + return suggestions_.get(index); + } + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder( + int index) { + return suggestions_.get(index); + } + + public static final int CONTEXT_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object contextToken_ = ""; + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + @java.lang.Override + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = 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 (userProfile_ + != com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .USER_PROFILE_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, userProfile_); + } + for (int i = 0; i < suggestions_.size(); i++) { + output.writeMessage(2, suggestions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, contextToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (userProfile_ + != com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .USER_PROFILE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, userProfile_); + } + for (int i = 0; i < suggestions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, suggestions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, contextToken_); + } + 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.ces.v1beta.GenerateOnboardingSuggestionsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse other = + (com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) obj; + + if (userProfile_ != other.userProfile_) return false; + if (!getSuggestionsList().equals(other.getSuggestionsList())) return false; + if (!getContextToken().equals(other.getContextToken())) 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) + USER_PROFILE_FIELD_NUMBER; + hash = (53 * hash) + userProfile_; + if (getSuggestionsCount() > 0) { + hash = (37 * hash) + SUGGESTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSuggestionsList().hashCode(); + } + hash = (37 * hash) + CONTEXT_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getContextToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse 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.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + 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.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.GenerateOnboardingSuggestionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [SessionService.GenerateOnboardingSuggestions][google.cloud.ces.v1beta.SessionService.GenerateOnboardingSuggestions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.class, + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + userProfile_ = 0; + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + } else { + suggestions_ = null; + suggestionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + contextToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_GenerateOnboardingSuggestionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse build() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse buildPartial() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result = + new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result) { + if (suggestionsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + suggestions_ = java.util.Collections.unmodifiableList(suggestions_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.suggestions_ = suggestions_; + } else { + result.suggestions_ = suggestionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.userProfile_ = userProfile_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.contextToken_ = contextToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse other) { + if (other + == com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.getDefaultInstance()) + return this; + if (other.userProfile_ != 0) { + setUserProfileValue(other.getUserProfileValue()); + } + if (suggestionsBuilder_ == null) { + if (!other.suggestions_.isEmpty()) { + if (suggestions_.isEmpty()) { + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureSuggestionsIsMutable(); + suggestions_.addAll(other.suggestions_); + } + onChanged(); + } + } else { + if (!other.suggestions_.isEmpty()) { + if (suggestionsBuilder_.isEmpty()) { + suggestionsBuilder_.dispose(); + suggestionsBuilder_ = null; + suggestions_ = other.suggestions_; + bitField0_ = (bitField0_ & ~0x00000002); + suggestionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSuggestionsFieldBuilder() + : null; + } else { + suggestionsBuilder_.addAllMessages(other.suggestions_); + } + } + } + if (!other.getContextToken().isEmpty()) { + contextToken_ = other.contextToken_; + 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: + { + userProfile_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + com.google.cloud.ces.v1beta.AssistantSuggestion m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSuggestion.parser(), + extensionRegistry); + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(m); + } else { + suggestionsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + contextToken_ = 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 userProfile_ = 0; + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + @java.lang.Override + public int getUserProfileValue() { + return userProfile_; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @param value The enum numeric value on the wire for userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfileValue(int value) { + userProfile_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + getUserProfile() { + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile result = + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile.forNumber( + userProfile_); + return result == null + ? com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile + .UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @param value The userProfile to set. + * @return This builder for chaining. + */ + public Builder setUserProfile( + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + userProfile_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Classification of the requesting user's history.
+     * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return This builder for chaining. + */ + public Builder clearUserProfile() { + bitField0_ = (bitField0_ & ~0x00000001); + userProfile_ = 0; + onChanged(); + return this; + } + + private java.util.List suggestions_ = + java.util.Collections.emptyList(); + + private void ensureSuggestionsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + suggestions_ = + new java.util.ArrayList(suggestions_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder> + suggestionsBuilder_; + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List getSuggestionsList() { + if (suggestionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(suggestions_); + } else { + return suggestionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public int getSuggestionsCount() { + if (suggestionsBuilder_ == null) { + return suggestions_.size(); + } else { + return suggestionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder setSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.set(index, value); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder setSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.set(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions(com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion value) { + if (suggestionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSuggestionsIsMutable(); + suggestions_.add(index, value); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder addSuggestions( + int index, com.google.cloud.ces.v1beta.AssistantSuggestion.Builder builderForValue) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.add(index, builderForValue.build()); + onChanged(); + } else { + suggestionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + 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; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder clearSuggestions() { + if (suggestionsBuilder_ == null) { + suggestions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + suggestionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public Builder removeSuggestions(int index) { + if (suggestionsBuilder_ == null) { + ensureSuggestionsIsMutable(); + suggestions_.remove(index); + onChanged(); + } else { + suggestionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder getSuggestionsBuilder( + int index) { + return internalGetSuggestionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder( + int index) { + if (suggestionsBuilder_ == null) { + return suggestions_.get(index); + } else { + return suggestionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List + getSuggestionsOrBuilderList() { + if (suggestionsBuilder_ != null) { + return suggestionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(suggestions_); + } + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder addSuggestionsBuilder() { + return internalGetSuggestionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public com.google.cloud.ces.v1beta.AssistantSuggestion.Builder addSuggestionsBuilder( + int index) { + return internalGetSuggestionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantSuggestion.getDefaultInstance()); + } + + /** + * + * + *
+     * Personalized suggestions, ranked most relevant first.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + public java.util.List + getSuggestionsBuilderList() { + return internalGetSuggestionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder> + internalGetSuggestionsFieldBuilder() { + if (suggestionsBuilder_ == null) { + suggestionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSuggestion, + com.google.cloud.ces.v1beta.AssistantSuggestion.Builder, + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder>( + suggestions_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + suggestions_ = null; + } + return suggestionsBuilder_; + } + + private java.lang.Object contextToken_ = ""; + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + public java.lang.String getContextToken() { + java.lang.Object ref = contextToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + contextToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + public com.google.protobuf.ByteString getContextTokenBytes() { + java.lang.Object ref = contextToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + contextToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @param value The contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + contextToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearContextToken() { + contextToken_ = getDefaultInstance().getContextToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Opaque token capturing the onboarding snapshot used to generate these
+     * suggestions. Clients echo it on the first
+     * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+     * so the server can reuse the snapshot.
+     * 
+ * + * string context_token = 3; + * + * @param value The bytes for contextToken to set. + * @return This builder for chaining. + */ + public Builder setContextTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + contextToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + private static final com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse(); + } + + public static com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateOnboardingSuggestionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.GenerateOnboardingSuggestionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java new file mode 100644 index 000000000000..f4ad51754cba --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateOnboardingSuggestionsResponseOrBuilder.java @@ -0,0 +1,146 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GenerateOnboardingSuggestionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The enum numeric value on the wire for userProfile. + */ + int getUserProfileValue(); + + /** + * + * + *
+   * Classification of the requesting user's history.
+   * 
+ * + * + * .google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile user_profile = 1; + * + * + * @return The userProfile. + */ + com.google.cloud.ces.v1beta.GenerateOnboardingSuggestionsResponse.UserProfile getUserProfile(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + java.util.List getSuggestionsList(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + com.google.cloud.ces.v1beta.AssistantSuggestion getSuggestions(int index); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + int getSuggestionsCount(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + java.util.List + getSuggestionsOrBuilderList(); + + /** + * + * + *
+   * Personalized suggestions, ranked most relevant first.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSuggestion suggestions = 2; + */ + com.google.cloud.ces.v1beta.AssistantSuggestionOrBuilder getSuggestionsOrBuilder(int index); + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The contextToken. + */ + java.lang.String getContextToken(); + + /** + * + * + *
+   * Opaque token capturing the onboarding snapshot used to generate these
+   * suggestions. Clients echo it on the first
+   * [StreamChatAiAssistantRequest][google.cloud.ces.v1beta.StreamChatAiAssistantRequest]
+   * so the server can reuse the snapshot.
+   * 
+ * + * string context_token = 3; + * + * @return The bytes for contextToken. + */ + com.google.protobuf.ByteString getContextTokenBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecurityScheme.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java similarity index 55% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecurityScheme.java rename to java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java index 5228622377fb..bcb44ed3dd30 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecurityScheme.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequest.java @@ -15,25 +15,26 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/ces/v1beta/assistant_service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.ces.v1beta; /** * * *
- * MutualTlsSecurityScheme defines a Mutual TLS security scheme.
+ * Request message for
+ * [AssistantService.GetAssistantSession][google.cloud.ces.v1beta.AssistantService.GetAssistantSession].
  * 
* - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme} + * Protobuf type {@code google.cloud.ces.v1beta.GetAssistantSessionRequest} */ @com.google.protobuf.Generated -public final class MutualTlsSecurityScheme extends com.google.protobuf.GeneratedMessage +public final class GetAssistantSessionRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) - MutualTlsSecuritySchemeOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.GetAssistantSessionRequest) + GetAssistantSessionRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,58 +44,62 @@ public final class MutualTlsSecurityScheme extends com.google.protobuf.Generated /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "MutualTlsSecurityScheme"); + "GetAssistantSessionRequest"); } - // Use MutualTlsSecurityScheme.newBuilder() to construct. - private MutualTlsSecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GetAssistantSessionRequest.newBuilder() to construct. + private GetAssistantSessionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private MutualTlsSecurityScheme() { - description_ = ""; + private GetAssistantSessionRequest() { + name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_descriptor; + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_fieldAccessorTable + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder.class); + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.Builder.class); } - public static final int DESCRIPTION_FIELD_NUMBER = 1; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; + private volatile java.lang.Object name_ = ""; /** * * *
-   * Optional. Description of this security scheme.
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
    * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The description. + * @return The name. */ @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + name_ = s; return s; } } @@ -103,20 +108,24 @@ public java.lang.String getDescription() { * * *
-   * Optional. Description of this security scheme.
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
    * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for description. + * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -137,8 +146,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } getUnknownFields().writeTo(output); } @@ -149,8 +158,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -162,13 +171,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme)) { + if (!(obj instanceof com.google.cloud.ces.v1beta.GetAssistantSessionRequest)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) obj; + com.google.cloud.ces.v1beta.GetAssistantSessionRequest other = + (com.google.cloud.ces.v1beta.GetAssistantSessionRequest) obj; - if (!getDescription().equals(other.getDescription())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,79 +189,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().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.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest 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.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( 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.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme parseFrom( + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -270,7 +278,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme prototype) { + com.google.cloud.ces.v1beta.GetAssistantSessionRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -289,32 +297,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
-   * MutualTlsSecurityScheme defines a Mutual TLS security scheme.
+   * Request message for
+   * [AssistantService.GetAssistantSession][google.cloud.ces.v1beta.AssistantService.GetAssistantSession].
    * 
* - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme} + * Protobuf type {@code google.cloud.ces.v1beta.GetAssistantSessionRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.GetAssistantSessionRequest) + com.google.cloud.ces.v1beta.GetAssistantSessionRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_descriptor; + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_fieldAccessorTable + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder.class); + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.class, + com.google.cloud.ces.v1beta.GetAssistantSessionRequest.Builder.class); } - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.newBuilder() + // Construct using com.google.cloud.ces.v1beta.GetAssistantSessionRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -325,26 +333,24 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - description_ = ""; + name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_descriptor; + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_GetAssistantSessionRequest_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance(); + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.GetAssistantSessionRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme result = buildPartial(); + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest build() { + com.google.cloud.ces.v1beta.GetAssistantSessionRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -352,9 +358,9 @@ public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme build } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme(this); + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest buildPartial() { + com.google.cloud.ces.v1beta.GetAssistantSessionRequest result = + new com.google.cloud.ces.v1beta.GetAssistantSessionRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -362,32 +368,28 @@ public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme build return result; } - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme result) { + private void buildPartial0(com.google.cloud.ces.v1beta.GetAssistantSessionRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; + result.name_ = name_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) other); + if (other instanceof com.google.cloud.ces.v1beta.GetAssistantSessionRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.GetAssistantSessionRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; + public Builder mergeFrom(com.google.cloud.ces.v1beta.GetAssistantSessionRequest other) { + if (other == com.google.cloud.ces.v1beta.GetAssistantSessionRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } @@ -419,7 +421,7 @@ public Builder mergeFrom( break; case 10: { - description_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -442,25 +444,29 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object description_ = ""; + private java.lang.Object name_ = ""; /** * * *
-     * Optional. Description of this security scheme.
+     * Required. The name of the assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
      * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The description. + * @return The name. */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; @@ -471,19 +477,23 @@ public java.lang.String getDescription() { * * *
-     * Optional. Description of this security scheme.
+     * Required. The name of the assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
      * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for description. + * @return The bytes for name. */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -494,19 +504,23 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Optional. Description of this security scheme.
+     * Required. The name of the assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
      * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The description to set. + * @param value The name to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -516,15 +530,19 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Optional. Description of this security scheme.
+     * Required. The name of the assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
      * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -534,45 +552,47 @@ public Builder clearDescription() { * * *
-     * Optional. Description of this security scheme.
+     * Required. The name of the assistant session to retrieve.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
      * 
* - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for description to set. + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.GetAssistantSessionRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.GetAssistantSessionRequest) + private static final com.google.cloud.ces.v1beta.GetAssistantSessionRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme(); + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.GetAssistantSessionRequest(); } - public static com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - getDefaultInstance() { + public static com.google.cloud.ces.v1beta.GetAssistantSessionRequest 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 MutualTlsSecurityScheme parsePartialFrom( + public GetAssistantSessionRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -591,18 +611,17 @@ public MutualTlsSecurityScheme 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.geminidataanalytics.v1beta.MutualTlsSecurityScheme - getDefaultInstanceForType() { + public com.google.cloud.ces.v1beta.GetAssistantSessionRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java new file mode 100644 index 000000000000..425a47cbf648 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetAssistantSessionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface GetAssistantSessionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.GetAssistantSessionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the assistant session to retrieve.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}/assistantSessions/{assistant_session}`
+   * 
+ * + * + * 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-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java index f9ab9cfb44f0..f49febb87699 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequest.java @@ -145,7 +145,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -167,7 +167,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Override @@ -647,7 +647,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -669,7 +669,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -694,7 +694,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Override @@ -718,7 +718,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @param value The source to set. * @return This builder for chaining. */ @@ -746,7 +746,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java index 9f2bc482169b..0420ef703d59 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GetConversationRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface GetConversationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GetConversationRequest.source is deprecated. See - * google/cloud/ces/v1beta/agent_service.proto;l=1188 + * google/cloud/ces/v1beta/agent_service.proto;l=1212 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java index 5f1da36adc31..f52ec722c1e7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Guardrail.java @@ -303,6 +303,84 @@ public interface ContentFilterOrBuilder * @return The disregardDiacritics. */ boolean getDisregardDiacritics(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + java.util.List getSensitiveWordsExemptionsList(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + int getSensitiveWordsExemptionsCount(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + java.lang.String getSensitiveWordsExemptions(int index); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index); } /** @@ -340,6 +418,7 @@ private ContentFilter() { bannedContentsInUserInput_ = com.google.protobuf.LazyStringArrayList.emptyList(); bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); matchType_ = 0; + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -409,6 +488,19 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { * REGEXP_MATCH = 3; */ REGEXP_MATCH(3), + /** + * + * + *
+       * Content is matched against a system-managed list of sensitive words
+       * and phrases. Attaching a guardrail with this match type to an app or
+       * agent replaces the default sensitive words filter for the affected
+       * agents; disable the guardrail to opt out of the default filter.
+       * 
+ * + * SENSITIVE_WORDS = 4; + */ + SENSITIVE_WORDS(4), UNRECOGNIZED(-1), ; @@ -468,6 +560,20 @@ public enum MatchType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int REGEXP_MATCH_VALUE = 3; + /** + * + * + *
+       * Content is matched against a system-managed list of sensitive words
+       * and phrases. Attaching a guardrail with this match type to an app or
+       * agent replaces the default sensitive words filter for the affected
+       * agents; disable the guardrail to opt out of the default filter.
+       * 
+ * + * SENSITIVE_WORDS = 4; + */ + public static final int SENSITIVE_WORDS_VALUE = 4; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -500,6 +606,8 @@ public static MatchType forNumber(int value) { return WORD_BOUNDARY_STRING_MATCH; case 3: return REGEXP_MATCH; + case 4: + return SENSITIVE_WORDS; default: return null; } @@ -841,6 +949,98 @@ public boolean getDisregardDiacritics() { return disregardDiacritics_; } + public static final int SENSITIVE_WORDS_EXEMPTIONS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList sensitiveWordsExemptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + public com.google.protobuf.ProtocolStringList getSensitiveWordsExemptionsList() { + return sensitiveWordsExemptions_; + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + public int getSensitiveWordsExemptionsCount() { + return sensitiveWordsExemptions_.size(); + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + public java.lang.String getSensitiveWordsExemptions(int index) { + return sensitiveWordsExemptions_.get(index); + } + + /** + * + * + *
+     * Optional. Entries of the sensitive words list that this guardrail allows.
+     * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+     * list entry (case-insensitive, surrounding whitespace ignored); other
+     * values have no effect. Applies to this guardrail only. At most 1000
+     * entries of up to 256 characters each.
+     * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + public com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index) { + return sensitiveWordsExemptions_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -874,6 +1074,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disregardDiacritics_ != false) { output.writeBool(5, disregardDiacritics_); } + for (int i = 0; i < sensitiveWordsExemptions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString( + output, 7, sensitiveWordsExemptions_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -915,6 +1119,14 @@ public int getSerializedSize() { if (disregardDiacritics_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, disregardDiacritics_); } + { + int dataSize = 0; + for (int i = 0; i < sensitiveWordsExemptions_.size(); i++) { + dataSize += computeStringSizeNoTag(sensitiveWordsExemptions_.getRaw(i)); + } + size += dataSize; + size += 1 * getSensitiveWordsExemptionsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -938,6 +1150,8 @@ public boolean equals(final java.lang.Object obj) { .equals(other.getBannedContentsInAgentResponseList())) return false; if (matchType_ != other.matchType_) return false; if (getDisregardDiacritics() != other.getDisregardDiacritics()) return false; + if (!getSensitiveWordsExemptionsList().equals(other.getSensitiveWordsExemptionsList())) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -965,6 +1179,10 @@ public int hashCode() { hash = (53 * hash) + matchType_; hash = (37 * hash) + DISREGARD_DIACRITICS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisregardDiacritics()); + if (getSensitiveWordsExemptionsCount() > 0) { + hash = (37 * hash) + SENSITIVE_WORDS_EXEMPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getSensitiveWordsExemptionsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1111,6 +1329,7 @@ public Builder clear() { bannedContentsInAgentResponse_ = com.google.protobuf.LazyStringArrayList.emptyList(); matchType_ = 0; disregardDiacritics_ = false; + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1165,6 +1384,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail.ContentFilter r if (((from_bitField0_ & 0x00000010) != 0)) { result.disregardDiacritics_ = disregardDiacritics_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + sensitiveWordsExemptions_.makeImmutable(); + result.sensitiveWordsExemptions_ = sensitiveWordsExemptions_; + } } @java.lang.Override @@ -1216,6 +1439,16 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail.ContentFilter oth if (other.getDisregardDiacritics() != false) { setDisregardDiacritics(other.getDisregardDiacritics()); } + if (!other.sensitiveWordsExemptions_.isEmpty()) { + if (sensitiveWordsExemptions_.isEmpty()) { + sensitiveWordsExemptions_ = other.sensitiveWordsExemptions_; + bitField0_ |= 0x00000020; + } else { + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.addAll(other.sensitiveWordsExemptions_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1275,6 +1508,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 40 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(s); + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2056,66 +2296,304 @@ public Builder clearDisregardDiacritics() { return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) - } - - // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) - private static final com.google.cloud.ces.v1beta.Guardrail.ContentFilter DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.ContentFilter(); - } + private com.google.protobuf.LazyStringArrayList sensitiveWordsExemptions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); - public static com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstance() { - return DEFAULT_INSTANCE; - } + private void ensureSensitiveWordsExemptionsIsMutable() { + if (!sensitiveWordsExemptions_.isModifiable()) { + sensitiveWordsExemptions_ = + new com.google.protobuf.LazyStringArrayList(sensitiveWordsExemptions_); + } + bitField0_ |= 0x00000020; + } - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ContentFilter parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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(); - } - }; + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the sensitiveWordsExemptions. + */ + public com.google.protobuf.ProtocolStringList getSensitiveWordsExemptionsList() { + sensitiveWordsExemptions_.makeImmutable(); + return sensitiveWordsExemptions_; + } - public static com.google.protobuf.Parser parser() { - return PARSER; - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of sensitiveWordsExemptions. + */ + public int getSensitiveWordsExemptionsCount() { + return sensitiveWordsExemptions_.size(); + } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The sensitiveWordsExemptions at the given index. + */ + public java.lang.String getSensitiveWordsExemptions(int index) { + return sensitiveWordsExemptions_.get(index); + } - @java.lang.Override - public com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - } + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the sensitiveWordsExemptions at the given index. + */ + public com.google.protobuf.ByteString getSensitiveWordsExemptionsBytes(int index) { + return sensitiveWordsExemptions_.getByteString(index); + } - public interface LlmPromptSecurityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.LlmPromptSecurity) - com.google.protobuf.MessageOrBuilder { + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The sensitiveWordsExemptions to set. + * @return This builder for chaining. + */ + public Builder setSensitiveWordsExemptions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } - /** - * - * + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addSensitiveWordsExemptions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addAllSensitiveWordsExemptions(java.lang.Iterable values) { + ensureSensitiveWordsExemptionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, sensitiveWordsExemptions_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearSensitiveWordsExemptions() { + sensitiveWordsExemptions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Entries of the sensitive words list that this guardrail allows.
+       * Only valid when match_type is SENSITIVE_WORDS. Each value must equal a
+       * list entry (case-insensitive, surrounding whitespace ignored); other
+       * values have no effect. Applies to this guardrail only. At most 1000
+       * entries of up to 256 characters each.
+       * 
+ * + * + * repeated string sensitive_words_exemptions = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the sensitiveWordsExemptions to add. + * @return This builder for chaining. + */ + public Builder addSensitiveWordsExemptionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSensitiveWordsExemptionsIsMutable(); + sensitiveWordsExemptions_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.ContentFilter) + private static final com.google.cloud.ces.v1beta.Guardrail.ContentFilter DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.ContentFilter(); + } + + public static com.google.cloud.ces.v1beta.Guardrail.ContentFilter getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ContentFilter parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.Guardrail.ContentFilter getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface LlmPromptSecurityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.LlmPromptSecurity) + com.google.protobuf.MessageOrBuilder { + + /** + * + * *
      * Optional. Use the system's predefined default security settings.
      * To select this mode, include an empty 'default_settings' message
@@ -4317,7 +4795,9 @@ public interface LlmPolicyOrBuilder
      *
      *
      * 
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4330,7 +4810,9 @@ public interface LlmPolicyOrBuilder * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4745,7 +5227,9 @@ public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuil * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -4769,7 +5253,9 @@ public java.lang.String getPrompt() { * * *
-     * Required. Policy prompt.
+     * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+     * as well as `{agent_system_instruction}` to inject the agent's resolved
+     * system instructions.
      * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5605,7 +6091,9 @@ public com.google.cloud.ces.v1beta.ModelSettingsOrBuilder getModelSettingsOrBuil * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5628,7 +6116,9 @@ public java.lang.String getPrompt() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5651,7 +6141,9 @@ public com.google.protobuf.ByteString getPromptBytes() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5673,7 +6165,9 @@ public Builder setPrompt(java.lang.String value) { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -5691,7 +6185,9 @@ public Builder clearPrompt() { * * *
-       * Required. Policy prompt.
+       * Required. Policy prompt. Supports session variable placeholders (`{var}`)
+       * as well as `{agent_system_instruction}` to inject the agent's resolved
+       * system instructions.
        * 
* * string prompt = 3 [(.google.api.field_behavior) = REQUIRED]; @@ -6192,6 +6688,26 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { * HARM_CATEGORY_SEXUALLY_EXPLICIT = 4; */ HARM_CATEGORY_SEXUALLY_EXPLICIT(4), + /** + * + * + *
+       * The harm category is profanity.
+       * 
+ * + * HARM_CATEGORY_PROFANITY = 5; + */ + HARM_CATEGORY_PROFANITY(5), + /** + * + * + *
+       * The harm category is toxic.
+       * 
+ * + * HARM_CATEGORY_TOXIC = 6; + */ + HARM_CATEGORY_TOXIC(6), UNRECOGNIZED(-1), ; @@ -6260,6 +6776,28 @@ public enum HarmCategory implements com.google.protobuf.ProtocolMessageEnum { */ public static final int HARM_CATEGORY_SEXUALLY_EXPLICIT_VALUE = 4; + /** + * + * + *
+       * The harm category is profanity.
+       * 
+ * + * HARM_CATEGORY_PROFANITY = 5; + */ + public static final int HARM_CATEGORY_PROFANITY_VALUE = 5; + + /** + * + * + *
+       * The harm category is toxic.
+       * 
+ * + * HARM_CATEGORY_TOXIC = 6; + */ + public static final int HARM_CATEGORY_TOXIC_VALUE = 6; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -6294,6 +6832,10 @@ public static HarmCategory forNumber(int value) { return HARM_CATEGORY_HARASSMENT; case 4: return HARM_CATEGORY_SEXUALLY_EXPLICIT; + case 5: + return HARM_CATEGORY_PROFANITY; + case 6: + return HARM_CATEGORY_TOXIC; default: return null; } @@ -10500,67 +11042,1364 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallback getDefaultInstanceForT } } - private int bitField0_; - private int guardrailTypeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object guardrailType_; - - public enum GuardrailTypeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CONTENT_FILTER(8), - LLM_PROMPT_SECURITY(9), - LLM_POLICY(10), - MODEL_SAFETY(13), - CODE_CALLBACK(14), - GUARDRAILTYPE_NOT_SET(0); - private final int value; - - private GuardrailTypeCase(int value) { - this.value = value; - } + public interface SupervisorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.Guardrail.Supervisor) + com.google.protobuf.MessageOrBuilder { /** - * @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 type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. */ - @java.lang.Deprecated - public static GuardrailTypeCase valueOf(int value) { - return forNumber(value); - } + int getTypeValue(); - public static GuardrailTypeCase forNumber(int value) { - switch (value) { - case 8: - return CONTENT_FILTER; - case 9: - return LLM_PROMPT_SECURITY; - case 10: - return LLM_POLICY; - case 13: - return MODEL_SAFETY; - case 14: - return CODE_CALLBACK; - case 0: - return GUARDRAILTYPE_NOT_SET; - default: - return null; - } - } + /** + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType(); - public int getNumber() { - return this.value; - } - }; + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + int getDetectionModeValue(); - public GuardrailTypeCase getGuardrailTypeCase() { - return GuardrailTypeCase.forNumber(guardrailTypeCase_); + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode(); } - public static final int CONTENT_FILTER_FIELD_NUMBER = 8; + /** + * + * + *
+   * Guardrail that runs supervisor intervention.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Guardrail.Supervisor} + */ + public static final class Supervisor extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.Guardrail.Supervisor) + SupervisorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Supervisor"); + } + + // Use Supervisor.newBuilder() to construct. + private Supervisor(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Supervisor() { + type_ = 0; + detectionMode_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.class, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder.class); + } + + /** + * + * + *
+     * Type of supervisor.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Guardrail.Supervisor.Type} + */ + public enum Type implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Type is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + TYPE_UNSPECIFIED(0), + /** + * + * + *
+       * Invalid text issue type.
+       * 
+ * + * INVALID_TEXT = 1; + */ + INVALID_TEXT(1), + /** + * + * + *
+       * Language shift issue type.
+       * 
+ * + * LANGUAGE_SHIFT = 2; + */ + LANGUAGE_SHIFT(2), + /** + * + * + *
+       * Speaker shift issue type.
+       * 
+ * + * SPEAKER_SHIFT = 3; + */ + SPEAKER_SHIFT(3), + /** + * + * + *
+       * Audio mismatch issue type.
+       * 
+ * + * AUDIO_MISMATCH = 4; + */ + AUDIO_MISMATCH(4), + /** + * + * + *
+       * Missing tool call issue type.
+       * 
+ * + * MISSING_TOOL_CALL = 5; + */ + MISSING_TOOL_CALL(5), + /** + * + * + *
+       * Custom issue type.
+       * 
+ * + * CUSTOM = 6; + */ + CUSTOM(6), + /** + * + * + *
+       * Choppy audio issue type.
+       * 
+ * + * CHOPPY_AUDIO = 7; + */ + CHOPPY_AUDIO(7), + /** + * + * + *
+       * Agent profanity issue type.
+       * 
+ * + * PROFANITY = 8; + */ + PROFANITY(8), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Type"); + } + + /** + * + * + *
+       * Type is unspecified.
+       * 
+ * + * TYPE_UNSPECIFIED = 0; + */ + public static final int TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Invalid text issue type.
+       * 
+ * + * INVALID_TEXT = 1; + */ + public static final int INVALID_TEXT_VALUE = 1; + + /** + * + * + *
+       * Language shift issue type.
+       * 
+ * + * LANGUAGE_SHIFT = 2; + */ + public static final int LANGUAGE_SHIFT_VALUE = 2; + + /** + * + * + *
+       * Speaker shift issue type.
+       * 
+ * + * SPEAKER_SHIFT = 3; + */ + public static final int SPEAKER_SHIFT_VALUE = 3; + + /** + * + * + *
+       * Audio mismatch issue type.
+       * 
+ * + * AUDIO_MISMATCH = 4; + */ + public static final int AUDIO_MISMATCH_VALUE = 4; + + /** + * + * + *
+       * Missing tool call issue type.
+       * 
+ * + * MISSING_TOOL_CALL = 5; + */ + public static final int MISSING_TOOL_CALL_VALUE = 5; + + /** + * + * + *
+       * Custom issue type.
+       * 
+ * + * CUSTOM = 6; + */ + public static final int CUSTOM_VALUE = 6; + + /** + * + * + *
+       * Choppy audio issue type.
+       * 
+ * + * CHOPPY_AUDIO = 7; + */ + public static final int CHOPPY_AUDIO_VALUE = 7; + + /** + * + * + *
+       * Agent profanity issue type.
+       * 
+ * + * PROFANITY = 8; + */ + public static final int PROFANITY_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 Type 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 Type forNumber(int value) { + switch (value) { + case 0: + return TYPE_UNSPECIFIED; + case 1: + return INVALID_TEXT; + case 2: + return LANGUAGE_SHIFT; + case 3: + return SPEAKER_SHIFT; + case 4: + return AUDIO_MISMATCH; + case 5: + return MISSING_TOOL_CALL; + case 6: + return CUSTOM; + case 7: + return CHOPPY_AUDIO; + case 8: + return PROFANITY; + 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 Type findValueByNumber(int number) { + return Type.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Type[] VALUES = values(); + + public static Type 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 Type(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.Guardrail.Supervisor.Type) + } + + /** + * + * + *
+     * Detection mode of the supervisor.
+     * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode} + */ + public enum DetectionMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+       * Detection mode is unspecified. Default to NON_BLOCKING.
+       * 
+ * + * DETECTION_MODE_UNSPECIFIED = 0; + */ + DETECTION_MODE_UNSPECIFIED(0), + /** + * + * + *
+       * Non blocking detection mode.
+       * Response is not blocked when the supervisor detection is ongoing.
+       * 
+ * + * NON_BLOCKING = 1; + */ + NON_BLOCKING(1), + /** + * + * + *
+       * Blocking detection mode.
+       * Response is blocked when the supervisor detection is ongoing.
+       * 
+ * + * BLOCKING = 2; + */ + BLOCKING(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "DetectionMode"); + } + + /** + * + * + *
+       * Detection mode is unspecified. Default to NON_BLOCKING.
+       * 
+ * + * DETECTION_MODE_UNSPECIFIED = 0; + */ + public static final int DETECTION_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+       * Non blocking detection mode.
+       * Response is not blocked when the supervisor detection is ongoing.
+       * 
+ * + * NON_BLOCKING = 1; + */ + public static final int NON_BLOCKING_VALUE = 1; + + /** + * + * + *
+       * Blocking detection mode.
+       * Response is blocked when the supervisor detection is ongoing.
+       * 
+ * + * BLOCKING = 2; + */ + public static final int BLOCKING_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 DetectionMode 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 DetectionMode forNumber(int value) { + switch (value) { + case 0: + return DETECTION_MODE_UNSPECIFIED; + case 1: + return NON_BLOCKING; + case 2: + return BLOCKING; + 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 DetectionMode findValueByNumber(int number) { + return DetectionMode.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final DetectionMode[] VALUES = values(); + + public static DetectionMode 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 DetectionMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode) + } + + public static final int TYPE_FIELD_NUMBER = 1; + private int type_ = 0; + + /** + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+     * Optional. The type of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.UNRECOGNIZED + : result; + } + + public static final int DETECTION_MODE_FIELD_NUMBER = 2; + private int detectionMode_ = 0; + + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + @java.lang.Override + public int getDetectionModeValue() { + return detectionMode_; + } + + /** + * + * + *
+     * Optional. The detection mode of the supervisor.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.forNumber(detectionMode_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.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 (type_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(1, type_); + } + if (detectionMode_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode + .DETECTION_MODE_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, detectionMode_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (type_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_); + } + if (detectionMode_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode + .DETECTION_MODE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, detectionMode_); + } + 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.ces.v1beta.Guardrail.Supervisor)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.Guardrail.Supervisor other = + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) obj; + + if (type_ != other.type_) return false; + if (detectionMode_ != other.detectionMode_) 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) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + type_; + hash = (37 * hash) + DETECTION_MODE_FIELD_NUMBER; + hash = (53 * hash) + detectionMode_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor 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.ces.v1beta.Guardrail.Supervisor parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + 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.ces.v1beta.Guardrail.Supervisor parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.Guardrail.Supervisor prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Guardrail that runs supervisor intervention.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.Guardrail.Supervisor} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.Guardrail.Supervisor) + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.class, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.Guardrail.Supervisor.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + type_ = 0; + detectionMode_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.GuardrailProto + .internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor build() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor buildPartial() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor result = + new com.google.cloud.ces.v1beta.Guardrail.Supervisor(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail.Supervisor result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.type_ = type_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.detectionMode_ = detectionMode_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.Guardrail.Supervisor) { + return mergeFrom((com.google.cloud.ces.v1beta.Guardrail.Supervisor) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail.Supervisor other) { + if (other == com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance()) + return this; + if (other.type_ != 0) { + setTypeValue(other.getTypeValue()); + } + if (other.detectionMode_ != 0) { + setDetectionModeValue(other.getDetectionModeValue()); + } + 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: + { + type_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 16: + { + detectionMode_ = 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 type_ = 0; + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for type. + */ + @java.lang.Override + public int getTypeValue() { + return type_; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The type. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type getType() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.forNumber(type_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(com.google.cloud.ces.v1beta.Guardrail.Supervisor.Type value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + type_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The type of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.Type type = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearType() { + bitField0_ = (bitField0_ & ~0x00000001); + type_ = 0; + onChanged(); + return this; + } + + private int detectionMode_ = 0; + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for detectionMode. + */ + @java.lang.Override + public int getDetectionModeValue() { + return detectionMode_; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for detectionMode to set. + * @return This builder for chaining. + */ + public Builder setDetectionModeValue(int value) { + detectionMode_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The detectionMode. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode getDetectionMode() { + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode result = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.forNumber( + detectionMode_); + return result == null + ? com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The detectionMode to set. + * @return This builder for chaining. + */ + public Builder setDetectionMode( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + detectionMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The detection mode of the supervisor.
+       * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor.DetectionMode detection_mode = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearDetectionMode() { + bitField0_ = (bitField0_ & ~0x00000002); + detectionMode_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Guardrail.Supervisor) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.Guardrail.Supervisor) + private static final com.google.cloud.ces.v1beta.Guardrail.Supervisor DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.Guardrail.Supervisor(); + } + + public static com.google.cloud.ces.v1beta.Guardrail.Supervisor getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Supervisor parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.Guardrail.Supervisor getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int guardrailTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object guardrailType_; + + public enum GuardrailTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CONTENT_FILTER(8), + LLM_PROMPT_SECURITY(9), + LLM_POLICY(10), + MODEL_SAFETY(13), + CODE_CALLBACK(14), + SUPERVISOR(16), + GUARDRAILTYPE_NOT_SET(0); + private final int value; + + private GuardrailTypeCase(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 GuardrailTypeCase valueOf(int value) { + return forNumber(value); + } + + public static GuardrailTypeCase forNumber(int value) { + switch (value) { + case 8: + return CONTENT_FILTER; + case 9: + return LLM_PROMPT_SECURITY; + case 10: + return LLM_POLICY; + case 13: + return MODEL_SAFETY; + case 14: + return CODE_CALLBACK; + case 16: + return SUPERVISOR; + case 0: + return GUARDRAILTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public GuardrailTypeCase getGuardrailTypeCase() { + return GuardrailTypeCase.forNumber(guardrailTypeCase_); + } + + public static final int CONTENT_FILTER_FIELD_NUMBER = 8; /** * @@ -10876,6 +12715,66 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallba return com.google.cloud.ces.v1beta.Guardrail.CodeCallback.getDefaultInstance(); } + public static final int SUPERVISOR_FIELD_NUMBER = 16; + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + @java.lang.Override + public boolean hasSupervisor() { + return guardrailTypeCase_ == 16; + } + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor() { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder() { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -11332,6 +13231,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (guardrailTypeCase_ == 14) { output.writeMessage(14, (com.google.cloud.ces.v1beta.Guardrail.CodeCallback) guardrailType_); } + if (guardrailTypeCase_ == 16) { + output.writeMessage(16, (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_); + } getUnknownFields().writeTo(output); } @@ -11390,6 +13292,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.cloud.ces.v1beta.Guardrail.CodeCallback) guardrailType_); } + if (guardrailTypeCase_ == 16) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 16, (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -11439,6 +13346,9 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getCodeCallback().equals(other.getCodeCallback())) return false; break; + case 16: + if (!getSupervisor().equals(other.getSupervisor())) return false; + break; case 0: default: } @@ -11496,6 +13406,10 @@ public int hashCode() { hash = (37 * hash) + CODE_CALLBACK_FIELD_NUMBER; hash = (53 * hash) + getCodeCallback().hashCode(); break; + case 16: + hash = (37 * hash) + SUPERVISOR_FIELD_NUMBER; + hash = (53 * hash) + getSupervisor().hashCode(); + break; case 0: default: } @@ -11665,6 +13579,9 @@ public Builder clear() { if (codeCallbackBuilder_ != null) { codeCallbackBuilder_.clear(); } + if (supervisorBuilder_ != null) { + supervisorBuilder_.clear(); + } name_ = ""; displayName_ = ""; description_ = ""; @@ -11724,32 +13641,32 @@ public com.google.cloud.ces.v1beta.Guardrail buildPartial() { private void buildPartial0(com.google.cloud.ces.v1beta.Guardrail result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.enabled_ = enabled_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.action_ = actionBuilder_ == null ? action_ : actionBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.etag_ = etag_; } result.bitField0_ |= to_bitField0_; @@ -11773,6 +13690,9 @@ private void buildPartialOneofs(com.google.cloud.ces.v1beta.Guardrail result) { if (guardrailTypeCase_ == 14 && codeCallbackBuilder_ != null) { result.guardrailType_ = codeCallbackBuilder_.build(); } + if (guardrailTypeCase_ == 16 && supervisorBuilder_ != null) { + result.guardrailType_ = supervisorBuilder_.build(); + } } @java.lang.Override @@ -11789,17 +13709,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { if (other == com.google.cloud.ces.v1beta.Guardrail.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (other.getEnabled() != false) { @@ -11816,7 +13736,7 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { } if (!other.getEtag().isEmpty()) { etag_ = other.etag_; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } switch (other.getGuardrailTypeCase()) { @@ -11845,6 +13765,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Guardrail other) { mergeCodeCallback(other.getCodeCallback()); break; } + case SUPERVISOR: + { + mergeSupervisor(other.getSupervisor()); + break; + } case GUARDRAILTYPE_NOT_SET: { break; @@ -11879,45 +13804,45 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 26 case 32: { enabled_ = input.readBool(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 32 case 42: { input.readMessage(internalGetActionFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 42 case 50: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 50 case 58: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 58 case 66: @@ -11944,7 +13869,7 @@ public Builder mergeFrom( case 90: { etag_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 90 case 106: @@ -11961,6 +13886,13 @@ public Builder mergeFrom( guardrailTypeCase_ = 14; break; } // case 114 + case 130: + { + input.readMessage( + internalGetSupervisorFieldBuilder().getBuilder(), extensionRegistry); + guardrailTypeCase_ = 16; + break; + } // case 130 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -13230,6 +15162,243 @@ public com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallba return codeCallbackBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder> + supervisorBuilder_; + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + @java.lang.Override + public boolean hasSupervisor() { + return guardrailTypeCase_ == 16; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor() { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } else { + if (guardrailTypeCase_ == 16) { + return supervisorBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSupervisor(com.google.cloud.ces.v1beta.Guardrail.Supervisor value) { + if (supervisorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + guardrailType_ = value; + onChanged(); + } else { + supervisorBuilder_.setMessage(value); + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSupervisor( + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder builderForValue) { + if (supervisorBuilder_ == null) { + guardrailType_ = builderForValue.build(); + onChanged(); + } else { + supervisorBuilder_.setMessage(builderForValue.build()); + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSupervisor(com.google.cloud.ces.v1beta.Guardrail.Supervisor value) { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16 + && guardrailType_ + != com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance()) { + guardrailType_ = + com.google.cloud.ces.v1beta.Guardrail.Supervisor.newBuilder( + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_) + .mergeFrom(value) + .buildPartial(); + } else { + guardrailType_ = value; + } + onChanged(); + } else { + if (guardrailTypeCase_ == 16) { + supervisorBuilder_.mergeFrom(value); + } else { + supervisorBuilder_.setMessage(value); + } + } + guardrailTypeCase_ = 16; + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSupervisor() { + if (supervisorBuilder_ == null) { + if (guardrailTypeCase_ == 16) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + onChanged(); + } + } else { + if (guardrailTypeCase_ == 16) { + guardrailTypeCase_ = 0; + guardrailType_ = null; + } + supervisorBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder getSupervisorBuilder() { + return internalGetSupervisorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder() { + if ((guardrailTypeCase_ == 16) && (supervisorBuilder_ != null)) { + return supervisorBuilder_.getMessageOrBuilder(); + } else { + if (guardrailTypeCase_ == 16) { + return (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_; + } + return com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. Guardrail that runs supervisor intervention.
+     * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder> + internalGetSupervisorFieldBuilder() { + if (supervisorBuilder_ == null) { + if (!(guardrailTypeCase_ == 16)) { + guardrailType_ = com.google.cloud.ces.v1beta.Guardrail.Supervisor.getDefaultInstance(); + } + supervisorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.Guardrail.Supervisor, + com.google.cloud.ces.v1beta.Guardrail.Supervisor.Builder, + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder>( + (com.google.cloud.ces.v1beta.Guardrail.Supervisor) guardrailType_, + getParentForChildren(), + isClean()); + guardrailType_ = null; + } + guardrailTypeCase_ = 16; + onChanged(); + return supervisorBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -13301,7 +15470,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -13321,7 +15490,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -13346,7 +15515,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -13416,7 +15585,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13434,7 +15603,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -13457,7 +15626,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -13527,7 +15696,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13545,7 +15714,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -13568,7 +15737,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -13606,7 +15775,7 @@ public boolean getEnabled() { public Builder setEnabled(boolean value) { enabled_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -13623,7 +15792,7 @@ public Builder setEnabled(boolean value) { * @return This builder for chaining. */ public Builder clearEnabled() { - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); enabled_ = false; onChanged(); return this; @@ -13650,7 +15819,7 @@ public Builder clearEnabled() { * @return Whether the action field is set. */ public boolean hasAction() { - return ((bitField0_ & 0x00000200) != 0); + return ((bitField0_ & 0x00000400) != 0); } /** @@ -13696,7 +15865,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction value) { } else { actionBuilder_.setMessage(value); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -13718,7 +15887,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction.Builder build } else { actionBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -13736,7 +15905,7 @@ public Builder setAction(com.google.cloud.ces.v1beta.TriggerAction.Builder build */ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { if (actionBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) + if (((bitField0_ & 0x00000400) != 0) && action_ != null && action_ != com.google.cloud.ces.v1beta.TriggerAction.getDefaultInstance()) { getActionBuilder().mergeFrom(value); @@ -13747,7 +15916,7 @@ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { actionBuilder_.mergeFrom(value); } if (action_ != null) { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } return this; @@ -13765,7 +15934,7 @@ public Builder mergeAction(com.google.cloud.ces.v1beta.TriggerAction value) { * */ public Builder clearAction() { - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); action_ = null; if (actionBuilder_ != null) { actionBuilder_.dispose(); @@ -13787,7 +15956,7 @@ public Builder clearAction() { * */ public com.google.cloud.ces.v1beta.TriggerAction.Builder getActionBuilder() { - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return internalGetActionFieldBuilder().getBuilder(); } @@ -13862,7 +16031,7 @@ public com.google.cloud.ces.v1beta.TriggerActionOrBuilder getActionOrBuilder() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000400) != 0); + return ((bitField0_ & 0x00000800) != 0); } /** @@ -13908,7 +16077,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -13930,7 +16099,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -13948,7 +16117,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000400) != 0) + if (((bitField0_ & 0x00000800) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -13959,7 +16128,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); } return this; @@ -13977,7 +16146,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -13999,7 +16168,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -14074,7 +16243,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -14120,7 +16289,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -14142,7 +16311,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -14160,7 +16329,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { if (updateTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && updateTime_ != null && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getUpdateTimeBuilder().mergeFrom(value); @@ -14171,7 +16340,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -14189,7 +16358,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearUpdateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); updateTime_ = null; if (updateTimeBuilder_ != null) { updateTimeBuilder_.dispose(); @@ -14211,7 +16380,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -14336,7 +16505,7 @@ public Builder setEtag(java.lang.String value) { throw new NullPointerException(); } etag_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -14356,7 +16525,7 @@ public Builder setEtag(java.lang.String value) { */ public Builder clearEtag() { etag_ = getDefaultInstance().getEtag(); - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); onChanged(); return this; } @@ -14381,7 +16550,7 @@ public Builder setEtagBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); etag_ = value; - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java index fbc33c32237b..209ba64366a8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailOrBuilder.java @@ -256,6 +256,49 @@ public interface GuardrailOrBuilder */ com.google.cloud.ces.v1beta.Guardrail.CodeCallbackOrBuilder getCodeCallbackOrBuilder(); + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the supervisor field is set. + */ + boolean hasSupervisor(); + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The supervisor. + */ + com.google.cloud.ces.v1beta.Guardrail.Supervisor getSupervisor(); + + /** + * + * + *
+   * Optional. Guardrail that runs supervisor intervention.
+   * 
+ * + * + * .google.cloud.ces.v1beta.Guardrail.Supervisor supervisor = 16 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.Guardrail.SupervisorOrBuilder getSupervisorOrBuilder(); + /** * * diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java index 2df8930b1342..d37a97d591d5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GuardrailProto.java @@ -72,6 +72,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_Guardrail_CodeCallback_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_Guardrail_CodeCallback_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -86,7 +90,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "o\022\027google.cloud.ces.v1beta\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" + ".proto\032$google/cloud/ces/v1beta/common.p" - + "roto\032\037google/protobuf/timestamp.proto\"\344\026\n" + + "roto\032\037google/protobuf/timestamp.proto\"\330\033\n" + "\tGuardrail\022P\n" + "\016content_filter\030\010 \001(\01320.go" + "ogle.cloud.ces.v1beta.Guardrail.ContentFilterB\004\342A\001\001H\000\022Y\n" @@ -98,7 +102,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\013" + "2..google.cloud.ces.v1beta.Guardrail.ModelSafetyB\004\342A\001\001H\000\022N\n\r" + "code_callback\030\016 \001(\0132" - + "/.google.cloud.ces.v1beta.Guardrail.CodeCallbackB\004\342A\001\001H\000\022\022\n" + + "/.google.cloud.ces.v1beta.Guardrail.CodeCallbackB\004\342A\001\001H\000\022I\n\n" + + "supervisor\030\020 \001(\0132-.g" + + "oogle.cloud.ces.v1beta.Guardrail.SupervisorB\004\342A\001\001H\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\032\n" + "\014display_name\030\002 \001(\tB\004\342A\001\002\022\031\n" + "\013description\030\003 \001(\tB\004\342A\001\001\022\025\n" @@ -109,56 +115,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\007" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\014\n" - + "\004etag\030\013 \001(\t\032\372\002\n\r" + + "\004etag\030\013 \001(\t\032\272\003\n\r" + "ContentFilter\022\035\n" + "\017banned_contents\030\001 \003(\tB\004\342A\001\001\022+\n" + "\035banned_contents_in_user_input\030\002 \003(\tB\004\342A\001\001\022/\n" + "!banned_contents_in_agent_response\030\003 \003(\tB\004\342A\001\001\022T\n\n" - + "match_type\030\004 \001(\0162:.google.cloud.c" - + "es.v1beta.Guardrail.ContentFilter.MatchTypeB\004\342A\001\002\022\"\n" - + "\024disregard_diacritics\030\005 \001(\010B\004\342A\001\001\"r\n" + + "match_type\030\004 \001(\0162:.google.cloud.ces.v1" + + "beta.Guardrail.ContentFilter.MatchTypeB\004\342A\001\002\022\"\n" + + "\024disregard_diacritics\030\005 \001(\010B\004\342A\001\001\022(\n" + + "\032sensitive_words_exemptions\030\007 \003(\tB\004\342A\001\001\"\207\001\n" + "\tMatchType\022\032\n" + "\026MATCH_TYPE_UNSPECIFIED\020\000\022\027\n" + "\023SIMPLE_STRING_MATCH\020\001\022\036\n" + "\032WORD_BOUNDARY_STRING_MATCH\020\002\022\020\n" - + "\014REGEXP_MATCH\020\003\032\276\002\n" + + "\014REGEXP_MATCH\020\003\022\023\n" + + "\017SENSITIVE_WORDS\020\004\032\276\002\n" + "\021LlmPromptSecurity\022n\n" - + "\020default_settings\030\001 \001(\0132L.google.cloud.ces.v1beta.Guar" - + "drail.LlmPromptSecurity.DefaultSecuritySettingsB\004\342A\001\001H\000\022K\n\r" - + "custom_policy\030\002 \001(\0132," - + ".google.cloud.ces.v1beta.Guardrail.LlmPolicyB\004\342A\001\001H\000\022\027\n" + + "\020default_settings\030\001 \001(\0132L.google.cl" + + "oud.ces.v1beta.Guardrail.LlmPromptSecurity.DefaultSecuritySettingsB\004\342A\001\001H\000\022K\n\r" + + "custom_policy\030\002" + + " \001(\0132,.google.cloud.ces.v1beta.Guardrail.LlmPolicyB\004\342A\001\001H\000\022\027\n" + "\tfail_open\030\003 \001(\010B\004\342A\001\001\032@\n" + "\027DefaultSecuritySettings\022%\n" + "\027default_prompt_template\030\001 \001(\tB\004\342A\001\003B\021\n" + "\017security_config\032\230\003\n" + "\tLlmPolicy\022\'\n" + "\031max_conversation_messages\030\001 \001(\005B\004\342A\001\001\022D\n" - + "\016model_settings\030\002 \001(" - + "\0132&.google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\024\n" + + "\016model_settings\030\002" + + " \001(\0132&.google.cloud.ces.v1beta.ModelSettingsB\004\342A\001\001\022\024\n" + "\006prompt\030\003 \001(\tB\004\342A\001\002\022T\n" - + "\014policy_scope\030\004" - + " \001(\01628.google.cloud.ces.v1beta.Guardrail.LlmPolicy.PolicyScopeB\004\342A\001\002\022\027\n" + + "\014policy_scope\030\004 \001(\01628.google." + + "cloud.ces.v1beta.Guardrail.LlmPolicy.PolicyScopeB\004\342A\001\002\022\027\n" + "\tfail_open\030\005 \001(\010B\004\342A\001\001\022#\n" + "\025allow_short_utterance\030\006 \001(\010B\004\342A\001\001\"r\n" + "\013PolicyScope\022\034\n" + "\030POLICY_SCOPE_UNSPECIFIED\020\000\022\016\n\n" + "USER_QUERY\020\001\022\022\n" + "\016AGENT_RESPONSE\020\002\022!\n" - + "\035USER_QUERY_AND_AGENT_RESPONSE\020\003\032\204\005\n" + + "\035USER_QUERY_AND_AGENT_RESPONSE\020\003\032\272\005\n" + "\013ModelSafety\022[\n" - + "\017safety_settings\030\001 \003(\0132<.google.cloud.ces.v1beta" - + ".Guardrail.ModelSafety.SafetySettingB\004\342A\001\002\032\300\001\n\r" + + "\017safety_settings\030\001 \003(\0132<.goog" + + "le.cloud.ces.v1beta.Guardrail.ModelSafety.SafetySettingB\004\342A\001\002\032\300\001\n\r" + "SafetySetting\022S\n" - + "\010category\030\001 \001(\0162;" - + ".google.cloud.ces.v1beta.Guardrail.ModelSafety.HarmCategoryB\004\342A\001\002\022Z\n" - + "\tthreshold\030\002 \001(\0162A.google.cloud.ces.v1beta.Guardrail" - + ".ModelSafety.HarmBlockThresholdB\004\342A\001\002\"\264\001\n" + + "\010category\030\001 \001(\0162;.google.cloud.ces.v1b" + + "eta.Guardrail.ModelSafety.HarmCategoryB\004\342A\001\002\022Z\n" + + "\tthreshold\030\002 \001(\0162A.google.cloud.c" + + "es.v1beta.Guardrail.ModelSafety.HarmBlockThresholdB\004\342A\001\002\"\352\001\n" + "\014HarmCategory\022\035\n" + "\031HARM_CATEGORY_UNSPECIFIED\020\000\022\035\n" + "\031HARM_CATEGORY_HATE_SPEECH\020\001\022#\n" + "\037HARM_CATEGORY_DANGEROUS_CONTENT\020\002\022\034\n" + "\030HARM_CATEGORY_HARASSMENT\020\003\022#\n" - + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\"\235\001\n" + + "\037HARM_CATEGORY_SEXUALLY_EXPLICIT\020\004\022\033\n" + + "\027HARM_CATEGORY_PROFANITY\020\005\022\027\n" + + "\023HARM_CATEGORY_TOXIC\020\006\"\235\001\n" + "\022HarmBlockThreshold\022$\n" + " HARM_BLOCK_THRESHOLD_UNSPECIFIED\020\000\022\027\n" + "\023BLOCK_LOW_AND_ABOVE\020\001\022\032\n" @@ -173,14 +183,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022F\n" + "\025before_model_callback\030\003" + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\022E\n" - + "\024after_model_callback\030\004 \001" - + "(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001:\204\001\352A\200\001\n" - + "\034ces.googleapis.com/Guardrail" - + "\022Iprojects/{project}/locations/{location}/apps/{app}/guardrails/{guardrail}*\n" + + "\024after_model_callback\030\004" + + " \001(\0132!.google.cloud.ces.v1beta.CallbackB\004\342A\001\001\032\260\003\n" + + "\n" + + "Supervisor\022F\n" + + "\004type\030\001 \001(\01622.google.cloud" + + ".ces.v1beta.Guardrail.Supervisor.TypeB\004\342A\001\001\022Y\n" + + "\016detection_mode\030\002 \001(\0162;.google.clo" + + "ud.ces.v1beta.Guardrail.Supervisor.DetectionModeB\004\342A\001\001\"\255\001\n" + + "\004Type\022\024\n" + + "\020TYPE_UNSPECIFIED\020\000\022\020\n" + + "\014INVALID_TEXT\020\001\022\022\n" + + "\016LANGUAGE_SHIFT\020\002\022\021\n\r" + + "SPEAKER_SHIFT\020\003\022\022\n" + + "\016AUDIO_MISMATCH\020\004\022\025\n" + + "\021MISSING_TOOL_CALL\020\005\022\n\n" + + "\006CUSTOM\020\006\022\020\n" + + "\014CHOPPY_AUDIO\020\007\022\r\n" + + "\tPROFANITY\020\010\"O\n\r" + + "DetectionMode\022\036\n" + + "\032DETECTION_MODE_UNSPECIFIED\020\000\022\020\n" + + "\014NON_BLOCKING\020\001\022\014\n" + + "\010BLOCKING\020\002:\204\001\352A\200\001\n" + + "\034ces.googleapis.com/Guardrail\022Iprojects/{" + + "project}/locations/{location}/apps/{app}/guardrails/{guardrail}*\n" + "guardrails2\tguardrailB\020\n" + "\016guardrail_typeB^\n" - + "\033com.google.cloud.ces.v1betaB\016GuardrailPr" - + "otoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\016GuardrailProtoP\001Z-cloud" + + ".google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -202,6 +232,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LlmPolicy", "ModelSafety", "CodeCallback", + "Supervisor", "Name", "DisplayName", "Description", @@ -223,6 +254,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BannedContentsInAgentResponse", "MatchType", "DisregardDiacritics", + "SensitiveWordsExemptions", }); internal_static_google_cloud_ces_v1beta_Guardrail_LlmPromptSecurity_descriptor = internal_static_google_cloud_ces_v1beta_Guardrail_descriptor.getNestedType(1); @@ -281,6 +313,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BeforeModelCallback", "AfterModelCallback", }); + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor = + internal_static_google_cloud_ces_v1beta_Guardrail_descriptor.getNestedType(5); + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_Guardrail_Supervisor_descriptor, + new java.lang.String[] { + "Type", "DetectionMode", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java index 01f956fc565f..03a8fc4b065b 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/Image.java @@ -54,6 +54,7 @@ private Image(com.google.protobuf.GeneratedMessage.Builder builder) { private Image() { mimeType_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; + altText_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -151,6 +152,59 @@ public com.google.protobuf.ByteString getData() { return data_; } + public static final int ALT_TEXT_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object altText_ = ""; + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + @java.lang.Override + public java.lang.String getAltText() { + java.lang.Object ref = altText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + altText_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAltTextBytes() { + java.lang.Object ref = altText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + altText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -171,6 +225,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!data_.isEmpty()) { output.writeBytes(2, data_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(altText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, altText_); + } getUnknownFields().writeTo(output); } @@ -186,6 +243,9 @@ public int getSerializedSize() { if (!data_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, data_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(altText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, altText_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -203,6 +263,7 @@ public boolean equals(final java.lang.Object obj) { if (!getMimeType().equals(other.getMimeType())) return false; if (!getData().equals(other.getData())) return false; + if (!getAltText().equals(other.getAltText())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -218,6 +279,8 @@ public int hashCode() { hash = (53 * hash) + getMimeType().hashCode(); hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); + hash = (37 * hash) + ALT_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getAltText().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -359,6 +422,7 @@ public Builder clear() { bitField0_ = 0; mimeType_ = ""; data_ = com.google.protobuf.ByteString.EMPTY; + altText_ = ""; return this; } @@ -400,6 +464,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.Image result) { if (((from_bitField0_ & 0x00000002) != 0)) { result.data_ = data_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.altText_ = altText_; + } } @java.lang.Override @@ -422,6 +489,11 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.Image other) { if (!other.getData().isEmpty()) { setData(other.getData()); } + if (!other.getAltText().isEmpty()) { + altText_ = other.altText_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -460,6 +532,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 34: + { + altText_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -668,6 +746,117 @@ public Builder clearData() { return this; } + private java.lang.Object altText_ = ""; + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + public java.lang.String getAltText() { + java.lang.Object ref = altText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + altText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + public com.google.protobuf.ByteString getAltTextBytes() { + java.lang.Object ref = altText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + altText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The altText to set. + * @return This builder for chaining. + */ + public Builder setAltText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + altText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAltText() { + altText_ = getDefaultInstance().getAltText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The alternative text for the image.
+     * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for altText to set. + * @return This builder for chaining. + */ + public Builder setAltTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + altText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.Image) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java index ad2912d798dd..a2497c6edece 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImageOrBuilder.java @@ -72,4 +72,30 @@ public interface ImageOrBuilder * @return The data. */ com.google.protobuf.ByteString getData(); + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The altText. + */ + java.lang.String getAltText(); + + /** + * + * + *
+   * Optional. The alternative text for the image.
+   * 
+ * + * string alt_text = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for altText. + */ + com.google.protobuf.ByteString getAltTextBytes(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java index 97d3cb3dcc44..b5a0c3b93db2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequest.java @@ -108,6 +108,21 @@ public interface ImportOptionsOrBuilder */ com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions.ConflictResolutionStrategy getConflictResolutionStrategy(); + + /** + * + * + *
+     * Optional. Flag for dry-running the import process.
+     * If set to true, the import process will only perform validations and will
+     * not make any changes to the existing app or create a new one.
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); } /** @@ -410,6 +425,27 @@ public int getConflictResolutionStrategyValue() { : result; } + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + + /** + * + * + *
+     * Optional. Flag for dry-running the import process.
+     * If set to true, the import process will only perform validations and will
+     * not make any changes to the existing app or create a new one.
+     * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -430,6 +466,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, conflictResolutionStrategy_); } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } getUnknownFields().writeTo(output); } @@ -446,6 +485,9 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, conflictResolutionStrategy_); } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -463,6 +505,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions) obj; if (conflictResolutionStrategy_ != other.conflictResolutionStrategy_) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -476,6 +519,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CONFLICT_RESOLUTION_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + conflictResolutionStrategy_; + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -620,6 +665,7 @@ public Builder clear() { super.clear(); bitField0_ = 0; conflictResolutionStrategy_ = 0; + validateOnly_ = false; return this; } @@ -661,6 +707,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000001) != 0)) { result.conflictResolutionStrategy_ = conflictResolutionStrategy_; } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } } @java.lang.Override @@ -680,6 +729,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest.ImportOpti if (other.conflictResolutionStrategy_ != 0) { setConflictResolutionStrategyValue(other.getConflictResolutionStrategyValue()); } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -712,6 +764,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -844,6 +902,68 @@ public Builder clearConflictResolutionStrategy() { return this; } + private boolean validateOnly_; + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Flag for dry-running the import process.
+       * If set to true, the import process will only perform validations and will
+       * not make any changes to the existing app or create a new one.
+       * 
+ * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ImportAppRequest.ImportOptions) } @@ -948,6 +1068,56 @@ public AppCase getAppCase() { return AppCase.forNumber(appCase_); } + private int jsonPatchCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object jsonPatch_; + + public enum JsonPatchCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + JSON_PATCH_CONTENT(9), + JSON_PATCH_GCS_URI(10), + JSONPATCH_NOT_SET(0); + private final int value; + + private JsonPatchCase(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 JsonPatchCase valueOf(int value) { + return forNumber(value); + } + + public static JsonPatchCase forNumber(int value) { + switch (value) { + case 9: + return JSON_PATCH_CONTENT; + case 10: + return JSON_PATCH_GCS_URI; + case 0: + return JSONPATCH_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public JsonPatchCase getJsonPatchCase() { + return JsonPatchCase.forNumber(jsonPatchCase_); + } + public static final int GCS_URI_FIELD_NUMBER = 4; /** @@ -1066,6 +1236,155 @@ public com.google.protobuf.ByteString getAppContent() { return com.google.protobuf.ByteString.EMPTY; } + public static final int JSON_PATCH_CONTENT_FIELD_NUMBER = 9; + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + public boolean hasJsonPatchContent() { + return jsonPatchCase_ == 9; + } + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + public java.lang.String getJsonPatchContent() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof java.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 (jsonPatchCase_ == 9) { + jsonPatch_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + public com.google.protobuf.ByteString getJsonPatchContentBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 9) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int JSON_PATCH_GCS_URI_FIELD_NUMBER = 10; + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + public boolean hasJsonPatchGcsUri() { + return jsonPatchCase_ == 10; + } + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + public java.lang.String getJsonPatchGcsUri() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof java.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 (jsonPatchCase_ == 10) { + jsonPatch_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + public com.google.protobuf.ByteString getJsonPatchGcsUriBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 10) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1368,6 +1687,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (ignoreAppLock_ != false) { output.writeBool(7, ignoreAppLock_); } + if (jsonPatchCase_ == 9) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, jsonPatch_); + } + if (jsonPatchCase_ == 10) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, jsonPatch_); + } getUnknownFields().writeTo(output); } @@ -1400,6 +1725,12 @@ public int getSerializedSize() { if (ignoreAppLock_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(7, ignoreAppLock_); } + if (jsonPatchCase_ == 9) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, jsonPatch_); + } + if (jsonPatchCase_ == 10) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(10, jsonPatch_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1435,6 +1766,17 @@ public boolean equals(final java.lang.Object obj) { case 0: default: } + if (!getJsonPatchCase().equals(other.getJsonPatchCase())) return false; + switch (jsonPatchCase_) { + case 9: + if (!getJsonPatchContent().equals(other.getJsonPatchContent())) return false; + break; + case 10: + if (!getJsonPatchGcsUri().equals(other.getJsonPatchGcsUri())) return false; + break; + case 0: + default: + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -1470,6 +1812,18 @@ public int hashCode() { case 0: default: } + switch (jsonPatchCase_) { + case 9: + hash = (37 * hash) + JSON_PATCH_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getJsonPatchContent().hashCode(); + break; + case 10: + hash = (37 * hash) + JSON_PATCH_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getJsonPatchGcsUri().hashCode(); + break; + case 0: + default: + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1631,6 +1985,8 @@ public Builder clear() { ignoreAppLock_ = false; appCase_ = 0; app_ = null; + jsonPatchCase_ = 0; + jsonPatch_ = null; return this; } @@ -1668,22 +2024,22 @@ public com.google.cloud.ces.v1beta.ImportAppRequest buildPartial() { private void buildPartial0(com.google.cloud.ces.v1beta.ImportAppRequest result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.parent_ = parent_; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.displayName_ = displayName_; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.appId_ = appId_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.importOptions_ = importOptionsBuilder_ == null ? importOptions_ : importOptionsBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.ignoreAppLock_ = ignoreAppLock_; } result.bitField0_ |= to_bitField0_; @@ -1692,6 +2048,8 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ImportAppRequest result) private void buildPartialOneofs(com.google.cloud.ces.v1beta.ImportAppRequest result) { result.appCase_ = appCase_; result.app_ = this.app_; + result.jsonPatchCase_ = jsonPatchCase_; + result.jsonPatch_ = this.jsonPatch_; } @java.lang.Override @@ -1708,17 +2066,17 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest other) { if (other == com.google.cloud.ces.v1beta.ImportAppRequest.getDefaultInstance()) return this; if (!other.getParent().isEmpty()) { parent_ = other.parent_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); } if (!other.getDisplayName().isEmpty()) { displayName_ = other.displayName_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); } if (!other.getAppId().isEmpty()) { appId_ = other.appId_; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); } if (other.hasImportOptions()) { @@ -1745,6 +2103,26 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportAppRequest other) { break; } } + switch (other.getJsonPatchCase()) { + case JSON_PATCH_CONTENT: + { + jsonPatchCase_ = 9; + jsonPatch_ = other.jsonPatch_; + onChanged(); + break; + } + case JSON_PATCH_GCS_URI: + { + jsonPatchCase_ = 10; + jsonPatch_ = other.jsonPatch_; + onChanged(); + break; + } + case JSONPATCH_NOT_SET: + { + break; + } + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1774,19 +2152,19 @@ public Builder mergeFrom( case 10: { parent_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 10 case 18: { displayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; break; } // case 18 case 26: { appId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; break; } // case 26 case 34: @@ -1806,15 +2184,29 @@ public Builder mergeFrom( { input.readMessage( internalGetImportOptionsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; break; } // case 50 case 56: { ignoreAppLock_ = input.readBool(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; break; } // case 56 + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + jsonPatchCase_ = 9; + jsonPatch_ = s; + break; + } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + jsonPatchCase_ = 10; + jsonPatch_ = s; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1846,6 +2238,20 @@ public Builder clearApp() { return this; } + private int jsonPatchCase_ = 0; + private java.lang.Object jsonPatch_; + + public JsonPatchCase getJsonPatchCase() { + return JsonPatchCase.forNumber(jsonPatchCase_); + } + + public Builder clearJsonPatch() { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + return this; + } + private int bitField0_; /** @@ -2078,6 +2484,290 @@ public Builder clearAppContent() { return this; } + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + @java.lang.Override + public boolean hasJsonPatchContent() { + return jsonPatchCase_ == 9; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + @java.lang.Override + public java.lang.String getJsonPatchContent() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (jsonPatchCase_ == 9) { + jsonPatch_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonPatchContentBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 9) { + ref = jsonPatch_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 9) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonPatchContent to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchContent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonPatchCase_ = 9; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonPatchContent() { + if (jsonPatchCase_ == 9) { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Patch content as a JSON string.
+     * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonPatchContent to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchContentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonPatchCase_ = 9; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + @java.lang.Override + public boolean hasJsonPatchGcsUri() { + return jsonPatchCase_ == 10; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + @java.lang.Override + public java.lang.String getJsonPatchGcsUri() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (jsonPatchCase_ == 10) { + jsonPatch_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getJsonPatchGcsUriBytes() { + java.lang.Object ref = ""; + if (jsonPatchCase_ == 10) { + ref = jsonPatch_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (jsonPatchCase_ == 10) { + jsonPatch_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The jsonPatchGcsUri to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + jsonPatchCase_ = 10; + jsonPatch_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearJsonPatchGcsUri() { + if (jsonPatchCase_ == 10) { + jsonPatchCase_ = 0; + jsonPatch_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. A Cloud Storage URI pointing to a JSON file containing the
+     * patches.
+     * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for jsonPatchGcsUri to set. + * @return This builder for chaining. + */ + public Builder setJsonPatchGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + jsonPatchCase_ = 10; + jsonPatch_ = value; + onChanged(); + return this; + } + private java.lang.Object parent_ = ""; /** @@ -2149,7 +2839,7 @@ public Builder setParent(java.lang.String value) { throw new NullPointerException(); } parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2169,7 +2859,7 @@ public Builder setParent(java.lang.String value) { */ public Builder clearParent() { parent_ = getDefaultInstance().getParent(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -2194,7 +2884,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); parent_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -2282,7 +2972,7 @@ public Builder setDisplayName(java.lang.String value) { throw new NullPointerException(); } displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2306,7 +2996,7 @@ public Builder setDisplayName(java.lang.String value) { */ public Builder clearDisplayName() { displayName_ = getDefaultInstance().getDisplayName(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000020); onChanged(); return this; } @@ -2335,7 +3025,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); displayName_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2423,7 +3113,7 @@ public Builder setAppId(java.lang.String value) { throw new NullPointerException(); } appId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2447,7 +3137,7 @@ public Builder setAppId(java.lang.String value) { */ public Builder clearAppId() { appId_ = getDefaultInstance().getAppId(); - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } @@ -2476,7 +3166,7 @@ public Builder setAppIdBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); appId_ = value; - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2502,7 +3192,7 @@ public Builder setAppIdBytes(com.google.protobuf.ByteString value) { * @return Whether the importOptions field is set. */ public boolean hasImportOptions() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000080) != 0); } /** @@ -2549,7 +3239,7 @@ public Builder setImportOptions( } else { importOptionsBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2572,7 +3262,7 @@ public Builder setImportOptions( } else { importOptionsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2591,7 +3281,7 @@ public Builder setImportOptions( public Builder mergeImportOptions( com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions value) { if (importOptionsBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000080) != 0) && importOptions_ != null && importOptions_ != com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions @@ -2604,7 +3294,7 @@ public Builder mergeImportOptions( importOptionsBuilder_.mergeFrom(value); } if (importOptions_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); } return this; @@ -2622,7 +3312,7 @@ public Builder mergeImportOptions( * */ public Builder clearImportOptions() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000080); importOptions_ = null; if (importOptionsBuilder_ != null) { importOptionsBuilder_.dispose(); @@ -2645,7 +3335,7 @@ public Builder clearImportOptions() { */ public com.google.cloud.ces.v1beta.ImportAppRequest.ImportOptions.Builder getImportOptionsBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000080; onChanged(); return internalGetImportOptionsFieldBuilder().getBuilder(); } @@ -2735,7 +3425,7 @@ public boolean getIgnoreAppLock() { public Builder setIgnoreAppLock(boolean value) { ignoreAppLock_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2753,7 +3443,7 @@ public Builder setIgnoreAppLock(boolean value) { * @return This builder for chaining. */ public Builder clearIgnoreAppLock() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000100); ignoreAppLock_ = false; onChanged(); return this; diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java index 86e151f1a4d7..92976814362c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportAppRequestOrBuilder.java @@ -99,6 +99,87 @@ public interface ImportAppRequestOrBuilder */ com.google.protobuf.ByteString getAppContent(); + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchContent field is set. + */ + boolean hasJsonPatchContent(); + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchContent. + */ + java.lang.String getJsonPatchContent(); + + /** + * + * + *
+   * Optional. Patch content as a JSON string.
+   * 
+ * + * string json_patch_content = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchContent. + */ + com.google.protobuf.ByteString getJsonPatchContentBytes(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the jsonPatchGcsUri field is set. + */ + boolean hasJsonPatchGcsUri(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The jsonPatchGcsUri. + */ + java.lang.String getJsonPatchGcsUri(); + + /** + * + * + *
+   * Optional. A Cloud Storage URI pointing to a JSON file containing the
+   * patches.
+   * 
+ * + * string json_patch_gcs_uri = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for jsonPatchGcsUri. + */ + com.google.protobuf.ByteString getJsonPatchGcsUriBytes(); + /** * * @@ -263,4 +344,6 @@ public interface ImportAppRequestOrBuilder boolean getIgnoreAppLock(); com.google.cloud.ces.v1beta.ImportAppRequest.AppCase getAppCase(); + + com.google.cloud.ces.v1beta.ImportAppRequest.JsonPatchCase getJsonPatchCase(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java index ea2b7e7399da..a44722cb8c81 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentials.java @@ -133,10 +133,10 @@ public com.google.protobuf.ByteString getAuthCodeBytes() { * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -157,10 +157,10 @@ public java.lang.String getConversationProfileId() { * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ @@ -628,10 +628,10 @@ public Builder setAuthCodeBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -651,10 +651,10 @@ public java.lang.String getConversationProfileId() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ @@ -674,10 +674,10 @@ public com.google.protobuf.ByteString getConversationProfileIdBytes() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The conversationProfileId to set. * @return This builder for chaining. @@ -696,10 +696,10 @@ public Builder setConversationProfileId(java.lang.String value) { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -714,10 +714,10 @@ public Builder clearConversationProfileId() { * * *
-     * Required. The Conversation Profile ID to use for the deployment.
+     * Optional. The Conversation Profile ID to use for the deployment.
      * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for conversationProfileId to set. * @return This builder for chaining. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java index b8aedf3fe1c7..e0b69df26bcb 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/InstagramCredentialsOrBuilder.java @@ -56,10 +56,10 @@ public interface InstagramCredentialsOrBuilder * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The conversationProfileId. */ @@ -69,10 +69,10 @@ public interface InstagramCredentialsOrBuilder * * *
-   * Required. The Conversation Profile ID to use for the deployment.
+   * Optional. The Conversation Profile ID to use for the deployment.
    * 
* - * string conversation_profile_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * string conversation_profile_id = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for conversationProfileId. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java index 92158508a959..5ccd03a9889d 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettings.java @@ -208,8 +208,8 @@ public com.google.protobuf.ByteString getSupportedLanguageCodesBytes(int index) * * *
-   * Optional. Enables multilingual support. If true, agents in the app will use
-   * pre-built instructions to improve handling of multilingual input.
+   * Optional. Enables multilingual support. If `true`, agents in the app will
+   * use pre-built instructions to improve handling of multilingual input.
    * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -249,7 +249,7 @@ public boolean getEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Override @@ -289,7 +289,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Override @@ -1020,8 +1020,8 @@ public Builder addSupportedLanguageCodesBytes(com.google.protobuf.ByteString val * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1037,8 +1037,8 @@ public boolean getEnableMultilingualSupport() { * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1058,8 +1058,8 @@ public Builder setEnableMultilingualSupport(boolean value) { * * *
-     * Optional. Enables multilingual support. If true, agents in the app will use
-     * pre-built instructions to improve handling of multilingual input.
+     * Optional. Enables multilingual support. If `true`, agents in the app will
+     * use pre-built instructions to improve handling of multilingual input.
      * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -1099,7 +1099,7 @@ public Builder clearEnableMultilingualSupport() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Deprecated @@ -1139,7 +1139,7 @@ public java.lang.String getFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Deprecated @@ -1179,7 +1179,7 @@ public com.google.protobuf.ByteString getFallbackActionBytes() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @param value The fallbackAction to set. * @return This builder for chaining. */ @@ -1218,7 +1218,7 @@ public Builder setFallbackAction(java.lang.String value) { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1253,7 +1253,7 @@ public Builder clearFallbackAction() { * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @param value The bytes for fallbackAction to set. * @return This builder for chaining. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java index 1a62a483823d..4cc94326dec8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LanguageSettingsOrBuilder.java @@ -118,8 +118,8 @@ public interface LanguageSettingsOrBuilder * * *
-   * Optional. Enables multilingual support. If true, agents in the app will use
-   * pre-built instructions to improve handling of multilingual input.
+   * Optional. Enables multilingual support. If `true`, agents in the app will
+   * use pre-built instructions to improve handling of multilingual input.
    * 
* * bool enable_multilingual_support = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -151,7 +151,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The fallbackAction. */ @java.lang.Deprecated @@ -180,7 +180,7 @@ public interface LanguageSettingsOrBuilder * * * @deprecated google.cloud.ces.v1beta.LanguageSettings.fallback_action is deprecated. See - * google/cloud/ces/v1beta/app.proto;l=255 + * google/cloud/ces/v1beta/app.proto;l=280 * @return The bytes for fallbackAction. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java new file mode 100644 index 000000000000..d20d1080de2e --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequest.java @@ -0,0 +1,1141 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsRequest} + */ +@com.google.protobuf.Generated +public final class ListAssistantSessionsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + ListAssistantSessionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantSessionsRequest"); + } + + // Use ListAssistantSessionsRequest.newBuilder() to construct. + private ListAssistantSessionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantSessionsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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 app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * 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; + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.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
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.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 FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.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. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.cloud.ces.v1beta.ListAssistantSessionsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest other = + (com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) 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.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest 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.ces.v1beta.ListAssistantSessionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + 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.ces.v1beta.ListAssistantSessionsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ListAssistantSessionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + com.google.cloud.ces.v1beta.ListAssistantSessionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest build() { + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsRequest buildPartial() { + com.google.cloud.ces.v1beta.ListAssistantSessionsRequest result = + new com.google.cloud.ces.v1beta.ListAssistantSessionsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ListAssistantSessionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ListAssistantSessionsRequest other) { + if (other == com.google.cloud.ces.v1beta.ListAssistantSessionsRequest.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 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 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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 app to list assistant sessions from.
+     * Format:
+     * `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * 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. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Requested page size. Server may return fewer items than
+     * requested. If unspecified, server will pick an appropriate default.
+     * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.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
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.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
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The
+     * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+     * value returned from a previous list
+     * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+     * call.
+     * 
+ * + * string page_token = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.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. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.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. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Filter to be applied when listing the assistant sessions.
+     * See https://google.aip.dev/160 for more details.
+     * 
+ * + * string filter = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + private static final com.google.cloud.ces.v1beta.ListAssistantSessionsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ListAssistantSessionsRequest(); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantSessionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ListAssistantSessionsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java new file mode 100644 index 000000000000..12a426c3f521 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsRequestOrBuilder.java @@ -0,0 +1,138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantSessionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ListAssistantSessionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The app to list assistant sessions from.
+   * Format:
+   * `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Optional. Requested page size. Server may return fewer items than
+   * requested. If unspecified, server will pick an appropriate default.
+   * 
+ * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
+   * Optional. The
+   * [next_page_token][google.cloud.ces.v1beta.ListAssistantSessionsResponse.next_page_token]
+   * value returned from a previous list
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions]
+   * call.
+   * 
+ * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
+   * Optional. Filter to be applied when listing the assistant sessions.
+   * See https://google.aip.dev/160 for more details.
+   * 
+ * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java new file mode 100644 index 000000000000..6c701e99ea97 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponse.java @@ -0,0 +1,1148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAssistantSessionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + ListAssistantSessionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAssistantSessionsResponse"); + } + + // Use ListAssistantSessionsResponse.newBuilder() to construct. + private ListAssistantSessionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAssistantSessionsResponse() { + assistantSessions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.Builder.class); + } + + public static final int ASSISTANT_SESSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List assistantSessions_; + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public java.util.List getAssistantSessionsList() { + return assistantSessions_; + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public java.util.List + getAssistantSessionsOrBuilderList() { + return assistantSessions_; + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public int getAssistantSessionsCount() { + return assistantSessions_.size(); + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index) { + return assistantSessions_.get(index); + } + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder( + int index) { + return assistantSessions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 < assistantSessions_.size(); i++) { + output.writeMessage(1, assistantSessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.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 < assistantSessions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, assistantSessions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.ces.v1beta.ListAssistantSessionsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse other = + (com.google.cloud.ces.v1beta.ListAssistantSessionsResponse) obj; + + if (!getAssistantSessionsList().equals(other.getAssistantSessionsList())) 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 (getAssistantSessionsCount() > 0) { + hash = (37 * hash) + ASSISTANT_SESSIONS_FIELD_NUMBER; + hash = (53 * hash) + getAssistantSessionsList().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.ces.v1beta.ListAssistantSessionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse 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.ces.v1beta.ListAssistantSessionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + 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.ces.v1beta.ListAssistantSessionsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.ListAssistantSessionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [AssistantService.ListAssistantSessions][google.cloud.ces.v1beta.AssistantService.ListAssistantSessions].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ListAssistantSessionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + com.google.cloud.ces.v1beta.ListAssistantSessionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.class, + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (assistantSessionsBuilder_ == null) { + assistantSessions_ = java.util.Collections.emptyList(); + } else { + assistantSessions_ = null; + assistantSessionsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AssistantServiceProto + .internal_static_google_cloud_ces_v1beta_ListAssistantSessionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse build() { + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ListAssistantSessionsResponse buildPartial() { + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result = + new com.google.cloud.ces.v1beta.ListAssistantSessionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result) { + if (assistantSessionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + assistantSessions_ = java.util.Collections.unmodifiableList(assistantSessions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.assistantSessions_ = assistantSessions_; + } else { + result.assistantSessions_ = assistantSessionsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ListAssistantSessionsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ListAssistantSessionsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ListAssistantSessionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ListAssistantSessionsResponse other) { + if (other == com.google.cloud.ces.v1beta.ListAssistantSessionsResponse.getDefaultInstance()) + return this; + if (assistantSessionsBuilder_ == null) { + if (!other.assistantSessions_.isEmpty()) { + if (assistantSessions_.isEmpty()) { + assistantSessions_ = other.assistantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAssistantSessionsIsMutable(); + assistantSessions_.addAll(other.assistantSessions_); + } + onChanged(); + } + } else { + if (!other.assistantSessions_.isEmpty()) { + if (assistantSessionsBuilder_.isEmpty()) { + assistantSessionsBuilder_.dispose(); + assistantSessionsBuilder_ = null; + assistantSessions_ = other.assistantSessions_; + bitField0_ = (bitField0_ & ~0x00000001); + assistantSessionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAssistantSessionsFieldBuilder() + : null; + } else { + assistantSessionsBuilder_.addAllMessages(other.assistantSessions_); + } + } + } + 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.ces.v1beta.AssistantSession m = + input.readMessage( + com.google.cloud.ces.v1beta.AssistantSession.parser(), extensionRegistry); + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(m); + } else { + assistantSessionsBuilder_.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 assistantSessions_ = + java.util.Collections.emptyList(); + + private void ensureAssistantSessionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + assistantSessions_ = + new java.util.ArrayList( + assistantSessions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder> + assistantSessionsBuilder_; + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List getAssistantSessionsList() { + if (assistantSessionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(assistantSessions_); + } else { + return assistantSessionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public int getAssistantSessionsCount() { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.size(); + } else { + return assistantSessionsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index) { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.get(index); + } else { + return assistantSessionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder setAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.set(index, value); + onChanged(); + } else { + assistantSessionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder setAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.set(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions(com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(value); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession value) { + if (assistantSessionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(index, value); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAssistantSessions( + int index, com.google.cloud.ces.v1beta.AssistantSession.Builder builderForValue) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.add(index, builderForValue.build()); + onChanged(); + } else { + assistantSessionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder addAllAssistantSessions( + java.lang.Iterable values) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, assistantSessions_); + onChanged(); + } else { + assistantSessionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder clearAssistantSessions() { + if (assistantSessionsBuilder_ == null) { + assistantSessions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + assistantSessionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public Builder removeAssistantSessions(int index) { + if (assistantSessionsBuilder_ == null) { + ensureAssistantSessionsIsMutable(); + assistantSessions_.remove(index); + onChanged(); + } else { + assistantSessionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder getAssistantSessionsBuilder( + int index) { + return internalGetAssistantSessionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder( + int index) { + if (assistantSessionsBuilder_ == null) { + return assistantSessions_.get(index); + } else { + return assistantSessionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List + getAssistantSessionsOrBuilderList() { + if (assistantSessionsBuilder_ != null) { + return assistantSessionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(assistantSessions_); + } + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder addAssistantSessionsBuilder() { + return internalGetAssistantSessionsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public com.google.cloud.ces.v1beta.AssistantSession.Builder addAssistantSessionsBuilder( + int index) { + return internalGetAssistantSessionsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.AssistantSession.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of assistant sessions.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + public java.util.List + getAssistantSessionsBuilderList() { + return internalGetAssistantSessionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder> + internalGetAssistantSessionsFieldBuilder() { + if (assistantSessionsBuilder_ == null) { + assistantSessionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.AssistantSession, + com.google.cloud.ces.v1beta.AssistantSession.Builder, + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder>( + assistantSessions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + assistantSessions_ = null; + } + return assistantSessionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. A token that can be sent as
+     * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+     * to retrieve the next page. Absence of this field indicates there are no
+     * subsequent pages.
+     * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + private static final com.google.cloud.ces.v1beta.ListAssistantSessionsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ListAssistantSessionsResponse(); + } + + public static com.google.cloud.ces.v1beta.ListAssistantSessionsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAssistantSessionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.ListAssistantSessionsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java new file mode 100644 index 000000000000..609b0014d9ca --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListAssistantSessionsResponseOrBuilder.java @@ -0,0 +1,116 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/assistant_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ListAssistantSessionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ListAssistantSessionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + java.util.List getAssistantSessionsList(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + com.google.cloud.ces.v1beta.AssistantSession getAssistantSessions(int index); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + int getAssistantSessionsCount(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + java.util.List + getAssistantSessionsOrBuilderList(); + + /** + * + * + *
+   * The list of assistant sessions.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.AssistantSession assistant_sessions = 1; + */ + com.google.cloud.ces.v1beta.AssistantSessionOrBuilder getAssistantSessionsOrBuilder(int index); + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
+   * Optional. A token that can be sent as
+   * [ListAssistantSessionsRequest.page_token][google.cloud.ces.v1beta.ListAssistantSessionsRequest.page_token]
+   * to retrieve the next page. Absence of this field indicates there are no
+   * subsequent pages.
+   * 
+ * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java index 940c252d9a41..6ec538ae02c3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettings.java @@ -647,6 +647,36 @@ public com.google.cloud.ces.v1beta.MetricAnalysisSettings getMetricAnalysisSetti : metricAnalysisSettings_; } + public static final int REQUIRED_RECORDING_CONSENT_FIELD_NUMBER = 10; + private boolean requiredRecordingConsent_ = false; + + /** + * + * + *
+   * Optional. Whether the app has to say what may be recorded before anything
+   * is kept.
+   *
+   * When true, a session starts with recording off and stays off until the
+   * client sends
+   * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+   * which then decides every turn from that point on. This covers audio
+   * recording as well as conversation history, BigQuery export and Cloud
+   * Logging.
+   *
+   * When `false`, the default, the settings above decide on their own and the
+   * client does not have to send anything.
+   * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + @java.lang.Override + public boolean getRequiredRecordingConsent() { + return requiredRecordingConsent_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -688,6 +718,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(9, getUnredactedBigqueryExportSettings()); } + if (requiredRecordingConsent_ != false) { + output.writeBool(10, requiredRecordingConsent_); + } getUnknownFields().writeTo(output); } @@ -736,6 +769,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, getUnredactedBigqueryExportSettings()); } + if (requiredRecordingConsent_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(10, requiredRecordingConsent_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -795,6 +831,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMetricAnalysisSettings()) { if (!getMetricAnalysisSettings().equals(other.getMetricAnalysisSettings())) return false; } + if (getRequiredRecordingConsent() != other.getRequiredRecordingConsent()) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -842,6 +879,8 @@ public int hashCode() { hash = (37 * hash) + METRIC_ANALYSIS_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getMetricAnalysisSettings().hashCode(); } + hash = (37 * hash) + REQUIRED_RECORDING_CONSENT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequiredRecordingConsent()); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1044,6 +1083,7 @@ public Builder clear() { metricAnalysisSettingsBuilder_.dispose(); metricAnalysisSettingsBuilder_ = null; } + requiredRecordingConsent_ = false; return this; } @@ -1142,6 +1182,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.LoggingSettings result) { : metricAnalysisSettingsBuilder_.build(); to_bitField0_ |= 0x00000100; } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.requiredRecordingConsent_ = requiredRecordingConsent_; + } result.bitField0_ |= to_bitField0_; } @@ -1184,6 +1227,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.LoggingSettings other) { if (other.hasMetricAnalysisSettings()) { mergeMetricAnalysisSettings(other.getMetricAnalysisSettings()); } + if (other.getRequiredRecordingConsent() != false) { + setRequiredRecordingConsent(other.getRequiredRecordingConsent()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1279,6 +1325,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000010; break; } // case 74 + case 80: + { + requiredRecordingConsent_ = input.readBool(); + bitField0_ |= 0x00000200; + break; + } // case 80 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3373,6 +3425,95 @@ public Builder clearMetricAnalysisSettings() { return metricAnalysisSettingsBuilder_; } + private boolean requiredRecordingConsent_; + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + @java.lang.Override + public boolean getRequiredRecordingConsent() { + return requiredRecordingConsent_; + } + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The requiredRecordingConsent to set. + * @return This builder for chaining. + */ + public Builder setRequiredRecordingConsent(boolean value) { + + requiredRecordingConsent_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether the app has to say what may be recorded before anything
+     * is kept.
+     *
+     * When true, a session starts with recording off and stays off until the
+     * client sends
+     * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+     * which then decides every turn from that point on. This covers audio
+     * recording as well as conversation history, BigQuery export and Cloud
+     * Logging.
+     *
+     * When `false`, the default, the settings above decide on their own and the
+     * client does not have to send anything.
+     * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearRequiredRecordingConsent() { + bitField0_ = (bitField0_ & ~0x00000200); + requiredRecordingConsent_ = false; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.LoggingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java index 1fc06c0a05c3..fbc3e46b1177 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/LoggingSettingsOrBuilder.java @@ -455,4 +455,28 @@ public interface LoggingSettingsOrBuilder * */ com.google.cloud.ces.v1beta.MetricAnalysisSettingsOrBuilder getMetricAnalysisSettingsOrBuilder(); + + /** + * + * + *
+   * Optional. Whether the app has to say what may be recorded before anything
+   * is kept.
+   *
+   * When true, a session starts with recording off and stays off until the
+   * client sends
+   * [SessionInput.recording_control][google.cloud.ces.v1main.SessionInput.recording_control],
+   * which then decides every turn from that point on. This covers audio
+   * recording as well as conversation history, BigQuery export and Cloud
+   * Logging.
+   *
+   * When `false`, the default, the settings above decide on their own and the
+   * client does not have to send anything.
+   * 
+ * + * bool required_recording_consent = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The requiredRecordingConsent. + */ + boolean getRequiredRecordingConsent(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java index 500731a7dbfc..4a0e1f43a354 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettings.java @@ -53,6 +53,7 @@ private ModelSettings(com.google.protobuf.GeneratedMessage.Builder builder) { private ModelSettings() { model_ = ""; + thinkingLevel_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -70,6 +71,221 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.ModelSettings.Builder.class); } + /** + * + * + *
+   * Thinking level configuration for the model.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ModelSettings.ThinkingLevel} + */ + public enum ThinkingLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Thinking level is unspecified.
+     * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + THINKING_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+     * Default thinking level.
+     * 
+ * + * DEFAULT = 1; + */ + DEFAULT(1), + /** + * + * + *
+     * Low thinking level.
+     * 
+ * + * LOW = 2; + */ + LOW(2), + /** + * + * + *
+     * Medium thinking level.
+     * 
+ * + * MEDIUM = 3; + */ + MEDIUM(3), + /** + * + * + *
+     * High thinking level.
+     * 
+ * + * HIGH = 4; + */ + HIGH(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ThinkingLevel"); + } + + /** + * + * + *
+     * Thinking level is unspecified.
+     * 
+ * + * THINKING_LEVEL_UNSPECIFIED = 0; + */ + public static final int THINKING_LEVEL_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Default thinking level.
+     * 
+ * + * DEFAULT = 1; + */ + public static final int DEFAULT_VALUE = 1; + + /** + * + * + *
+     * Low thinking level.
+     * 
+ * + * LOW = 2; + */ + public static final int LOW_VALUE = 2; + + /** + * + * + *
+     * Medium thinking level.
+     * 
+ * + * MEDIUM = 3; + */ + public static final int MEDIUM_VALUE = 3; + + /** + * + * + *
+     * High thinking level.
+     * 
+ * + * HIGH = 4; + */ + public static final int HIGH_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 ThinkingLevel 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 ThinkingLevel forNumber(int value) { + switch (value) { + case 0: + return THINKING_LEVEL_UNSPECIFIED; + case 1: + return DEFAULT; + case 2: + return LOW; + case 3: + return MEDIUM; + case 4: + return 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 ThinkingLevel findValueByNumber(int number) { + return ThinkingLevel.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ModelSettings.getDescriptor().getEnumTypes().get(0); + } + + private static final ThinkingLevel[] VALUES = values(); + + public static ThinkingLevel 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 ThinkingLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ModelSettings.ThinkingLevel) + } + private int bitField0_; public static final int MODEL_FIELD_NUMBER = 1; @@ -167,6 +383,49 @@ public double getTemperature() { return temperature_; } + public static final int THINKING_LEVEL_FIELD_NUMBER = 5; + private int thinkingLevel_ = 0; + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel() { + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel result = + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.forNumber(thinkingLevel_); + return result == null + ? com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -187,6 +446,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeDouble(2, temperature_); } + if (thinkingLevel_ + != com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.THINKING_LEVEL_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, thinkingLevel_); + } getUnknownFields().writeTo(output); } @@ -202,6 +466,11 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, temperature_); } + if (thinkingLevel_ + != com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.THINKING_LEVEL_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, thinkingLevel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -224,6 +493,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getTemperature()) != java.lang.Double.doubleToLongBits(other.getTemperature())) return false; } + if (thinkingLevel_ != other.thinkingLevel_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -244,6 +514,8 @@ public int hashCode() { + com.google.protobuf.Internal.hashLong( java.lang.Double.doubleToLongBits(getTemperature())); } + hash = (37 * hash) + THINKING_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + thinkingLevel_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -386,6 +658,7 @@ public Builder clear() { bitField0_ = 0; model_ = ""; temperature_ = 0D; + thinkingLevel_ = 0; return this; } @@ -430,6 +703,9 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ModelSettings result) { result.temperature_ = temperature_; to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.thinkingLevel_ = thinkingLevel_; + } result.bitField0_ |= to_bitField0_; } @@ -453,6 +729,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ModelSettings other) { if (other.hasTemperature()) { setTemperature(other.getTemperature()); } + if (other.thinkingLevel_ != 0) { + setThinkingLevelValue(other.getThinkingLevelValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -491,6 +770,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 17 + case 40: + { + thinkingLevel_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -710,6 +995,113 @@ public Builder clearTemperature() { return this; } + private int thinkingLevel_ = 0; + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + @java.lang.Override + public int getThinkingLevelValue() { + return thinkingLevel_; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevelValue(int value) { + thinkingLevel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel() { + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel result = + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.forNumber(thinkingLevel_); + return result == null + ? com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The thinkingLevel to set. + * @return This builder for chaining. + */ + public Builder setThinkingLevel(com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + thinkingLevel_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The thinking level of the model.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearThinkingLevel() { + bitField0_ = (bitField0_ & ~0x00000004); + thinkingLevel_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ModelSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java index d1dbd56a5848..791673d35399 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ModelSettingsOrBuilder.java @@ -85,4 +85,34 @@ public interface ModelSettingsOrBuilder * @return The temperature. */ double getTemperature(); + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for thinkingLevel. + */ + int getThinkingLevelValue(); + + /** + * + * + *
+   * Optional. The thinking level of the model.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ModelSettings.ThinkingLevel thinking_level = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The thinkingLevel. + */ + com.google.cloud.ces.v1beta.ModelSettings.ThinkingLevel getThinkingLevel(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java new file mode 100644 index 000000000000..55cf687fe3fd --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEvent.java @@ -0,0 +1,1938 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Event sent by the client or background worker to resume an assistant session
+ * after an asynchronous Long-Running Operation (LRO) completes.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OperationCompletedEvent} + */ +@com.google.protobuf.Generated +public final class OperationCompletedEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OperationCompletedEvent) + OperationCompletedEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OperationCompletedEvent"); + } + + // Use OperationCompletedEvent.newBuilder() to construct. + private OperationCompletedEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OperationCompletedEvent() { + operationName_ = ""; + targetResourceName_ = ""; + operationType_ = ""; + status_ = ""; + deduplicationToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OperationCompletedEvent.class, + com.google.cloud.ces.v1beta.OperationCompletedEvent.Builder.class); + } + + private int bitField0_; + public static final int OPERATION_NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationName_ = ""; + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + @java.lang.Override + public java.lang.String getOperationName() { + java.lang.Object ref = operationName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationName_ = s; + return s; + } + } + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationNameBytes() { + java.lang.Object ref = operationName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TARGET_RESOURCE_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object targetResourceName_ = ""; + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + @java.lang.Override + public java.lang.String getTargetResourceName() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResourceName_ = s; + return s; + } + } + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTargetResourceNameBytes() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OPERATION_TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object operationType_ = ""; + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + @java.lang.Override + public java.lang.String getOperationType() { + java.lang.Object ref = operationType_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationType_ = s; + return s; + } + } + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOperationTypeBytes() { + java.lang.Object ref = operationType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int STATUS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object status_ = ""; + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The status. + */ + @java.lang.Override + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } + } + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + @java.lang.Override + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DEDUPLICATION_TOKEN_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object deduplicationToken_ = ""; + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + @java.lang.Override + public java.lang.String getDeduplicationToken() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deduplicationToken_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDeduplicationTokenBytes() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deduplicationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ERROR_FIELD_NUMBER = 6; + private com.google.rpc.Status error_; + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + @java.lang.Override + public boolean hasError() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return The error. + */ + @java.lang.Override + public com.google.rpc.Status getError() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + */ + @java.lang.Override + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + + public static final int METADATA_FIELD_NUMBER = 7; + private com.google.protobuf.Struct metadata_; + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getMetadata() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(operationName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, operationName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetResourceName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, targetResourceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, operationType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deduplicationToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, deduplicationToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, operationName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(targetResourceName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, targetResourceName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(operationType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, operationType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(status_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, status_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(deduplicationToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, deduplicationToken_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getError()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMetadata()); + } + 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.ces.v1beta.OperationCompletedEvent)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.OperationCompletedEvent other = + (com.google.cloud.ces.v1beta.OperationCompletedEvent) obj; + + if (!getOperationName().equals(other.getOperationName())) return false; + if (!getTargetResourceName().equals(other.getTargetResourceName())) return false; + if (!getOperationType().equals(other.getOperationType())) return false; + if (!getStatus().equals(other.getStatus())) return false; + if (!getDeduplicationToken().equals(other.getDeduplicationToken())) return false; + if (hasError() != other.hasError()) return false; + if (hasError()) { + if (!getError().equals(other.getError())) return false; + } + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) 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) + OPERATION_NAME_FIELD_NUMBER; + hash = (53 * hash) + getOperationName().hashCode(); + hash = (37 * hash) + TARGET_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getTargetResourceName().hashCode(); + hash = (37 * hash) + OPERATION_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getOperationType().hashCode(); + hash = (37 * hash) + STATUS_FIELD_NUMBER; + hash = (53 * hash) + getStatus().hashCode(); + hash = (37 * hash) + DEDUPLICATION_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getDeduplicationToken().hashCode(); + if (hasError()) { + hash = (37 * hash) + ERROR_FIELD_NUMBER; + hash = (53 * hash) + getError().hashCode(); + } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent 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.ces.v1beta.OperationCompletedEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + 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.ces.v1beta.OperationCompletedEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.OperationCompletedEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Event sent by the client or background worker to resume an assistant session
+   * after an asynchronous Long-Running Operation (LRO) completes.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OperationCompletedEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.OperationCompletedEvent) + com.google.cloud.ces.v1beta.OperationCompletedEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OperationCompletedEvent.class, + com.google.cloud.ces.v1beta.OperationCompletedEvent.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.OperationCompletedEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetErrorFieldBuilder(); + internalGetMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + operationName_ = ""; + targetResourceName_ = ""; + operationType_ = ""; + status_ = ""; + deduplicationToken_ = ""; + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OperationCompletedEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.OperationCompletedEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent build() { + com.google.cloud.ces.v1beta.OperationCompletedEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OperationCompletedEvent buildPartial() { + com.google.cloud.ces.v1beta.OperationCompletedEvent result = + new com.google.cloud.ces.v1beta.OperationCompletedEvent(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.OperationCompletedEvent result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.operationName_ = operationName_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.targetResourceName_ = targetResourceName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.operationType_ = operationType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.status_ = status_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.deduplicationToken_ = deduplicationToken_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.OperationCompletedEvent) { + return mergeFrom((com.google.cloud.ces.v1beta.OperationCompletedEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.OperationCompletedEvent other) { + if (other == com.google.cloud.ces.v1beta.OperationCompletedEvent.getDefaultInstance()) + return this; + if (!other.getOperationName().isEmpty()) { + operationName_ = other.operationName_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getTargetResourceName().isEmpty()) { + targetResourceName_ = other.targetResourceName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOperationType().isEmpty()) { + operationType_ = other.operationType_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getStatus().isEmpty()) { + status_ = other.status_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDeduplicationToken().isEmpty()) { + deduplicationToken_ = other.deduplicationToken_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (other.hasError()) { + mergeError(other.getError()); + } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } + 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: + { + operationName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + targetResourceName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + operationType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + status_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + deduplicationToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetMetadataFieldBuilder().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 operationName_ = ""; + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + public java.lang.String getOperationName() { + java.lang.Object ref = operationName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + public com.google.protobuf.ByteString getOperationNameBytes() { + java.lang.Object ref = operationName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @param value The operationName to set. + * @return This builder for chaining. + */ + public Builder setOperationName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @return This builder for chaining. + */ + public Builder clearOperationName() { + operationName_ = getDefaultInstance().getOperationName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation resource name (e.g. `operations/{op}`).
+     * 
+ * + * string operation_name = 1; + * + * @param value The bytes for operationName to set. + * @return This builder for chaining. + */ + public Builder setOperationNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationName_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object targetResourceName_ = ""; + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + public java.lang.String getTargetResourceName() { + java.lang.Object ref = targetResourceName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + targetResourceName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + public com.google.protobuf.ByteString getTargetResourceNameBytes() { + java.lang.Object ref = targetResourceName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + targetResourceName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @param value The targetResourceName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearTargetResourceName() { + targetResourceName_ = getDefaultInstance().getTargetResourceName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * The primary resource targeted or produced by the operation
+     * (e.g. evaluation run ID, app ID, dataset ID).
+     * 
+ * + * string target_resource_name = 2; + * + * @param value The bytes for targetResourceName to set. + * @return This builder for chaining. + */ + public Builder setTargetResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetResourceName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object operationType_ = ""; + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + public java.lang.String getOperationType() { + java.lang.Object ref = operationType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + operationType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + public com.google.protobuf.ByteString getOperationTypeBytes() { + java.lang.Object ref = operationType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + operationType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @param value The operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + operationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearOperationType() { + operationType_ = getDefaultInstance().getOperationType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+     * "export_app").
+     * 
+ * + * string operation_type = 3; + * + * @param value The bytes for operationType to set. + * @return This builder for chaining. + */ + public Builder setOperationTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + operationType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object status_ = ""; + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return The status. + */ + public java.lang.String getStatus() { + java.lang.Object ref = status_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + status_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + public com.google.protobuf.ByteString getStatusBytes() { + java.lang.Object ref = status_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + status_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @param value The status to set. + * @return This builder for chaining. + */ + public Builder setStatus(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @return This builder for chaining. + */ + public Builder clearStatus() { + status_ = getDefaultInstance().getStatus(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
+     * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+     * 
+ * + * string status = 4; + * + * @param value The bytes for status to set. + * @return This builder for chaining. + */ + public Builder setStatusBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + status_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object deduplicationToken_ = ""; + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + public java.lang.String getDeduplicationToken() { + java.lang.Object ref = deduplicationToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + deduplicationToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + public com.google.protobuf.ByteString getDeduplicationTokenBytes() { + java.lang.Object ref = deduplicationToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + deduplicationToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @param value The deduplicationToken to set. + * @return This builder for chaining. + */ + public Builder setDeduplicationToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + deduplicationToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @return This builder for chaining. + */ + public Builder clearDeduplicationToken() { + deduplicationToken_ = getDefaultInstance().getDeduplicationToken(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+     * execution from concurrent browser tabs.
+     * 
+ * + * string deduplication_token = 5; + * + * @param value The bytes for deduplicationToken to set. + * @return This builder for chaining. + */ + public Builder setDeduplicationTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + deduplicationToken_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.rpc.Status error_; + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + errorBuilder_; + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + public boolean hasError() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + * + * @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(); + } + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder setError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + error_ = value; + } else { + errorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder setError(com.google.rpc.Status.Builder builderForValue) { + if (errorBuilder_ == null) { + error_ = builderForValue.build(); + } else { + errorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder mergeError(com.google.rpc.Status value) { + if (errorBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && error_ != null + && error_ != com.google.rpc.Status.getDefaultInstance()) { + getErrorBuilder().mergeFrom(value); + } else { + error_ = value; + } + } else { + errorBuilder_.mergeFrom(value); + } + if (error_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public Builder clearError() { + bitField0_ = (bitField0_ & ~0x00000020); + error_ = null; + if (errorBuilder_ != null) { + errorBuilder_.dispose(); + errorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public com.google.rpc.Status.Builder getErrorBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetErrorFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + public com.google.rpc.StatusOrBuilder getErrorOrBuilder() { + if (errorBuilder_ != null) { + return errorBuilder_.getMessageOrBuilder(); + } else { + return error_ == null ? com.google.rpc.Status.getDefaultInstance() : error_; + } + } + + /** + * + * + *
+     * Optional canonical error status if the operation failed.
+     * 
+ * + * .google.rpc.Status error = 6; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, com.google.rpc.Status.Builder, com.google.rpc.StatusOrBuilder> + internalGetErrorFieldBuilder() { + if (errorBuilder_ == null) { + errorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.rpc.Status, + com.google.rpc.Status.Builder, + com.google.rpc.StatusOrBuilder>(getError(), getParentForChildren(), isClean()); + error_ = null; + } + return errorBuilder_; + } + + private com.google.protobuf.Struct metadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + metadataBuilder_; + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + public com.google.protobuf.Struct getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder setMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder mergeMetadata(com.google.protobuf.Struct value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && metadata_ != null + && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000040); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public com.google.protobuf.Struct.Builder getMetadataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; + } + } + + /** + * + * + *
+     * Optional structured result metadata (e.g. pass_rate, total_examples,
+     * export_uri).
+     * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.OperationCompletedEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.OperationCompletedEvent) + private static final com.google.cloud.ces.v1beta.OperationCompletedEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.OperationCompletedEvent(); + } + + public static com.google.cloud.ces.v1beta.OperationCompletedEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OperationCompletedEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ces.v1beta.OperationCompletedEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java new file mode 100644 index 000000000000..58f9fd634d49 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OperationCompletedEventOrBuilder.java @@ -0,0 +1,241 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface OperationCompletedEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.OperationCompletedEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The operationName. + */ + java.lang.String getOperationName(); + + /** + * + * + *
+   * The operation resource name (e.g. `operations/{op}`).
+   * 
+ * + * string operation_name = 1; + * + * @return The bytes for operationName. + */ + com.google.protobuf.ByteString getOperationNameBytes(); + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The targetResourceName. + */ + java.lang.String getTargetResourceName(); + + /** + * + * + *
+   * The primary resource targeted or produced by the operation
+   * (e.g. evaluation run ID, app ID, dataset ID).
+   * 
+ * + * string target_resource_name = 2; + * + * @return The bytes for targetResourceName. + */ + com.google.protobuf.ByteString getTargetResourceNameBytes(); + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The operationType. + */ + java.lang.String getOperationType(); + + /** + * + * + *
+   * The operation type or tool name (e.g. "run_evaluation", "copy_app",
+   * "export_app").
+   * 
+ * + * string operation_type = 3; + * + * @return The bytes for operationType. + */ + com.google.protobuf.ByteString getOperationTypeBytes(); + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The status. + */ + java.lang.String getStatus(); + + /** + * + * + *
+   * Status of the operation run (e.g. "SUCCEEDED", "FAILED", "CANCELLED").
+   * 
+ * + * string status = 4; + * + * @return The bytes for status. + */ + com.google.protobuf.ByteString getStatusBytes(); + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The deduplicationToken. + */ + java.lang.String getDeduplicationToken(); + + /** + * + * + *
+   * Optional deduplication token (e.g. UUID) to prevent duplicate turn
+   * execution from concurrent browser tabs.
+   * 
+ * + * string deduplication_token = 5; + * + * @return The bytes for deduplicationToken. + */ + com.google.protobuf.ByteString getDeduplicationTokenBytes(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return Whether the error field is set. + */ + boolean hasError(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + * + * @return The error. + */ + com.google.rpc.Status getError(); + + /** + * + * + *
+   * Optional canonical error status if the operation failed.
+   * 
+ * + * .google.rpc.Status error = 6; + */ + com.google.rpc.StatusOrBuilder getErrorOrBuilder(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + * + * @return The metadata. + */ + com.google.protobuf.Struct getMetadata(); + + /** + * + * + *
+   * Optional structured result metadata (e.g. pass_rate, total_examples,
+   * export_uri).
+   * 
+ * + * .google.protobuf.Struct metadata = 7; + */ + com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java new file mode 100644 index 000000000000..bbbd990c1be4 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/OptionQuestionsChunk.java @@ -0,0 +1,3217 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Structured clarification options the assistant asks the user to choose
+ * among, transduced server-side out of the model's turn (the option block is
+ * stripped from the streamed and persisted text). The console renders a
+ * keyboard-navigable option list docked above the composer.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk} + */ +@com.google.protobuf.Generated +public final class OptionQuestionsChunk extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OptionQuestionsChunk) + OptionQuestionsChunkOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "OptionQuestionsChunk"); + } + + // Use OptionQuestionsChunk.newBuilder() to construct. + private OptionQuestionsChunk(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OptionQuestionsChunk() { + questions_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Builder.class); + } + + public interface OptionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The details. + */ + java.lang.String getDetails(); + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + com.google.protobuf.ByteString getDetailsBytes(); + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + java.lang.String getSubmitText(); + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + com.google.protobuf.ByteString getSubmitTextBytes(); + } + + /** + * + * + *
+   * A single selectable option.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk.Option} + */ + public static final class Option extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + OptionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Option"); + } + + // Use Option.newBuilder() to construct. + private Option(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Option() { + title_ = ""; + details_ = ""; + submitText_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.Builder.class); + } + + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @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; + } + } + + /** + * + * + *
+     * Short plain-text option title (no markdown, no numbering).
+     * 
+ * + * string title = 1; + * + * @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 DETAILS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object details_ = ""; + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The details. + */ + @java.lang.Override + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional trade-off details shown as secondary text.
+     * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUBMIT_TEXT_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object submitText_ = ""; + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + @java.lang.Override + public java.lang.String getSubmitText() { + java.lang.Object ref = submitText_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + submitText_ = s; + return s; + } + } + + /** + * + * + *
+     * Optional message text to send when the option is chosen; defaults to
+     * `title` when empty.
+     * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSubmitTextBytes() { + java.lang.Object ref = submitText_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + submitText_ = 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.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(details_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, details_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitText_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, submitText_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(details_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, details_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(submitText_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, submitText_); + } + 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.ces.v1beta.OptionQuestionsChunk.Option)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option other = + (com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (!getDetails().equals(other.getDetails())) return false; + if (!getSubmitText().equals(other.getSubmitText())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + hash = (37 * hash) + SUBMIT_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getSubmitText().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option 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.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + 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.ces.v1beta.OptionQuestionsChunk.Option parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ces.v1beta.OptionQuestionsChunk.Option prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * A single selectable option.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.OptionQuestionsChunk.Option} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + com.google.cloud.ces.v1beta.OptionQuestionsChunk.OptionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.class, + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + details_ = ""; + submitText_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_OptionQuestionsChunk_Option_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option build() { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option buildPartial() { + com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result = + new com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.details_ = details_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.submitText_ = submitText_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) { + return mergeFrom((com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option other) { + if (other == com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDetails().isEmpty()) { + details_ = other.details_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSubmitText().isEmpty()) { + submitText_ = other.submitText_; + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + details_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + submitText_ = 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 title_ = ""; + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @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; + } + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @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; + } + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+       * Short plain-text option title (no markdown, no numbering).
+       * 
+ * + * string title = 1; + * + * @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_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object details_ = ""; + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return The details. + */ + public java.lang.String getDetails() { + java.lang.Object ref = details_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + details_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return The bytes for details. + */ + public com.google.protobuf.ByteString getDetailsBytes() { + java.lang.Object ref = details_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + details_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @param value The details to set. + * @return This builder for chaining. + */ + public Builder setDetails(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @return This builder for chaining. + */ + public Builder clearDetails() { + details_ = getDefaultInstance().getDetails(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional trade-off details shown as secondary text.
+       * 
+ * + * string details = 2; + * + * @param value The bytes for details to set. + * @return This builder for chaining. + */ + public Builder setDetailsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + details_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object submitText_ = ""; + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return The submitText. + */ + public java.lang.String getSubmitText() { + java.lang.Object ref = submitText_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + submitText_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return The bytes for submitText. + */ + public com.google.protobuf.ByteString getSubmitTextBytes() { + java.lang.Object ref = submitText_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + submitText_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @param value The submitText to set. + * @return This builder for chaining. + */ + public Builder setSubmitText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + submitText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @return This builder for chaining. + */ + public Builder clearSubmitText() { + submitText_ = getDefaultInstance().getSubmitText(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional message text to send when the option is chosen; defaults to
+       * `title` when empty.
+       * 
+ * + * string submit_text = 3; + * + * @param value The bytes for submitText to set. + * @return This builder for chaining. + */ + public Builder setSubmitTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + submitText_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.OptionQuestionsChunk.Option) + private static final com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option(); + } + + public static com.google.cloud.ces.v1beta.OptionQuestionsChunk.Option getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.chat.v1.ReplaceMessageCardsResponse> + replaceMessageCards(com.google.chat.v1.ReplaceMessageCardsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getReplaceMessageCardsMethod(), getCallOptions()), request); + } } private static final int METHODID_CREATE_MESSAGE = 0; @@ -10195,6 +10358,7 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -10491,6 +10655,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_REPLACE_MESSAGE_CARDS: + serviceImpl.replaceMessageCards( + (com.google.chat.v1.ReplaceMessageCardsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -10828,6 +10998,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.chat.v1.MoveSectionItemRequest, com.google.chat.v1.MoveSectionItemResponse>( service, METHODID_MOVE_SECTION_ITEM))) + .addMethod( + getReplaceMessageCardsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.ReplaceMessageCardsRequest, + com.google.chat.v1.ReplaceMessageCardsResponse>( + service, METHODID_REPLACE_MESSAGE_CARDS))) .build(); } @@ -10931,6 +11108,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getPositionSectionMethod()) .addMethod(getListSectionItemsMethod()) .addMethod(getMoveSectionItemMethod()) + .addMethod(getReplaceMessageCardsMethod()) .build(); } } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java index fa9569493621..c630d438746d 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithId.java @@ -189,6 +189,55 @@ public com.google.apps.card.v1.CardOrBuilder getCardOrBuilder() { return card_ == null ? com.google.apps.card.v1.Card.getDefaultInstance() : card_; } + public static final int OWNER_USER_FIELD_NUMBER = 3; + private com.google.chat.v1.User ownerUser_; + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the ownerUser field is set. + */ + @java.lang.Override + public boolean hasOwnerUser() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ownerUser. + */ + @java.lang.Override + public com.google.chat.v1.User getOwnerUser() { + return ownerUser_ == null ? com.google.chat.v1.User.getDefaultInstance() : ownerUser_; + } + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + @java.lang.Override + public com.google.chat.v1.UserOrBuilder getOwnerUserOrBuilder() { + return ownerUser_ == null ? com.google.chat.v1.User.getDefaultInstance() : ownerUser_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -209,6 +258,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCard()); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOwnerUser()); + } getUnknownFields().writeTo(output); } @@ -224,6 +276,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCard()); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOwnerUser()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -244,6 +299,10 @@ public boolean equals(final java.lang.Object obj) { if (hasCard()) { if (!getCard().equals(other.getCard())) return false; } + if (hasOwnerUser() != other.hasOwnerUser()) return false; + if (hasOwnerUser()) { + if (!getOwnerUser().equals(other.getOwnerUser())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -261,6 +320,10 @@ public int hashCode() { hash = (37 * hash) + CARD_FIELD_NUMBER; hash = (53 * hash) + getCard().hashCode(); } + if (hasOwnerUser()) { + hash = (37 * hash) + OWNER_USER_FIELD_NUMBER; + hash = (53 * hash) + getOwnerUser().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -416,6 +479,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetCardFieldBuilder(); + internalGetOwnerUserFieldBuilder(); } } @@ -429,6 +493,11 @@ public Builder clear() { cardBuilder_.dispose(); cardBuilder_ = null; } + ownerUser_ = null; + if (ownerUserBuilder_ != null) { + ownerUserBuilder_.dispose(); + ownerUserBuilder_ = null; + } return this; } @@ -471,6 +540,10 @@ private void buildPartial0(com.google.chat.v1.CardWithId result) { result.card_ = cardBuilder_ == null ? card_ : cardBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.ownerUser_ = ownerUserBuilder_ == null ? ownerUser_ : ownerUserBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -494,6 +567,9 @@ public Builder mergeFrom(com.google.chat.v1.CardWithId other) { if (other.hasCard()) { mergeCard(other.getCard()); } + if (other.hasOwnerUser()) { + mergeOwnerUser(other.getOwnerUser()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -532,6 +608,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + input.readMessage( + internalGetOwnerUserFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -857,6 +940,205 @@ public com.google.apps.card.v1.CardOrBuilder getCardOrBuilder() { return cardBuilder_; } + private com.google.chat.v1.User ownerUser_; + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.User, + com.google.chat.v1.User.Builder, + com.google.chat.v1.UserOrBuilder> + ownerUserBuilder_; + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the ownerUser field is set. + */ + public boolean hasOwnerUser() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The ownerUser. + */ + public com.google.chat.v1.User getOwnerUser() { + if (ownerUserBuilder_ == null) { + return ownerUser_ == null ? com.google.chat.v1.User.getDefaultInstance() : ownerUser_; + } else { + return ownerUserBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOwnerUser(com.google.chat.v1.User value) { + if (ownerUserBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ownerUser_ = value; + } else { + ownerUserBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setOwnerUser(com.google.chat.v1.User.Builder builderForValue) { + if (ownerUserBuilder_ == null) { + ownerUser_ = builderForValue.build(); + } else { + ownerUserBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeOwnerUser(com.google.chat.v1.User value) { + if (ownerUserBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && ownerUser_ != null + && ownerUser_ != com.google.chat.v1.User.getDefaultInstance()) { + getOwnerUserBuilder().mergeFrom(value); + } else { + ownerUser_ = value; + } + } else { + ownerUserBuilder_.mergeFrom(value); + } + if (ownerUser_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearOwnerUser() { + bitField0_ = (bitField0_ & ~0x00000004); + ownerUser_ = null; + if (ownerUserBuilder_ != null) { + ownerUserBuilder_.dispose(); + ownerUserBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.User.Builder getOwnerUserBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOwnerUserFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.chat.v1.UserOrBuilder getOwnerUserOrBuilder() { + if (ownerUserBuilder_ != null) { + return ownerUserBuilder_.getMessageOrBuilder(); + } else { + return ownerUser_ == null ? com.google.chat.v1.User.getDefaultInstance() : ownerUser_; + } + } + + /** + * + * + *
+     * Output only. The app that owns the card.
+     * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.User, + com.google.chat.v1.User.Builder, + com.google.chat.v1.UserOrBuilder> + internalGetOwnerUserFieldBuilder() { + if (ownerUserBuilder_ == null) { + ownerUserBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.chat.v1.User, + com.google.chat.v1.User.Builder, + com.google.chat.v1.UserOrBuilder>( + getOwnerUser(), getParentForChildren(), isClean()); + ownerUser_ = null; + } + return ownerUserBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.chat.v1.CardWithId) } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithIdOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithIdOrBuilder.java index 4b6d5d682ca7..704d032675c9 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithIdOrBuilder.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/CardWithIdOrBuilder.java @@ -90,4 +90,41 @@ public interface CardWithIdOrBuilder * .google.apps.card.v1.Card card = 2; */ com.google.apps.card.v1.CardOrBuilder getCardOrBuilder(); + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the ownerUser field is set. + */ + boolean hasOwnerUser(); + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The ownerUser. + */ + com.google.chat.v1.User getOwnerUser(); + + /** + * + * + *
+   * Output only. The app that owns the card.
+   * 
+ * + * .google.chat.v1.User owner_user = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + */ + com.google.chat.v1.UserOrBuilder getOwnerUserOrBuilder(); } 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 58e6b9c6a477..abc160526a5e 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 @@ -62,7 +62,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oto\032%google/chat/v1/space_read_state.pro" + "to\032 google/chat/v1/space_setup.proto\032&go" + "ogle/chat/v1/thread_read_state.proto\032\033go" - + "ogle/protobuf/empty.proto2\333N\n\013ChatServic" + + "ogle/protobuf/empty.proto2\204P\n\013ChatServic" + "e\022\233\001\n\rCreateMessage\022$.google.chat.v1.Cre" + "ateMessageRequest\032\027.google.chat.v1.Messa" + "ge\"K\332A\031parent,message,message_id\202\323\344\223\002)\"\036" @@ -257,69 +257,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "chat.v1.MoveSectionItemRequest\032\'.google." + "chat.v1.MoveSectionItemResponse\"K\332A\023name" + ",target_section\202\323\344\223\002/\"*/v1/{name=users/*" - + "/sections/*/items/*}:move:\001*\032\340\021\312A\023chat.g" - + "oogleapis.com\322A\306\021https://www.googleapis." - + "com/auth/chat.admin.delete,https://www.g" - + "oogleapis.com/auth/chat.admin.membership" - + "s,https://www.googleapis.com/auth/chat.a" - + "dmin.memberships.readonly,https://www.go" - + "ogleapis.com/auth/chat.admin.spaces,http" - + "s://www.googleapis.com/auth/chat.admin.s" - + "paces.readonly,https://www.googleapis.co" - + "m/auth/chat.app.all.memberships.readonly" - + ",https://www.googleapis.com/auth/chat.ap" - + "p.all.messages.readonly,https://www.goog" - + "leapis.com/auth/chat.app.all.spaces.read" - + "only,https://www.googleapis.com/auth/cha" - + "t.app.delete,https://www.googleapis.com/" - + "auth/chat.app.memberships,https://www.go" - + "ogleapis.com/auth/chat.app.memberships.r" - + "eadonly,https://www.googleapis.com/auth/" - + "chat.app.messages.readonly,https://www.g" - + "oogleapis.com/auth/chat.app.spaces,https" - + "://www.googleapis.com/auth/chat.app.spac" - + "es.create,https://www.googleapis.com/aut" - + "h/chat.app.spaces.readonly,https://www.g" - + "oogleapis.com/auth/chat.bot,https://www." - + "googleapis.com/auth/chat.customemojis,ht" - + "tps://www.googleapis.com/auth/chat.custo" - + "memojis.readonly,https://www.googleapis." - + "com/auth/chat.delete,https://www.googlea" - + "pis.com/auth/chat.import,https://www.goo" - + "gleapis.com/auth/chat.memberships,https:" + + "/sections/*/items/*}:move:\001*\022\246\001\n\023Replace" + + "MessageCards\022*.google.chat.v1.ReplaceMes" + + "sageCardsRequest\032+.google.chat.v1.Replac" + + "eMessageCardsResponse\"6\202\323\344\223\0020\"+/v1/{name" + + "=spaces/*/messages/*}:replaceCards:\001*\032\340\021" + + "\312A\023chat.googleapis.com\322A\306\021https://www.go" + + "ogleapis.com/auth/chat.admin.delete,http" + + "s://www.googleapis.com/auth/chat.admin.m" + + "emberships,https://www.googleapis.com/au" + + "th/chat.admin.memberships.readonly,https" + + "://www.googleapis.com/auth/chat.admin.sp" + + "aces,https://www.googleapis.com/auth/cha" + + "t.admin.spaces.readonly,https://www.goog" + + "leapis.com/auth/chat.app.all.memberships" + + ".readonly,https://www.googleapis.com/aut" + + "h/chat.app.all.messages.readonly,https:/" + + "/www.googleapis.com/auth/chat.app.all.sp" + + "aces.readonly,https://www.googleapis.com" + + "/auth/chat.app.delete,https://www.google" + + "apis.com/auth/chat.app.memberships,https" + + "://www.googleapis.com/auth/chat.app.memb" + + "erships.readonly,https://www.googleapis." + + "com/auth/chat.app.messages.readonly,http" + + "s://www.googleapis.com/auth/chat.app.spa" + + "ces,https://www.googleapis.com/auth/chat" + + ".app.spaces.create,https://www.googleapi" + + "s.com/auth/chat.app.spaces.readonly,http" + + "s://www.googleapis.com/auth/chat.bot,htt" + + "ps://www.googleapis.com/auth/chat.custom" + + "emojis,https://www.googleapis.com/auth/c" + + "hat.customemojis.readonly,https://www.go" + + "ogleapis.com/auth/chat.delete,https://ww" + + "w.googleapis.com/auth/chat.import,https:" + "//www.googleapis.com/auth/chat.membershi" - + "ps.app,https://www.googleapis.com/auth/c" - + "hat.memberships.readonly,https://www.goo" - + "gleapis.com/auth/chat.messages,https://w" - + "ww.googleapis.com/auth/chat.messages.cre" - + "ate,https://www.googleapis.com/auth/chat" - + ".messages.reactions,https://www.googleap" - + "is.com/auth/chat.messages.reactions.crea" - + "te,https://www.googleapis.com/auth/chat." - + "messages.reactions.readonly,https://www." - + "googleapis.com/auth/chat.messages.readon" - + "ly,https://www.googleapis.com/auth/chat." - + "spaces,https://www.googleapis.com/auth/c" - + "hat.spaces.create,https://www.googleapis" - + ".com/auth/chat.spaces.pins,https://www.g" - + "oogleapis.com/auth/chat.spaces.pins.read" - + "only,https://www.googleapis.com/auth/cha" - + "t.spaces.readonly,https://www.googleapis" - + ".com/auth/chat.users.availability,https:" - + "//www.googleapis.com/auth/chat.users.ava" - + "ilability.readonly,https://www.googleapi" - + "s.com/auth/chat.users.readstate,https://" - + "www.googleapis.com/auth/chat.users.reads" - + "tate.readonly,https://www.googleapis.com" - + "/auth/chat.users.sections,https://www.go" - + "ogleapis.com/auth/chat.users.sections.re" - + "adonly,https://www.googleapis.com/auth/c" - + "hat.users.spacesettingsB\251\001\n\022com.google.c" - + "hat.v1B\020ChatServiceProtoP\001Z,cloud.google" - + ".com/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAP" - + "IProto\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Ap" - + "ps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006pro" - + "to3" + + "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.pins,http" + + "s://www.googleapis.com/auth/chat.spaces." + + "pins.readonly,https://www.googleapis.com" + + "/auth/chat.spaces.readonly,https://www.g" + + "oogleapis.com/auth/chat.users.availabili" + + "ty,https://www.googleapis.com/auth/chat." + + "users.availability.readonly,https://www." + + "googleapis.com/auth/chat.users.readstate" + + ",https://www.googleapis.com/auth/chat.us" + + "ers.readstate.readonly,https://www.googl" + + "eapis.com/auth/chat.users.sections,https" + + "://www.googleapis.com/auth/chat.users.se" + + "ctions.readonly,https://www.googleapis.c" + + "om/auth/chat.users.spacesettingsB\251\001\n\022com" + + ".google.chat.v1B\020ChatServiceProtoP\001Z,clo" + + "ud.google.com/go/chat/apiv1/chatpb;chatp" + + "b\242\002\013DYNAPIProto\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( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java index 8e8aad818027..134001a158e7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/MessageProto.java @@ -120,6 +120,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_CardWithId_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_CardWithId_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_ReplaceMessageCardsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_ReplaceMessageCardsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_SearchMessagesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -320,10 +328,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\034.google.chat.v1.ActionStatusB\004\342A\001\004B\010\n" + "\006action\"7\n" + "\006Dialog\022-\n" - + "\004body\030\001 \001(\0132\031.google.apps.card.v1.CardB\004\342A\001\004\"F\n\n" + + "\004body\030\001 \001(\0132\031.google.apps.card.v1.CardB\004\342A\001\004\"v\n\n" + "CardWithId\022\017\n" + "\007card_id\030\001 \001(\t\022\'\n" - + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\"\260\003\n" + + "\004card\030\002 \001(\0132\031.google.apps.card.v1.Card\022.\n\n" + + "owner_user\030\003 \001(\0132\024.google.chat.v1.UserB\004\342A\001\003\"\204\001\n" + + "\032ReplaceMessageCardsRequest\0222\n" + + "\004name\030\001 \001(\tB$\342A\001\002\372A\035\n" + + "\033chat.googleapis.com/Message\0222\n" + + "\010cards_v2\030\002" + + " \003(\0132\032.google.chat.v1.CardWithIdB\004\342A\001\001\"\035\n" + + "\033ReplaceMessageCardsResponse\"\260\003\n" + "\025SearchMessagesRequest\0222\n" + "\006parent\030\001 \001(\tB\"\342A\001\002\372A\033\n" + "\031chat.googleapis.com/Space\022\024\n" @@ -331,10 +346,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\003 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\0229\n\r" - + "markup_syntax\030\006 " - + "\001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001\022L\n" - + "\004view\030\007" - + " \001(\01628.google.chat.v1.SearchMessagesRequest.SearchMessagesViewB\004\342A\001\001\"y\n" + + "markup_syntax\030\006" + + " \001(\0162\034.google.chat.v1.MarkupSyntaxB\004\342A\001\001\022L\n" + + "\004view\030\007 \001(\01628.google.cha" + + "t.v1.SearchMessagesRequest.SearchMessagesViewB\004\342A\001\001\"y\n" + "\022SearchMessagesView\022$\n" + " SEARCH_MESSAGES_VIEW_UNSPECIFIED\020\000\022\036\n" + "\032SEARCH_MESSAGES_VIEW_BASIC\020\001\022\035\n" @@ -345,12 +360,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023SearchMessageResult\022(\n" + "\007message\030\001 \001(\0132\027.google.chat.v1.Message\022\021\n" + "\004read\030\003 \001(\010H\000\210\001\001\022P\n" - + "\022space_mute_setting\030\004" - + " \001(\01624.google.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + + "\022space_mute_setting\030\004 \001(\01624.googl" + + "e.chat.v1.SpaceNotificationSetting.MuteSettingB\007\n" + "\005_readB\245\001\n" - + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb;" - + "chatpb\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat." - + "V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "\022com.google.chat.v1B\014MessageProtoP\001Z,cloud.google.com/go/chat" + + "/apiv1/chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Goo" + + "gle.Apps.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002" + + "\026Google::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -555,10 +571,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CardWithId_descriptor, new java.lang.String[] { - "CardId", "Card", + "CardId", "Card", "OwnerUser", }); - internal_static_google_chat_v1_SearchMessagesRequest_descriptor = + internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor = getDescriptor().getMessageType(18); + internal_static_google_chat_v1_ReplaceMessageCardsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor, + new java.lang.String[] { + "Name", "CardsV2", + }); + internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor = + getDescriptor().getMessageType(19); + internal_static_google_chat_v1_ReplaceMessageCardsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor, + new java.lang.String[] {}); + internal_static_google_chat_v1_SearchMessagesRequest_descriptor = + getDescriptor().getMessageType(20); internal_static_google_chat_v1_SearchMessagesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchMessagesRequest_descriptor, @@ -566,7 +596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "PageSize", "PageToken", "OrderBy", "MarkupSyntax", "View", }); internal_static_google_chat_v1_SearchMessagesResponse_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_chat_v1_SearchMessagesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchMessagesResponse_descriptor, @@ -574,7 +604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Results", "NextPageToken", }); internal_static_google_chat_v1_SearchMessageResult_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_chat_v1_SearchMessageResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchMessageResult_descriptor, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequest.java new file mode 100644 index 000000000000..112072b279ea --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequest.java @@ -0,0 +1,1271 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Request message for ReplaceMessageCards API method.
+ * 
+ * + * Protobuf type {@code google.chat.v1.ReplaceMessageCardsRequest} + */ +@com.google.protobuf.Generated +public final class ReplaceMessageCardsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReplaceMessageCardsRequest) + ReplaceMessageCardsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ReplaceMessageCardsRequest"); + } + + // Use ReplaceMessageCardsRequest.newBuilder() to construct. + private ReplaceMessageCardsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ReplaceMessageCardsRequest() { + name_ = ""; + cardsV2_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReplaceMessageCardsRequest.class, + com.google.chat.v1.ReplaceMessageCardsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The resource name of the message.
+   *
+   * Format: `spaces/{space}/messages/{message}`
+   * 
+ * + * + * 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 message.
+   *
+   * Format: `spaces/{space}/messages/{message}`
+   * 
+ * + * + * 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 CARDS_V2_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List cardsV2_; + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getCardsV2List() { + return cardsV2_; + } + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getCardsV2OrBuilderList() { + return cardsV2_; + } + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getCardsV2Count() { + return cardsV2_.size(); + } + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CardWithId getCardsV2(int index) { + return cardsV2_.get(index); + } + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { + return cardsV2_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < cardsV2_.size(); i++) { + output.writeMessage(2, cardsV2_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < cardsV2_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, cardsV2_.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.ReplaceMessageCardsRequest)) { + return super.equals(obj); + } + com.google.chat.v1.ReplaceMessageCardsRequest other = + (com.google.chat.v1.ReplaceMessageCardsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getCardsV2List().equals(other.getCardsV2List())) 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 (getCardsV2Count() > 0) { + hash = (37 * hash) + CARDS_V2_FIELD_NUMBER; + hash = (53 * hash) + getCardsV2List().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest 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.ReplaceMessageCardsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom( + 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.ReplaceMessageCardsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ReplaceMessageCardsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for ReplaceMessageCards API method.
+   * 
+ * + * Protobuf type {@code google.chat.v1.ReplaceMessageCardsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReplaceMessageCardsRequest) + com.google.chat.v1.ReplaceMessageCardsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReplaceMessageCardsRequest.class, + com.google.chat.v1.ReplaceMessageCardsRequest.Builder.class); + } + + // Construct using com.google.chat.v1.ReplaceMessageCardsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (cardsV2Builder_ == null) { + cardsV2_ = java.util.Collections.emptyList(); + } else { + cardsV2_ = null; + cardsV2Builder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsRequest getDefaultInstanceForType() { + return com.google.chat.v1.ReplaceMessageCardsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsRequest build() { + com.google.chat.v1.ReplaceMessageCardsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsRequest buildPartial() { + com.google.chat.v1.ReplaceMessageCardsRequest result = + new com.google.chat.v1.ReplaceMessageCardsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.ReplaceMessageCardsRequest result) { + if (cardsV2Builder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + cardsV2_ = java.util.Collections.unmodifiableList(cardsV2_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.cardsV2_ = cardsV2_; + } else { + result.cardsV2_ = cardsV2Builder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.ReplaceMessageCardsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReplaceMessageCardsRequest) { + return mergeFrom((com.google.chat.v1.ReplaceMessageCardsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReplaceMessageCardsRequest other) { + if (other == com.google.chat.v1.ReplaceMessageCardsRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (cardsV2Builder_ == null) { + if (!other.cardsV2_.isEmpty()) { + if (cardsV2_.isEmpty()) { + cardsV2_ = other.cardsV2_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureCardsV2IsMutable(); + cardsV2_.addAll(other.cardsV2_); + } + onChanged(); + } + } else { + if (!other.cardsV2_.isEmpty()) { + if (cardsV2Builder_.isEmpty()) { + cardsV2Builder_.dispose(); + cardsV2Builder_ = null; + cardsV2_ = other.cardsV2_; + bitField0_ = (bitField0_ & ~0x00000002); + cardsV2Builder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetCardsV2FieldBuilder() + : null; + } else { + cardsV2Builder_.addAllMessages(other.cardsV2_); + } + } + } + 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: + { + com.google.chat.v1.CardWithId m = + input.readMessage(com.google.chat.v1.CardWithId.parser(), extensionRegistry); + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + cardsV2_.add(m); + } else { + cardsV2Builder_.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.lang.Object name_ = ""; + + /** + * + * + *
+     * Required. The resource name of the message.
+     *
+     * Format: `spaces/{space}/messages/{message}`
+     * 
+ * + * + * 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 message.
+     *
+     * Format: `spaces/{space}/messages/{message}`
+     * 
+ * + * + * 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 message.
+     *
+     * Format: `spaces/{space}/messages/{message}`
+     * 
+ * + * + * 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 message.
+     *
+     * Format: `spaces/{space}/messages/{message}`
+     * 
+ * + * + * 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 message.
+     *
+     * Format: `spaces/{space}/messages/{message}`
+     * 
+ * + * + * 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.util.List cardsV2_ = + java.util.Collections.emptyList(); + + private void ensureCardsV2IsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + cardsV2_ = new java.util.ArrayList(cardsV2_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CardWithId, + com.google.chat.v1.CardWithId.Builder, + com.google.chat.v1.CardWithIdOrBuilder> + cardsV2Builder_; + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCardsV2List() { + if (cardsV2Builder_ == null) { + return java.util.Collections.unmodifiableList(cardsV2_); + } else { + return cardsV2Builder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getCardsV2Count() { + if (cardsV2Builder_ == null) { + return cardsV2_.size(); + } else { + return cardsV2Builder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CardWithId getCardsV2(int index) { + if (cardsV2Builder_ == null) { + return cardsV2_.get(index); + } else { + return cardsV2Builder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCardsV2(int index, com.google.chat.v1.CardWithId value) { + if (cardsV2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCardsV2IsMutable(); + cardsV2_.set(index, value); + onChanged(); + } else { + cardsV2Builder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCardsV2(int index, com.google.chat.v1.CardWithId.Builder builderForValue) { + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + cardsV2_.set(index, builderForValue.build()); + onChanged(); + } else { + cardsV2Builder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCardsV2(com.google.chat.v1.CardWithId value) { + if (cardsV2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCardsV2IsMutable(); + cardsV2_.add(value); + onChanged(); + } else { + cardsV2Builder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCardsV2(int index, com.google.chat.v1.CardWithId value) { + if (cardsV2Builder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCardsV2IsMutable(); + cardsV2_.add(index, value); + onChanged(); + } else { + cardsV2Builder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCardsV2(com.google.chat.v1.CardWithId.Builder builderForValue) { + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + cardsV2_.add(builderForValue.build()); + onChanged(); + } else { + cardsV2Builder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addCardsV2(int index, com.google.chat.v1.CardWithId.Builder builderForValue) { + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + cardsV2_.add(index, builderForValue.build()); + onChanged(); + } else { + cardsV2Builder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllCardsV2( + java.lang.Iterable values) { + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, cardsV2_); + onChanged(); + } else { + cardsV2Builder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCardsV2() { + if (cardsV2Builder_ == null) { + cardsV2_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + cardsV2Builder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCardsV2(int index) { + if (cardsV2Builder_ == null) { + ensureCardsV2IsMutable(); + cardsV2_.remove(index); + onChanged(); + } else { + cardsV2Builder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CardWithId.Builder getCardsV2Builder(int index) { + return internalGetCardsV2FieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index) { + if (cardsV2Builder_ == null) { + return cardsV2_.get(index); + } else { + return cardsV2Builder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getCardsV2OrBuilderList() { + if (cardsV2Builder_ != null) { + return cardsV2Builder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(cardsV2_); + } + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CardWithId.Builder addCardsV2Builder() { + return internalGetCardsV2FieldBuilder() + .addBuilder(com.google.chat.v1.CardWithId.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.chat.v1.CardWithId.Builder addCardsV2Builder(int index) { + return internalGetCardsV2FieldBuilder() + .addBuilder(index, com.google.chat.v1.CardWithId.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. An array of
+     * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+     * to be included in the message. These cards will replace the existing cards
+     * of the message. If empty, the original cards included in the message will
+     * be cleared.
+     * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getCardsV2BuilderList() { + return internalGetCardsV2FieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CardWithId, + com.google.chat.v1.CardWithId.Builder, + com.google.chat.v1.CardWithIdOrBuilder> + internalGetCardsV2FieldBuilder() { + if (cardsV2Builder_ == null) { + cardsV2Builder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.CardWithId, + com.google.chat.v1.CardWithId.Builder, + com.google.chat.v1.CardWithIdOrBuilder>( + cardsV2_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + cardsV2_ = null; + } + return cardsV2Builder_; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReplaceMessageCardsRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReplaceMessageCardsRequest) + private static final com.google.chat.v1.ReplaceMessageCardsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReplaceMessageCardsRequest(); + } + + public static com.google.chat.v1.ReplaceMessageCardsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplaceMessageCardsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ReplaceMessageCardsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequestOrBuilder.java new file mode 100644 index 000000000000..fbdd3de96229 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsRequestOrBuilder.java @@ -0,0 +1,147 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ReplaceMessageCardsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReplaceMessageCardsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the message.
+   *
+   * Format: `spaces/{space}/messages/{message}`
+   * 
+ * + * + * 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 message.
+   *
+   * Format: `spaces/{space}/messages/{message}`
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCardsV2List(); + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CardWithId getCardsV2(int index); + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCardsV2Count(); + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getCardsV2OrBuilderList(); + + /** + * + * + *
+   * Optional. An array of
+   * [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)
+   * to be included in the message. These cards will replace the existing cards
+   * of the message. If empty, the original cards included in the message will
+   * be cleared.
+   * 
+ * + * + * repeated .google.chat.v1.CardWithId cards_v2 = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.chat.v1.CardWithIdOrBuilder getCardsV2OrBuilder(int index); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponse.java new file mode 100644 index 000000000000..f7b97836ba8f --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponse.java @@ -0,0 +1,395 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +/** + * + * + *
+ * Response message for ReplaceMessageCards API.
+ * 
+ * + * Protobuf type {@code google.chat.v1.ReplaceMessageCardsResponse} + */ +@com.google.protobuf.Generated +public final class ReplaceMessageCardsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.ReplaceMessageCardsResponse) + ReplaceMessageCardsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ReplaceMessageCardsResponse"); + } + + // Use ReplaceMessageCardsResponse.newBuilder() to construct. + private ReplaceMessageCardsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ReplaceMessageCardsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReplaceMessageCardsResponse.class, + com.google.chat.v1.ReplaceMessageCardsResponse.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.chat.v1.ReplaceMessageCardsResponse)) { + return super.equals(obj); + } + com.google.chat.v1.ReplaceMessageCardsResponse other = + (com.google.chat.v1.ReplaceMessageCardsResponse) 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.chat.v1.ReplaceMessageCardsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse 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.ReplaceMessageCardsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom( + 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.ReplaceMessageCardsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.ReplaceMessageCardsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for ReplaceMessageCards API.
+   * 
+ * + * Protobuf type {@code google.chat.v1.ReplaceMessageCardsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.ReplaceMessageCardsResponse) + com.google.chat.v1.ReplaceMessageCardsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.ReplaceMessageCardsResponse.class, + com.google.chat.v1.ReplaceMessageCardsResponse.Builder.class); + } + + // Construct using com.google.chat.v1.ReplaceMessageCardsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.chat.v1.MessageProto + .internal_static_google_chat_v1_ReplaceMessageCardsResponse_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsResponse getDefaultInstanceForType() { + return com.google.chat.v1.ReplaceMessageCardsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsResponse build() { + com.google.chat.v1.ReplaceMessageCardsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.ReplaceMessageCardsResponse buildPartial() { + com.google.chat.v1.ReplaceMessageCardsResponse result = + new com.google.chat.v1.ReplaceMessageCardsResponse(this); + onBuilt(); + return result; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.ReplaceMessageCardsResponse) { + return mergeFrom((com.google.chat.v1.ReplaceMessageCardsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.ReplaceMessageCardsResponse other) { + if (other == com.google.chat.v1.ReplaceMessageCardsResponse.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; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.ReplaceMessageCardsResponse) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.ReplaceMessageCardsResponse) + private static final com.google.chat.v1.ReplaceMessageCardsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.ReplaceMessageCardsResponse(); + } + + public static com.google.chat.v1.ReplaceMessageCardsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ReplaceMessageCardsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.ReplaceMessageCardsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponseOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponseOrBuilder.java new file mode 100644 index 000000000000..34b36707f57e --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ReplaceMessageCardsResponseOrBuilder.java @@ -0,0 +1,27 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/message.proto +// Protobuf Java Version: 4.33.6 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface ReplaceMessageCardsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.ReplaceMessageCardsResponse) + com.google.protobuf.MessageOrBuilder {} 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 68859a407be9..b4bdf14da99c 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 @@ -1569,4 +1569,25 @@ service ChatService { }; option (google.api.method_signature) = "name,target_section"; } + + // Replaces the cards included in a message. + // + // A Chat app can only replace cards on a human-created message if the message + // already contains cards, and the cards were created by the app. + // + // If the app replaces the cards with an empty list, the cards are removed. + // After removing the cards, the app cannot add cards back to the message. + // + // Requires [app + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-app) + // with the [authorization + // scope](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // - `https://www.googleapis.com/auth/chat.bot` + rpc ReplaceMessageCards(ReplaceMessageCardsRequest) + returns (ReplaceMessageCardsResponse) { + option (google.api.http) = { + post: "/v1/{name=spaces/*/messages/*}:replaceCards" + body: "*" + }; + } } diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto index 2495c2b327ab..9900c0403850 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/message.proto @@ -875,8 +875,32 @@ message CardWithId { // A card. Maximum size is 32 KB. google.apps.card.v1.Card card = 2; + + // Output only. The app that owns the card. + User owner_user = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for ReplaceMessageCards API method. +message ReplaceMessageCardsRequest { + // Required. The resource name of the message. + // + // Format: `spaces/{space}/messages/{message}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "chat.googleapis.com/Message" } + ]; + + // Optional. An array of + // [cards](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards) + // to be included in the message. These cards will replace the existing cards + // of the message. If empty, the original cards included in the message will + // be cleared. + repeated CardWithId cards_v2 = 2 [(google.api.field_behavior) = OPTIONAL]; } +// Response message for ReplaceMessageCards API. +message ReplaceMessageCardsResponse {} + // Request message for searching messages. message SearchMessagesRequest { // The kinds of view that are supported for partial search results. diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/AsyncReplaceMessageCards.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/AsyncReplaceMessageCards.java new file mode 100644 index 000000000000..c8c23d3656c5 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/AsyncReplaceMessageCards.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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_ReplaceMessageCards_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.CardWithId; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MessageName; +import com.google.chat.v1.ReplaceMessageCardsRequest; +import com.google.chat.v1.ReplaceMessageCardsResponse; +import java.util.ArrayList; + +public class AsyncReplaceMessageCards { + + public static void main(String[] args) throws Exception { + asyncReplaceMessageCards(); + } + + public static void asyncReplaceMessageCards() 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()) { + ReplaceMessageCardsRequest request = + ReplaceMessageCardsRequest.newBuilder() + .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .addAllCardsV2(new ArrayList()) + .build(); + ApiFuture future = + chatServiceClient.replaceMessageCardsCallable().futureCall(request); + // Do something. + ReplaceMessageCardsResponse response = future.get(); + } + } +} +// [END chat_v1_generated_ChatService_ReplaceMessageCards_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/SyncReplaceMessageCards.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/SyncReplaceMessageCards.java new file mode 100644 index 000000000000..656fb2af227a --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/replacemessagecards/SyncReplaceMessageCards.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS 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_ReplaceMessageCards_sync] +import com.google.chat.v1.CardWithId; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.MessageName; +import com.google.chat.v1.ReplaceMessageCardsRequest; +import com.google.chat.v1.ReplaceMessageCardsResponse; +import java.util.ArrayList; + +public class SyncReplaceMessageCards { + + public static void main(String[] args) throws Exception { + syncReplaceMessageCards(); + } + + public static void syncReplaceMessageCards() 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()) { + ReplaceMessageCardsRequest request = + ReplaceMessageCardsRequest.newBuilder() + .setName(MessageName.of("[SPACE]", "[MESSAGE]").toString()) + .addAllCardsV2(new ArrayList()) + .build(); + ReplaceMessageCardsResponse response = chatServiceClient.replaceMessageCards(request); + } + } +} +// [END chat_v1_generated_ChatService_ReplaceMessageCards_sync] diff --git a/java-chronicle/README.md b/java-chronicle/README.md index 137ba0ce4a0b..b35d4b88e7aa 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-chronicle - 0.37.0 + 0.38.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-chronicle' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-chronicle:0.37.0' +implementation 'com.google.cloud:google-cloud-chronicle:0.38.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.37.0" +libraryDependencies += "com.google.cloud" % "google-cloud-chronicle" % "0.38.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview [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-chronicle.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/0.37.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-chronicle/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-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 43809fa0df4d..5872c511d35e 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudapiregistry - 0.18.0 + 0.19.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudapiregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.18.0' +implementation 'com.google.cloud:google-cloud-cloudapiregistry:0.19.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.18.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudapiregistry" % "0.19.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview [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-cloudapiregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.18.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudapiregistry/0.19.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/README.md b/java-cloudbuild/README.md index 619d40961372..58baeae6145e 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-build - 3.101.0 + 3.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-build' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-build:3.101.0' +implementation 'com.google.cloud:google-cloud-build:3.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-build" % "3.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-build/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-build/3.102.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/README.md b/java-cloudcommerceconsumerprocurement/README.md index aa83330e3c18..7e29348f30eb 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcommerceconsumerprocurement - 0.97.0 + 0.98.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.97.0' +implementation 'com.google.cloud:google-cloud-cloudcommerceconsumerprocurement:0.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcommerceconsumerprocurement" % "0.98.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcommerceconsumerprocurement/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcommerceconsumerprocurement/0.98.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/README.md b/java-cloudcontrolspartner/README.md index 75243b2df8dd..ee6b999af5fe 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudcontrolspartner - 0.63.0 + 0.64.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudcontrolspartner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.63.0' +implementation 'com.google.cloud:google-cloud-cloudcontrolspartner:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudcontrolspartner" % "0.64.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudcontrolspartner/latest/overview [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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudcontrolspartner/0.64.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/README.md b/java-cloudquotas/README.md index 8fd0bfa582de..298c5d120712 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudquotas - 0.67.0 + 0.68.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-cloudquotas' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudquotas:0.67.0' +implementation 'com.google.cloud:google-cloud-cloudquotas:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudquotas" % "0.68.0" ``` ## Authentication @@ -182,7 +182,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudquotas/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudquotas/0.68.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-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 5fd918c1d83a..2698c0ce52c1 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsecuritycompliance - 0.26.0 + 0.27.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.26.0' +implementation 'com.google.cloud:google-cloud-cloudsecuritycompliance:0.27.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.26.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsecuritycompliance" % "0.27.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview [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-cloudsecuritycompliance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.26.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsecuritycompliance/0.27.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/README.md b/java-cloudsupport/README.md index 6f5cfb81ee31..807090dc66bd 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-cloudsupport - 0.83.0 + 0.84.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-cloudsupport' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-cloudsupport:0.83.0' +implementation 'com.google.cloud:google-cloud-cloudsupport:0.84.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.83.0" +libraryDependencies += "com.google.cloud" % "google-cloud-cloudsupport" % "0.84.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-cloudsupport/latest/overview [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.83.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-cloudsupport/0.84.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-commerceproducer/README.md b/java-commerceproducer/README.md index 6a20ce69836a..a625acb7f379 100644 --- a/java-commerceproducer/README.md +++ b/java-commerceproducer/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-commerceproducer - 0.5.0 + 0.6.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-commerceproducer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-commerceproducer:0.5.0' +implementation 'com.google.cloud:google-cloud-commerceproducer:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-commerceproducer" % "0.6.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-commerceproducer/latest/overview [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-commerceproducer.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-commerceproducer/0.6.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/README.md b/java-compute/README.md index 40d0b52b3387..e6ba1d162eda 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-compute - 1.109.0 + 1.110.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-compute' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-compute:1.109.0' +implementation 'com.google.cloud:google-cloud-compute:1.110.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.109.0" +libraryDependencies += "com.google.cloud" % "google-cloud-compute" % "1.110.0" ``` ## Authentication @@ -245,7 +245,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-compute/latest/overview [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.109.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-compute/1.110.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/README.md b/java-confidentialcomputing/README.md index d679f575a047..b4efcb2704e6 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-confidentialcomputing - 0.85.0 + 0.86.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-confidentialcomputing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.85.0' +implementation 'com.google.cloud:google-cloud-confidentialcomputing:0.86.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.85.0" +libraryDependencies += "com.google.cloud" % "google-cloud-confidentialcomputing" % "0.86.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-confidentialcomputing/latest/overview [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.85.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-confidentialcomputing/0.86.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-configdelivery/README.md b/java-configdelivery/README.md index 4e9269121250..5f3789722d1d 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-configdelivery - 0.33.0 + 0.34.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-configdelivery' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-configdelivery:0.33.0' +implementation 'com.google.cloud:google-cloud-configdelivery:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-configdelivery" % "0.34.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview [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-configdelivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-configdelivery/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-connectgateway/README.md b/java-connectgateway/README.md index 368c05822eac..906d7f90560a 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-connectgateway - 0.51.0 + 0.52.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-connectgateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-connectgateway:0.51.0' +implementation 'com.google.cloud:google-cloud-connectgateway:0.52.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.51.0" +libraryDependencies += "com.google.cloud" % "google-cloud-connectgateway" % "0.52.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview [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-connectgateway.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/0.51.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-connectgateway/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-contact-center-insights/README.md b/java-contact-center-insights/README.md index db600b6202e7..a43546ead3d2 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contact-center-insights - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-contact-center-insights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contact-center-insights:2.99.0' +implementation 'com.google.cloud:google-cloud-contact-center-insights:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contact-center-insights" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contact-center-insights/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contact-center-insights/2.100.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-container/README.md b/java-container/README.md index 28d8ba62b63c..8fdba3238863 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-container - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-container' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-container:2.102.0' +implementation 'com.google.cloud:google-cloud-container:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-container" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-container/latest/overview [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-container.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-container/2.103.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-containeranalysis/README.md b/java-containeranalysis/README.md index 7d7ed6082cdc..9cf6b1c941b9 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-containeranalysis - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-containeranalysis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-containeranalysis:2.100.0' +implementation 'com.google.cloud:google-cloud-containeranalysis:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-containeranalysis" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-containeranalysis/latest/overview [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-containeranalysis.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-containeranalysis/2.101.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/README.md b/java-contentwarehouse/README.md index cf31e85a20e4..dce2f1edd8b1 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-contentwarehouse - 0.95.0 + 0.96.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-contentwarehouse' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-contentwarehouse:0.95.0' +implementation 'com.google.cloud:google-cloud-contentwarehouse:0.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-contentwarehouse" % "0.96.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-contentwarehouse/latest/overview [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.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-contentwarehouse/0.96.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/README.md b/java-data-fusion/README.md index 8a5b6dabd6ad..51dbb86bd3f6 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-data-fusion - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-data-fusion' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-data-fusion:1.99.0' +implementation 'com.google.cloud:google-cloud-data-fusion:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-data-fusion" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-data-fusion/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-data-fusion/1.100.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-databasecenter/README.md b/java-databasecenter/README.md index 07a20336ddda..637e3cdf8aa8 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-databasecenter - 0.20.0 + 0.21.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-databasecenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-databasecenter:0.20.0' +implementation 'com.google.cloud:google-cloud-databasecenter:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.20.0" +libraryDependencies += "com.google.cloud" % "google-cloud-databasecenter" % "0.21.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview [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-databasecenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-databasecenter/0.21.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/README.md b/java-dataflow/README.md index ecee5dabb130..a865b10595f5 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataflow - 0.103.0 + 0.104.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataflow:0.103.0' +implementation 'com.google.cloud:google-cloud-dataflow:0.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataflow" % "0.104.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataflow/latest/overview [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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataflow/0.104.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/README.md b/java-dataform/README.md index e0375366799f..ad963a117911 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataform - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dataform' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataform:0.98.0' +implementation 'com.google.cloud:google-cloud-dataform:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataform" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataform/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataform/0.99.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/README.md b/java-datalineage/README.md index 6a3756de1f5e..07a8af875fe6 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datalineage - 0.91.0 + 0.92.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datalineage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datalineage:0.91.0' +implementation 'com.google.cloud:google-cloud-datalineage:0.92.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.91.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datalineage" % "0.92.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datalineage/latest/overview [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.91.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datalineage/0.92.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-datamanager/README.md b/java-datamanager/README.md index 1dd7e732fdb4..236dd5d54a48 100644 --- a/java-datamanager/README.md +++ b/java-datamanager/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.api-ads data-manager - 0.20.0 + 0.21.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.api-ads:data-manager:0.20.0' +implementation 'com.google.api-ads:data-manager:0.21.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.api-ads" % "data-manager" % "0.20.0" +libraryDependencies += "com.google.api-ads" % "data-manager" % "0.21.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/data-manager/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.api-ads/data-manager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.20.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.api-ads/data-manager/0.21.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-dataplex/README.md b/java-dataplex/README.md index 97c844a35e8b..95d6942619bb 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataplex - 1.97.0 + 1.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataplex' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataplex:1.97.0' +implementation 'com.google.cloud:google-cloud-dataplex:1.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataplex" % "1.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataplex/latest/overview [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-dataplex.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataplex/1.98.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/README.md b/java-dataproc-metastore/README.md index 8ad7c8f3e4b0..610eb00bb0d1 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc-metastore - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc-metastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.100.0' +implementation 'com.google.cloud:google-cloud-dataproc-metastore:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc-metastore" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc-metastore/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc-metastore/2.101.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/README.md b/java-dataproc/README.md index 3eaca856ef37..f10d2b2ba93c 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dataproc - 4.96.0 + 4.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dataproc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dataproc:4.96.0' +implementation 'com.google.cloud:google-cloud-dataproc:4.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dataproc" % "4.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dataproc/latest/overview [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dataproc/4.97.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-datastore/README.md b/java-datastore/README.md index 9e92a0f3832d..e8a2ff673d3e 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastore - 3.7.0 + 3.8.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastore:3.7.0' +implementation 'com.google.cloud:google-cloud-datastore:3.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastore" % "3.8.0" ``` ## Authentication @@ -473,7 +473,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastore/latest/history [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-datastore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastore/3.8.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/README.md b/java-datastream/README.md index 16419c408947..859d5b6eb396 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-datastream - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-datastream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-datastream:1.98.0' +implementation 'com.google.cloud:google-cloud-datastream:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-datastream" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-datastream/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-datastream/1.99.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/README.md b/java-deploy/README.md index 6468349476da..ee111da940b1 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-deploy - 1.97.0 + 1.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-deploy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-deploy:1.97.0' +implementation 'com.google.cloud:google-cloud-deploy:1.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-deploy" % "1.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-deploy/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-deploy/1.98.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/README.md b/java-developerconnect/README.md index 84aa5284e96f..2c1a80a9eec2 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developerconnect - 0.56.0 + 0.57.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developerconnect' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developerconnect:0.56.0' +implementation 'com.google.cloud:google-cloud-developerconnect:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developerconnect" % "0.57.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview [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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developerconnect/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-developerknowledge/README.md b/java-developerknowledge/README.md index 5b7c66ec6dd2..85ec9f82690f 100644 --- a/java-developerknowledge/README.md +++ b/java-developerknowledge/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-developer-knowledge - 0.7.0 + 0.8.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-developer-knowledge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-developer-knowledge:0.7.0' +implementation 'com.google.cloud:google-cloud-developer-knowledge:0.8.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.7.0" +libraryDependencies += "com.google.cloud" % "google-cloud-developer-knowledge" % "0.8.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview [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-developer-knowledge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.7.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-developer-knowledge/0.8.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-devicestreaming/README.md b/java-devicestreaming/README.md index 5e7cf13ce2cd..891aed4584db 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-devicestreaming - 0.39.0 + 0.40.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-devicestreaming' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-devicestreaming:0.39.0' +implementation 'com.google.cloud:google-cloud-devicestreaming:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-devicestreaming" % "0.40.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview [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-devicestreaming.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-devicestreaming/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-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index e78cf8dc55cf..b5fd7ad6e852 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow-cx - 0.110.0 + 0.111.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow-cx' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.110.0' +implementation 'com.google.cloud:google-cloud-dialogflow-cx:0.111.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.110.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow-cx" % "0.111.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow-cx/latest/overview [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.110.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow-cx/0.111.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/README.md b/java-dialogflow/README.md index 3abe00db2643..13d5886c7cef 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dialogflow - 4.105.0 + 4.106.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dialogflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dialogflow:4.105.0' +implementation 'com.google.cloud:google-cloud-dialogflow:4.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dialogflow" % "4.106.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dialogflow/latest/overview [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.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dialogflow/4.106.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-discoveryengine/README.md b/java-discoveryengine/README.md index 1fd01ea7757e..f662c82cb03a 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-discoveryengine - 0.95.0 + 0.96.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-discoveryengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-discoveryengine:0.95.0' +implementation 'com.google.cloud:google-cloud-discoveryengine:0.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-discoveryengine" % "0.96.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-discoveryengine/latest/overview [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-discoveryengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-discoveryengine/0.96.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-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 84b90ded6dca..26be9c5f30f7 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-distributedcloudedge - 0.96.0 + 0.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-distributedcloudedge' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.96.0' +implementation 'com.google.cloud:google-cloud-distributedcloudedge:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-distributedcloudedge" % "0.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-distributedcloudedge/latest/overview [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-distributedcloudedge.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-distributedcloudedge/0.97.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/README.md b/java-dlp/README.md index b593bf74d2e3..c1aaddd91a93 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dlp - 3.103.0 + 3.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dlp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dlp:3.103.0' +implementation 'com.google.cloud:google-cloud-dlp:3.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dlp" % "3.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dlp/latest/overview [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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dlp/3.104.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/README.md b/java-dms/README.md index 9bd5fd2330d9..67a9312bf914 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-dms - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-dms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-dms:2.98.0' +implementation 'com.google.cloud:google-cloud-dms:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-dms" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-dms/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-dms/2.99.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/README.md b/java-document-ai/README.md index 83500556b4c2..f9b7de70ab0d 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-document-ai - 2.103.0 + 2.104.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-document-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-document-ai:2.103.0' +implementation 'com.google.cloud:google-cloud-document-ai:2.104.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.103.0" +libraryDependencies += "com.google.cloud" % "google-cloud-document-ai" % "2.104.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-document-ai/latest/overview [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.103.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-document-ai/2.104.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/README.md b/java-domains/README.md index 16780cbe5b40..a567399548a0 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-domains - 1.96.0 + 1.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-domains' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.96.0' +implementation 'com.google.cloud:google-cloud-domains:1.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-domains/latest/overview [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-domains/1.97.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/README.md b/java-edgenetwork/README.md index e18191ccf5a8..dac2da4bb3c0 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-edgenetwork - 0.67.0 + 0.68.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-edgenetwork' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-edgenetwork:0.67.0' +implementation 'com.google.cloud:google-cloud-edgenetwork:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-edgenetwork" % "0.68.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-edgenetwork/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-edgenetwork/0.68.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/README.md b/java-enterpriseknowledgegraph/README.md index b85d94058374..51fd32b582f1 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-enterpriseknowledgegraph - 0.95.0 + 0.96.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.95.0' +implementation 'com.google.cloud:google-cloud-enterpriseknowledgegraph:0.96.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.95.0" +libraryDependencies += "com.google.cloud" % "google-cloud-enterpriseknowledgegraph" % "0.96.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-enterpriseknowledgegraph/latest/overview [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.95.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-enterpriseknowledgegraph/0.96.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-errorreporting/README.md b/java-errorreporting/README.md index 1bbee7844ee6..1b07bd0c1ba3 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-errorreporting - 0.220.0-beta + 0.221.0-beta ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-errorreporting' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-errorreporting:0.220.0-beta' +implementation 'com.google.cloud:google-cloud-errorreporting:0.221.0-beta' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.220.0-beta" +libraryDependencies += "com.google.cloud" % "google-cloud-errorreporting" % "0.221.0-beta" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-errorreporting/latest/overview [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.220.0-beta +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-errorreporting/0.221.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-essential-contacts/README.md b/java-essential-contacts/README.md index a806aa9605c2..9a8cf7d91b8a 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-essential-contacts - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-essential-contacts' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-essential-contacts:2.99.0' +implementation 'com.google.cloud:google-cloud-essential-contacts:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-essential-contacts" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-essential-contacts/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-essential-contacts/2.100.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/README.md b/java-eventarc-publishing/README.md index e3c75c2c0540..d8573b252eeb 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc-publishing - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-eventarc-publishing' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.99.0' +implementation 'com.google.cloud:google-cloud-eventarc-publishing:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc-publishing" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc-publishing/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc-publishing/0.100.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/README.md b/java-eventarc/README.md index 459c09e07c23..fb2edcc7203c 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-eventarc - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-eventarc' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-eventarc:1.99.0' +implementation 'com.google.cloud:google-cloud-eventarc:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-eventarc" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-eventarc/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-eventarc/1.100.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/README.md b/java-filestore/README.md index edbd0554ecf4..aa45e978c58a 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-filestore - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-filestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-filestore:1.100.0' +implementation 'com.google.cloud:google-cloud-filestore:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-filestore" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-filestore/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-filestore/1.101.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-financialservices/README.md b/java-financialservices/README.md index 9814da4b890d..d5f567175883 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-financialservices - 0.40.0 + 0.41.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-financialservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-financialservices:0.40.0' +implementation 'com.google.cloud:google-cloud-financialservices:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-financialservices" % "0.41.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview [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-financialservices.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-financialservices/0.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-firestore/README.md b/java-firestore/README.md index 4d1890dc79f2..bacd174b82c8 100644 --- a/java-firestore/README.md +++ b/java-firestore/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-firestore - 3.49.0 + 3.50.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-firestore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-firestore:3.49.0' +implementation 'com.google.cloud:google-cloud-firestore:3.50.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.49.0" +libraryDependencies += "com.google.cloud" % "google-cloud-firestore" % "3.50.0" ``` ## Authentication @@ -197,7 +197,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-firestore/latest/history [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-firestore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/3.49.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-firestore/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-ftp/README.md b/java-ftp/README.md index d59194716a9e..b7b03444dfc7 100644 --- a/java-ftp/README.md +++ b/java-ftp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ftp - 0.4.0 + 0.5.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-ftp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ftp:0.4.0' +implementation 'com.google.cloud:google-cloud-ftp:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ftp" % "0.5.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ftp/latest/overview [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-ftp.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ftp/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-functions/README.md b/java-functions/README.md index 6570c67003b2..a8cf918e4c3e 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-functions - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-functions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-functions:2.101.0' +implementation 'com.google.cloud:google-cloud-functions:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-functions" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-functions/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-functions/2.102.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/README.md b/java-gdchardwaremanagement/README.md index 5504efec6bce..16fb42ee920c 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gdchardwaremanagement - 0.54.0 + 0.55.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gdchardwaremanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.54.0' +implementation 'com.google.cloud:google-cloud-gdchardwaremanagement:0.55.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.54.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gdchardwaremanagement" % "0.55.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview [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.54.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gdchardwaremanagement/0.55.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-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index 4fac1f5c5890..94fef184926c 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-geminidataanalytics - 0.27.0 + 0.28.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-geminidataanalytics' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.27.0' +implementation 'com.google.cloud:google-cloud-geminidataanalytics:0.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.27.0" +libraryDependencies += "com.google.cloud" % "google-cloud-geminidataanalytics" % "0.28.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview [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-geminidataanalytics.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/0.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-geminidataanalytics/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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java index bdd358665769..78d466733d2f 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceClient.java @@ -293,7 +293,7 @@ * * *

SetAgentOpsObservability - *

Enables/Disables required GCP services and configures AgentOps observability settings calling the Admin Settings executable node to update the AgentOps Observability feature. + *

Enables/Disables required GCP services and configures AgentOps observability settings. * *

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

*
    @@ -1982,8 +1982,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

    Sample code: * @@ -2026,8 +2025,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

    Sample code: * @@ -2070,8 +2068,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

    Sample code: * @@ -2105,8 +2102,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

    Sample code: * @@ -2142,8 +2138,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

    Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java index c184bb023b72..cf4f037c5bec 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1/stub/DataAgentServiceStubSettings.java @@ -704,10 +704,10 @@ public static class Builder extends StubSettings.BuilderThis 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    - *   String tenant = "tenant-877336406";
    - *   A2AMessage message = A2AMessage.newBuilder().build();
    - *   SendMessageResponse response = dataA2AServiceClient.sendMessage(tenant, message);
    - * }
    - * }
    - * - *

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

    SendMessage

    Send a message to the agent. This is a blocking call that will return the task once it is completed.

    - *

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

    - *
      - *
    • sendMessage(SendMessageRequest request) - *

    - *

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

    - *
      - *
    • sendMessage(String tenant, A2AMessage message) - *

    - *

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

    - *
      - *
    • sendMessageCallable() - *

    - *

    SendStreamingMessage

    SendStreamingMessage is a streaming call that will return a stream of task update events until the Task is in an interrupted or terminal state.

    - *

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

    - *
      - *
    • sendStreamingMessageCallable() - *

    - *

    GetAgentCard

    GetAgentCard returns the agent card for the agent.

    - *

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

    - *
      - *
    • getAgentCard(GetAgentCardRequest request) - *

    - *

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

    - *
      - *
    • getAgentCard(String tenant) - *

    - *

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

    - *
      - *
    • getAgentCardCallable() - *

    - *

    ListLocations

    Lists information about the supported locations for this service. - *

    This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: ***Global locations**: If `name` is empty, the method lists thepublic locations available to all projects. * **Project-specificlocations**: If `name` follows the format`projects/{project}`, the method lists locations visible to thatspecific project. This includes public, private, or otherproject-specific locations enabled for the project. - *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. For direct service calls, the resourcename isincorporated into the request path based on the specific serviceimplementation and version.

    - *

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

    - *
      - *
    • listLocations(ListLocationsRequest request) - *

    - *

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

    - *
      - *
    • listLocationsPagedCallable() - *

    • listLocationsCallable() - *

    - *

    GetLocation

    Gets information about a location.

    - *

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

    - *
      - *
    • getLocation(GetLocationRequest request) - *

    - *

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

    - *
      - *
    • getLocationCallable() - *

    - *
    - * - *

    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 DataA2AServiceSettings 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
    - * DataA2AServiceSettings dataA2AServiceSettings =
    - *     DataA2AServiceSettings.newBuilder()
    - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    - *         .build();
    - * DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create(dataA2AServiceSettings);
    - * }
    - * - *

    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
    - * DataA2AServiceSettings dataA2AServiceSettings =
    - *     DataA2AServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
    - * DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create(dataA2AServiceSettings);
    - * }
    - * - *

    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
    - * DataA2AServiceSettings dataA2AServiceSettings =
    - *     DataA2AServiceSettings.newHttpJsonBuilder().build();
    - * DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create(dataA2AServiceSettings);
    - * }
    - * - *

    Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class DataA2AServiceClient implements BackgroundResource { - private final @Nullable DataA2AServiceSettings settings; - private final DataA2AServiceStub stub; - - /** Constructs an instance of DataA2AServiceClient with default settings. */ - public static final DataA2AServiceClient create() throws IOException { - return create(DataA2AServiceSettings.newBuilder().build()); - } - - /** - * Constructs an instance of DataA2AServiceClient, 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 DataA2AServiceClient create(DataA2AServiceSettings settings) - throws IOException { - return new DataA2AServiceClient(settings); - } - - /** - * Constructs an instance of DataA2AServiceClient, using the given stub for making calls. This is - * for advanced usage - prefer using create(DataA2AServiceSettings). - */ - public static final DataA2AServiceClient create(DataA2AServiceStub stub) { - return new DataA2AServiceClient(stub); - } - - /** - * Constructs an instance of DataA2AServiceClient, 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 DataA2AServiceClient(DataA2AServiceSettings settings) throws IOException { - this.settings = settings; - this.stub = ((DataA2AServiceStubSettings) settings.getStubSettings()).createStub(); - } - - protected DataA2AServiceClient(DataA2AServiceStub stub) { - this.settings = null; - this.stub = stub; - } - - public final @Nullable DataA2AServiceSettings getSettings() { - return settings; - } - - public DataA2AServiceStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Send a message to the agent. This is a blocking call that will return the task once it is - * completed. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   String tenant = "tenant-877336406";
    -   *   A2AMessage message = A2AMessage.newBuilder().build();
    -   *   SendMessageResponse response = dataA2AServiceClient.sendMessage(tenant, message);
    -   * }
    -   * }
    - * - * @param tenant Optional. Optional tenant, provided as a path parameter. - * @param message Required. The message to send to the agent. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final SendMessageResponse sendMessage(String tenant, A2AMessage message) { - SendMessageRequest request = - SendMessageRequest.newBuilder().setTenant(tenant).setMessage(message).build(); - return sendMessage(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Send a message to the agent. This is a blocking call that will return the task once it is - * completed. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   SendMessageRequest request =
    -   *       SendMessageRequest.newBuilder()
    -   *           .setMessage(A2AMessage.newBuilder().build())
    -   *           .setConfiguration(SendMessageConfiguration.newBuilder().build())
    -   *           .setMetadata(Struct.newBuilder().build())
    -   *           .setTenant("tenant-877336406")
    -   *           .build();
    -   *   SendMessageResponse response = dataA2AServiceClient.sendMessage(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 SendMessageResponse sendMessage(SendMessageRequest request) { - return sendMessageCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Send a message to the agent. This is a blocking call that will return the task once it is - * completed. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   SendMessageRequest request =
    -   *       SendMessageRequest.newBuilder()
    -   *           .setMessage(A2AMessage.newBuilder().build())
    -   *           .setConfiguration(SendMessageConfiguration.newBuilder().build())
    -   *           .setMetadata(Struct.newBuilder().build())
    -   *           .setTenant("tenant-877336406")
    -   *           .build();
    -   *   ApiFuture future =
    -   *       dataA2AServiceClient.sendMessageCallable().futureCall(request);
    -   *   // Do something.
    -   *   SendMessageResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable sendMessageCallable() { - return stub.sendMessageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * SendStreamingMessage is a streaming call that will return a stream of task update events until - * the Task is in an interrupted or terminal state. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   SendMessageRequest request =
    -   *       SendMessageRequest.newBuilder()
    -   *           .setMessage(A2AMessage.newBuilder().build())
    -   *           .setConfiguration(SendMessageConfiguration.newBuilder().build())
    -   *           .setMetadata(Struct.newBuilder().build())
    -   *           .setTenant("tenant-877336406")
    -   *           .build();
    -   *   ServerStream stream =
    -   *       dataA2AServiceClient.sendStreamingMessageCallable().call(request);
    -   *   for (StreamResponse response : stream) {
    -   *     // Do something when a response is received.
    -   *   }
    -   * }
    -   * }
    - */ - public final ServerStreamingCallable - sendStreamingMessageCallable() { - return stub.sendStreamingMessageCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * GetAgentCard returns the agent card for the agent. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   String tenant = "tenant-877336406";
    -   *   AgentCard response = dataA2AServiceClient.getAgentCard(tenant);
    -   * }
    -   * }
    - * - * @param tenant Optional. Optional tenant, provided as a path parameter. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AgentCard getAgentCard(String tenant) { - GetAgentCardRequest request = GetAgentCardRequest.newBuilder().setTenant(tenant).build(); - return getAgentCard(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * GetAgentCard returns the agent card for the agent. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   GetAgentCardRequest request =
    -   *       GetAgentCardRequest.newBuilder().setTenant("tenant-877336406").build();
    -   *   AgentCard response = dataA2AServiceClient.getAgentCard(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 AgentCard getAgentCard(GetAgentCardRequest request) { - return getAgentCardCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * GetAgentCard returns the agent card for the agent. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   GetAgentCardRequest request =
    -   *       GetAgentCardRequest.newBuilder().setTenant("tenant-877336406").build();
    -   *   ApiFuture future = dataA2AServiceClient.getAgentCardCallable().futureCall(request);
    -   *   // Do something.
    -   *   AgentCard response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable getAgentCardCallable() { - return stub.getAgentCardCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists information about the supported locations for this service. - * - *

    This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: - * ***Global locations**: If `name` is empty, the method lists thepublic - * locations available to all projects. * **Project-specificlocations**: If - * `name` follows the format`projects/{project}`, the method lists locations visible to - * thatspecific project. This includes public, private, or otherproject-specific locations enabled - * for the project. - * - *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. - * For direct service calls, the resourcename isincorporated into the request path based on the - * specific serviceimplementation and version. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   ListLocationsRequest request =
    -   *       ListLocationsRequest.newBuilder()
    -   *           .setName("name3373707")
    -   *           .setFilter("filter-1274492040")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   for (Location element : dataA2AServiceClient.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. - * - *

    This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: - * ***Global locations**: If `name` is empty, the method lists thepublic - * locations available to all projects. * **Project-specificlocations**: If - * `name` follows the format`projects/{project}`, the method lists locations visible to - * thatspecific project. This includes public, private, or otherproject-specific locations enabled - * for the project. - * - *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. - * For direct service calls, the resourcename isincorporated into the request path based on the - * specific serviceimplementation and version. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   ListLocationsRequest request =
    -   *       ListLocationsRequest.newBuilder()
    -   *           .setName("name3373707")
    -   *           .setFilter("filter-1274492040")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   ApiFuture future =
    -   *       dataA2AServiceClient.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. - * - *

    This method lists locations based on the resource scope provided inthe - * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: - * ***Global locations**: If `name` is empty, the method lists thepublic - * locations available to all projects. * **Project-specificlocations**: If - * `name` follows the format`projects/{project}`, the method lists locations visible to - * thatspecific project. This includes public, private, or otherproject-specific locations enabled - * for the project. - * - *

    For gRPC and client library implementations, the resource name ispassed as the `name` field. - * For direct service calls, the resourcename isincorporated into the request path based on the - * specific serviceimplementation and version. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   ListLocationsRequest request =
    -   *       ListLocationsRequest.newBuilder()
    -   *           .setName("name3373707")
    -   *           .setFilter("filter-1274492040")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   while (true) {
    -   *     ListLocationsResponse response = dataA2AServiceClient.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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    -   *   Location response = dataA2AServiceClient.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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
    -   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
    -   *   ApiFuture future = dataA2AServiceClient.getLocationCallable().futureCall(request);
    -   *   // Do something.
    -   *   Location response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable getLocationCallable() { - return stub.getLocationCallable(); - } - - @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 ListLocationsPagedResponse - extends AbstractPagedListResponse< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListLocationsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListLocationsPagedResponse(ListLocationsPage page) { - super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListLocationsPage - extends AbstractPage< - ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { - - private ListLocationsPage( - @Nullable PageContext context, - @Nullable ListLocationsResponse response) { - super(context, response); - } - - private static ListLocationsPage createEmptyPage() { - return new ListLocationsPage(null, null); - } - - @Override - protected ListLocationsPage createPage( - @Nullable PageContext context, - @Nullable ListLocationsResponse response) { - return new ListLocationsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - @Nullable PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListLocationsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListLocationsRequest, - ListLocationsResponse, - Location, - ListLocationsPage, - ListLocationsFixedSizeCollection> { - - private ListLocationsFixedSizeCollection( - @Nullable List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListLocationsFixedSizeCollection createEmptyCollection() { - return new ListLocationsFixedSizeCollection(null, 0); - } - - @Override - protected ListLocationsFixedSizeCollection createCollection( - @Nullable List pages, int collectionSize) { - return new ListLocationsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java index fbea07650cd4..7b697c3ad91e 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceClient.java @@ -293,7 +293,7 @@ * * *

    SetAgentOpsObservability - *

    Enables/Disables required GCP services and configures AgentOps observability settings calling the Admin Settings executable node to update the AgentOps Observability feature. + *

    Enables/Disables required GCP services and configures AgentOps observability settings. * *

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

    *
      @@ -1983,8 +1983,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

      Sample code: * @@ -2027,8 +2026,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

      Sample code: * @@ -2071,8 +2069,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

      Sample code: * @@ -2106,8 +2103,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

      Sample code: * @@ -2143,8 +2139,7 @@ public final UnaryCallable setIamPolicyCallable() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Enables/Disables required GCP services and configures AgentOps observability settings calling - * the Admin Settings executable node to update the AgentOps Observability feature. + * Enables/Disables required GCP services and configures AgentOps observability settings. * *

      Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java index 4e7e048a4330..f03bb7e0adb4 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceClient.java @@ -79,7 +79,7 @@ * * *

      Chat - *

      Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1.Message] objects. + *

      Answers a data question by generating a stream of [Message][google.cloud.geminidataanalytics.v1beta.Message] objects. * *

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

      *
        @@ -360,7 +360,7 @@ public DataChatServiceStub getStub() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Answers a data question by generating a stream of - * [Message][google.cloud.geminidataanalytics.v1.Message] objects. + * [Message][google.cloud.geminidataanalytics.v1beta.Message] objects. * *

        Sample code: * diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json index b93f437af8f1..1e6e478c66b7 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/gapic_metadata.json @@ -5,30 +5,6 @@ "protoPackage": "google.cloud.geminidataanalytics.v1beta", "libraryPackage": "com.google.cloud.geminidataanalytics.v1beta", "services": { - "DataA2AService": { - "clients": { - "grpc": { - "libraryClient": "DataA2AServiceClient", - "rpcs": { - "GetAgentCard": { - "methods": ["getAgentCard", "getAgentCard", "getAgentCardCallable"] - }, - "GetLocation": { - "methods": ["getLocation", "getLocationCallable"] - }, - "ListLocations": { - "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] - }, - "SendMessage": { - "methods": ["sendMessage", "sendMessage", "sendMessageCallable"] - }, - "SendStreamingMessage": { - "methods": ["sendStreamingMessageCallable"] - } - } - } - } - }, "DataAgentService": { "clients": { "grpc": { diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java index 4f39ad9243b3..202a5f6e00fa 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/package-info.java @@ -19,26 +19,6 @@ * *

        The interfaces provided are listed below, along with usage samples. * - *

        ======================= DataA2AServiceClient ======================= - * - *

        Service Description: DataA2AService defines the Agent-to-Agent (A2A) protocol service for - * Gemini Data Analytics. - * - *

        Sample for DataA2AServiceClient: - * - *

        {@code
        - * // This snippet has been automatically generated and should be regarded as a code template only.
        - * // It will require modifications to work:
        - * // - It may require correct/in-range values for request initialization.
        - * // - It may require specifying regional endpoints when creating the service client as shown in
        - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        - * try (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) {
        - *   String tenant = "tenant-877336406";
        - *   A2AMessage message = A2AMessage.newBuilder().build();
        - *   SendMessageResponse response = dataA2AServiceClient.sendMessage(tenant, message);
        - * }
        - * }
        - * *

        ======================= DataAgentServiceClient ======================= * *

        Service Description: Service describing handlers for resources. diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStub.java deleted file mode 100644 index 3fcc29879904..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataA2AServiceStub.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; - -import com.google.api.core.BetaApi; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.AgentCard; -import com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse; -import com.google.cloud.geminidataanalytics.v1beta.StreamResponse; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import javax.annotation.Generated; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the DataA2AService service API. - * - *

        This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public abstract class DataA2AServiceStub implements BackgroundResource { - - public UnaryCallable sendMessageCallable() { - throw new UnsupportedOperationException("Not implemented: sendMessageCallable()"); - } - - public ServerStreamingCallable - sendStreamingMessageCallable() { - throw new UnsupportedOperationException("Not implemented: sendStreamingMessageCallable()"); - } - - public UnaryCallable getAgentCardCallable() { - throw new UnsupportedOperationException("Not implemented: getAgentCardCallable()"); - } - - public UnaryCallable - listLocationsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); - } - - public UnaryCallable listLocationsCallable() { - throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); - } - - public UnaryCallable getLocationCallable() { - throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java index 37e8815f7219..9cc488f58b9b 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/DataAgentServiceStubSettings.java @@ -705,10 +705,10 @@ public static class Builder extends StubSettings.BuilderThis class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class GrpcDataA2AServiceStub extends DataA2AServiceStub { - private static final MethodDescriptor - sendMessageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/SendMessage") - .setRequestMarshaller(ProtoUtils.marshaller(SendMessageRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(SendMessageResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - sendStreamingMessageMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/SendStreamingMessage") - .setRequestMarshaller(ProtoUtils.marshaller(SendMessageRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(StreamResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - getAgentCardMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/GetAgentCard") - .setRequestMarshaller(ProtoUtils.marshaller(GetAgentCardRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(AgentCard.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor - listLocationsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setRequestMarshaller( - ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private static final MethodDescriptor getLocationMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) - .setSampledToLocalTracing(true) - .build(); - - private final UnaryCallable sendMessageCallable; - private final ServerStreamingCallable - sendStreamingMessageCallable; - private final UnaryCallable getAgentCardCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcDataA2AServiceStub create(DataA2AServiceStubSettings settings) - throws IOException { - return new GrpcDataA2AServiceStub(settings, ClientContext.create(settings)); - } - - public static final GrpcDataA2AServiceStub create(ClientContext clientContext) - throws IOException { - return new GrpcDataA2AServiceStub( - DataA2AServiceStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcDataA2AServiceStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcDataA2AServiceStub( - DataA2AServiceStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcDataA2AServiceStub, 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 GrpcDataA2AServiceStub(DataA2AServiceStubSettings settings, ClientContext clientContext) - throws IOException { - this(settings, clientContext, new GrpcDataA2AServiceCallableFactory()); - } - - /** - * Constructs an instance of GrpcDataA2AServiceStub, 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 GrpcDataA2AServiceStub( - DataA2AServiceStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings sendMessageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(sendMessageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - GrpcCallSettings sendStreamingMessageTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(sendStreamingMessageMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - GrpcCallSettings getAgentCardTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getAgentCardMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - GrpcCallSettings listLocationsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - GrpcCallSettings getLocationTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.sendMessageCallable = - callableFactory.createUnaryCallable( - sendMessageTransportSettings, settings.sendMessageSettings(), clientContext); - this.sendStreamingMessageCallable = - callableFactory.createServerStreamingCallable( - sendStreamingMessageTransportSettings, - settings.sendStreamingMessageSettings(), - clientContext); - this.getAgentCardCallable = - callableFactory.createUnaryCallable( - getAgentCardTransportSettings, settings.getAgentCardSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = - callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable sendMessageCallable() { - return sendMessageCallable; - } - - @Override - public ServerStreamingCallable - sendStreamingMessageCallable() { - return sendStreamingMessageCallable; - } - - @Override - public UnaryCallable getAgentCardCallable() { - return getAgentCardCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceStub.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceStub.java deleted file mode 100644 index c987dccd91c6..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/java/com/google/cloud/geminidataanalytics/v1beta/stub/HttpJsonDataA2AServiceStub.java +++ /dev/null @@ -1,462 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.stub; - -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; - -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.ServerStreamingCallable; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.cloud.geminidataanalytics.v1beta.AgentCard; -import com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse; -import com.google.cloud.geminidataanalytics.v1beta.StreamResponse; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -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; -import org.jspecify.annotations.NullMarked; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * REST stub implementation for the DataA2AService service API. - * - *

        This class is for advanced usage and reflects the underlying API directly. - */ -@NullMarked -@BetaApi -@Generated("by gapic-generator-java") -public class HttpJsonDataA2AServiceStub extends DataA2AServiceStub { - private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder().build(); - - private static final ApiMethodDescriptor - sendMessageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/SendMessage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/message:send", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "tenant", request.getTenant()); - return fields; - }) - .setAdditionalPaths( - "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/message:send") - .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().clearTenant().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(SendMessageResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - sendStreamingMessageMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/SendStreamingMessage") - .setHttpMethod("POST") - .setType(ApiMethodDescriptor.MethodType.SERVER_STREAMING) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/message:stream", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "tenant", request.getTenant()); - return fields; - }) - .setAdditionalPaths( - "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/message:stream") - .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().clearTenant().build(), true)) - .build()) - .setResponseParser( - ProtoMessageResponseParser.newBuilder() - .setDefaultInstance(StreamResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getAgentCardMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName( - "google.cloud.geminidataanalytics.v1beta.DataA2AService/GetAgentCard") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/card", - request -> { - Map fields = new HashMap<>(); - ProtoRestSerializer serializer = - ProtoRestSerializer.create(); - serializer.putPathParam(fields, "tenant", request.getTenant()); - return fields; - }) - .setAdditionalPaths( - "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/card") - .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(AgentCard.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - listLocationsMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/ListLocations") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*}/locations", - 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(ListLocationsResponse.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private static final ApiMethodDescriptor - getLocationMethodDescriptor = - ApiMethodDescriptor.newBuilder() - .setFullMethodName("google.cloud.location.Locations/GetLocation") - .setHttpMethod("GET") - .setType(ApiMethodDescriptor.MethodType.UNARY) - .setRequestFormatter( - ProtoMessageRequestFormatter.newBuilder() - .setPath( - "/v1beta/{name=projects/*/locations/*}", - 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(Location.getDefaultInstance()) - .setDefaultTypeRegistry(typeRegistry) - .build()) - .build(); - - private final UnaryCallable sendMessageCallable; - private final ServerStreamingCallable - sendStreamingMessageCallable; - private final UnaryCallable getAgentCardCallable; - private final UnaryCallable listLocationsCallable; - private final UnaryCallable - listLocationsPagedCallable; - private final UnaryCallable getLocationCallable; - - private final BackgroundResource backgroundResources; - private final HttpJsonStubCallableFactory callableFactory; - - public static final HttpJsonDataA2AServiceStub create(DataA2AServiceStubSettings settings) - throws IOException { - return new HttpJsonDataA2AServiceStub(settings, ClientContext.create(settings)); - } - - public static final HttpJsonDataA2AServiceStub create(ClientContext clientContext) - throws IOException { - return new HttpJsonDataA2AServiceStub( - DataA2AServiceStubSettings.newHttpJsonBuilder().build(), clientContext); - } - - public static final HttpJsonDataA2AServiceStub create( - ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { - return new HttpJsonDataA2AServiceStub( - DataA2AServiceStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of HttpJsonDataA2AServiceStub, 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 HttpJsonDataA2AServiceStub( - DataA2AServiceStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new HttpJsonDataA2AServiceCallableFactory()); - } - - /** - * Constructs an instance of HttpJsonDataA2AServiceStub, 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 HttpJsonDataA2AServiceStub( - DataA2AServiceStubSettings settings, - ClientContext clientContext, - HttpJsonStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - - HttpJsonCallSettings sendMessageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(sendMessageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings sendStreamingMessageTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(sendStreamingMessageMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getAgentCardTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getAgentCardMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("tenant", String.valueOf(request.getTenant())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings - listLocationsTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(listLocationsMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - HttpJsonCallSettings getLocationTransportSettings = - HttpJsonCallSettings.newBuilder() - .setMethodDescriptor(getLocationMethodDescriptor) - .setTypeRegistry(typeRegistry) - .setParamsExtractor( - request -> { - RequestParamsBuilder builder = RequestParamsBuilder.create(); - builder.add("name", String.valueOf(request.getName())); - return builder.build(); - }) - .build(); - - this.sendMessageCallable = - callableFactory.createUnaryCallable( - sendMessageTransportSettings, settings.sendMessageSettings(), clientContext); - this.sendStreamingMessageCallable = - callableFactory.createServerStreamingCallable( - sendStreamingMessageTransportSettings, - settings.sendStreamingMessageSettings(), - clientContext); - this.getAgentCardCallable = - callableFactory.createUnaryCallable( - getAgentCardTransportSettings, settings.getAgentCardSettings(), clientContext); - this.listLocationsCallable = - callableFactory.createUnaryCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.listLocationsPagedCallable = - callableFactory.createPagedCallable( - listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); - this.getLocationCallable = - callableFactory.createUnaryCallable( - getLocationTransportSettings, settings.getLocationSettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - @InternalApi - public static List getMethodDescriptors() { - List methodDescriptors = new ArrayList<>(); - methodDescriptors.add(sendMessageMethodDescriptor); - methodDescriptors.add(sendStreamingMessageMethodDescriptor); - methodDescriptors.add(getAgentCardMethodDescriptor); - methodDescriptors.add(listLocationsMethodDescriptor); - methodDescriptors.add(getLocationMethodDescriptor); - return methodDescriptors; - } - - @Override - public UnaryCallable sendMessageCallable() { - return sendMessageCallable; - } - - @Override - public ServerStreamingCallable - sendStreamingMessageCallable() { - return sendStreamingMessageCallable; - } - - @Override - public UnaryCallable getAgentCardCallable() { - return getAgentCardCallable; - } - - @Override - public UnaryCallable listLocationsCallable() { - return listLocationsCallable; - } - - @Override - public UnaryCallable - listLocationsPagedCallable() { - return listLocationsPagedCallable; - } - - @Override - public UnaryCallable getLocationCallable() { - return getLocationCallable; - } - - @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-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1/reflect-config.json index 0ece8a17cf89..77408c978c78 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1/reflect-config.json @@ -611,6 +611,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1.BigQueryJob", "queryAllDeclaredConstructors": true, @@ -2006,6 +2024,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.geminidataanalytics.v1.SearchScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.geminidataanalytics.v1.SearchScope$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.geminidataanalytics.v1.SetAgentOpsObservabilityMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json index 9970a9bf8404..5523fca86b8b 100644 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json +++ b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/main/resources/META-INF/native-image/com.google.cloud.geminidataanalytics.v1beta/reflect-config.json @@ -521,132 +521,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2AArtifact", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2AArtifact$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2AMessage", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2AMessage$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2ATask", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.A2ATask$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCard", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCard$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.AgentContextReference", "queryAllDeclaredConstructors": true, @@ -665,78 +539,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentExtension", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentExtension$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentInterface", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentInterface$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentProvider", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentProvider$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentSkill", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AgentSkill$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.AlloyDbDatabaseReference", "queryAllDeclaredConstructors": true, @@ -864,25 +666,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow", + "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -891,7 +675,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -1349,24 +1133,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.ClientManagedResourceContext", "queryAllDeclaredConstructors": true, @@ -1718,24 +1484,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataPart", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.DataPart$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.DataQuery", "queryAllDeclaredConstructors": true, @@ -2043,7 +1791,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FilePart", + "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreDatabaseReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2052,7 +1800,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FilePart$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreDatabaseReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2061,7 +1809,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreDatabaseReference", + "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreReference", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2070,7 +1818,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreDatabaseReference$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreReference$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2079,7 +1827,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreReference", + "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2088,7 +1836,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.FirestoreReference$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2097,7 +1845,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions", + "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2106,7 +1854,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GenerationOptions$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2115,7 +1863,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest", + "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2124,7 +1872,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2133,7 +1881,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest", + "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2142,7 +1890,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetConversationRequest$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2151,7 +1899,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2160,7 +1908,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GetDataAgentRequest$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2169,7 +1917,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$CreatorFilter", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2178,7 +1926,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.GlossaryTerm$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2187,7 +1935,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2196,7 +1944,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2205,7 +1953,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2214,79 +1962,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsRequest$CreatorFilter", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListAccessibleDataAgentsResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse", + "name": "com.google.cloud.geminidataanalytics.v1beta.ListConversationsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -2519,42 +2195,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthCredentials", "queryAllDeclaredConstructors": true, @@ -2609,42 +2249,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthFlows", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OAuthFlows$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.OperationMetadata", "queryAllDeclaredConstructors": true, @@ -2699,42 +2303,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Part", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Part$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.PrivateLookerInstanceInfo", "queryAllDeclaredConstructors": true, @@ -2753,24 +2321,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.QueryDataContext", "queryAllDeclaredConstructors": true, @@ -2897,15 +2447,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Role", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.Schema", "queryAllDeclaredConstructors": true, @@ -2979,52 +2520,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.Security", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.Security$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SecurityScheme", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SecurityScheme$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.SearchScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3033,34 +2529,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse$Builder", + "name": "com.google.cloud.geminidataanalytics.v1beta.SearchScope$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -3185,42 +2654,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StreamResponse", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StreamResponse$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StringList", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.StringList$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.StudioDatasourceReference", "queryAllDeclaredConstructors": true, @@ -3275,69 +2708,6 @@ "allDeclaredClasses": true, "allPublicClasses": true }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskState", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskStatus", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskStatus$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, - { - "name": "com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent$Builder", - "queryAllDeclaredConstructors": true, - "queryAllPublicConstructors": true, - "queryAllDeclaredMethods": true, - "allPublicMethods": true, - "allDeclaredClasses": true, - "allPublicClasses": true - }, { "name": "com.google.cloud.geminidataanalytics.v1beta.TextMessage", "queryAllDeclaredConstructors": true, diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientHttpJsonTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientHttpJsonTest.java deleted file mode 100644 index 739a4edc54ea..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientHttpJsonTest.java +++ /dev/null @@ -1,315 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; - -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.geminidataanalytics.v1beta.stub.HttpJsonDataA2AServiceStub; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.Lists; -import com.google.protobuf.Any; -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; -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 DataA2AServiceClientHttpJsonTest { - private static MockHttpService mockService; - private static DataA2AServiceClient client; - - @BeforeClass - public static void startStaticServer() throws IOException { - mockService = - new MockHttpService( - HttpJsonDataA2AServiceStub.getMethodDescriptors(), - DataA2AServiceSettings.getDefaultEndpoint()); - DataA2AServiceSettings settings = - DataA2AServiceSettings.newHttpJsonBuilder() - .setTransportChannelProvider( - DataA2AServiceSettings.defaultHttpJsonTransportProviderBuilder() - .setHttpTransport(mockService) - .build()) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataA2AServiceClient.create(settings); - } - - @AfterClass - public static void stopServer() { - client.close(); - } - - @Before - public void setUp() {} - - @After - public void tearDown() throws Exception { - mockService.reset(); - } - - @Test - public void sendMessageTest() throws Exception { - SendMessageResponse expectedResponse = SendMessageResponse.newBuilder().build(); - mockService.addResponse(expectedResponse); - - String tenant = "projects/project-6353/locations/location-6353/agents/agent-6353"; - A2AMessage message = A2AMessage.newBuilder().build(); - - SendMessageResponse actualResponse = client.sendMessage(tenant, message); - 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 sendMessageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String tenant = "projects/project-6353/locations/location-6353/agents/agent-6353"; - A2AMessage message = A2AMessage.newBuilder().build(); - client.sendMessage(tenant, message); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void sendStreamingMessageTest() throws Exception {} - - @Test - public void sendStreamingMessageExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - } - - @Test - public void getAgentCardTest() throws Exception { - AgentCard expectedResponse = - AgentCard.newBuilder() - .setProtocolVersion("protocolVersion1752828704") - .setName("name3373707") - .setDescription("description-1724546052") - .setUrl("url116079") - .setPreferredTransport("preferredTransport1485147048") - .addAllAdditionalInterfaces(new ArrayList()) - .setProvider(AgentProvider.newBuilder().build()) - .setVersion("version351608024") - .setDocumentationUrl("documentationUrl-1487620011") - .setCapabilities(AgentCapabilities.newBuilder().build()) - .putAllSecuritySchemes(new HashMap()) - .addAllSecurity(new ArrayList()) - .addAllDefaultInputModes(new ArrayList()) - .addAllDefaultOutputModes(new ArrayList()) - .addAllSkills(new ArrayList()) - .setSupportsAuthenticatedExtendedCard(true) - .addAllSignatures(new ArrayList()) - .setIconUrl("iconUrl1638765110") - .build(); - mockService.addResponse(expectedResponse); - - String tenant = "projects/project-6353/locations/location-6353/agents/agent-6353"; - - AgentCard actualResponse = client.getAgentCard(tenant); - 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 getAgentCardExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - String tenant = "projects/project-6353/locations/location-6353/agents/agent-6353"; - client.getAgentCard(tenant); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockService.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().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 listLocationsExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("projects/project-3664") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockService.addResponse(expectedResponse); - - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - - Location actualResponse = client.getLocation(request); - 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 getLocationExceptionTest() throws Exception { - ApiException exception = - ApiExceptionFactory.createException( - new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); - mockService.addException(exception); - - try { - GetLocationRequest request = - GetLocationRequest.newBuilder() - .setName("projects/project-9062/locations/location-9062") - .build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientTest.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientTest.java deleted file mode 100644 index 0c901c44123e..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceClientTest.java +++ /dev/null @@ -1,340 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import static com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient.ListLocationsPagedResponse; - -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.grpc.testing.MockStreamObserver; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StatusCode; -import com.google.cloud.location.GetLocationRequest; -import com.google.cloud.location.ListLocationsRequest; -import com.google.cloud.location.ListLocationsResponse; -import com.google.cloud.location.Location; -import com.google.common.collect.Lists; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Any; -import com.google.protobuf.Struct; -import io.grpc.StatusRuntimeException; -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 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 DataA2AServiceClientTest { - private static MockDataA2AService mockDataA2AService; - private static MockLocations mockLocations; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private DataA2AServiceClient client; - - @BeforeClass - public static void startStaticServer() { - mockDataA2AService = new MockDataA2AService(); - mockLocations = new MockLocations(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), - Arrays.asList(mockDataA2AService, mockLocations)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - DataA2AServiceSettings settings = - DataA2AServiceSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = DataA2AServiceClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void sendMessageTest() throws Exception { - SendMessageResponse expectedResponse = SendMessageResponse.newBuilder().build(); - mockDataA2AService.addResponse(expectedResponse); - - String tenant = "tenant-877336406"; - A2AMessage message = A2AMessage.newBuilder().build(); - - SendMessageResponse actualResponse = client.sendMessage(tenant, message); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataA2AService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SendMessageRequest actualRequest = ((SendMessageRequest) actualRequests.get(0)); - - Assert.assertEquals(tenant, actualRequest.getTenant()); - Assert.assertEquals(message, actualRequest.getMessage()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void sendMessageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataA2AService.addException(exception); - - try { - String tenant = "tenant-877336406"; - A2AMessage message = A2AMessage.newBuilder().build(); - client.sendMessage(tenant, message); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void sendStreamingMessageTest() throws Exception { - StreamResponse expectedResponse = StreamResponse.newBuilder().build(); - mockDataA2AService.addResponse(expectedResponse); - SendMessageRequest request = - SendMessageRequest.newBuilder() - .setMessage(A2AMessage.newBuilder().build()) - .setConfiguration(SendMessageConfiguration.newBuilder().build()) - .setMetadata(Struct.newBuilder().build()) - .setTenant("tenant-877336406") - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - ServerStreamingCallable callable = - client.sendStreamingMessageCallable(); - callable.serverStreamingCall(request, responseObserver); - - List actualResponses = responseObserver.future().get(); - Assert.assertEquals(1, actualResponses.size()); - Assert.assertEquals(expectedResponse, actualResponses.get(0)); - } - - @Test - public void sendStreamingMessageExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataA2AService.addException(exception); - SendMessageRequest request = - SendMessageRequest.newBuilder() - .setMessage(A2AMessage.newBuilder().build()) - .setConfiguration(SendMessageConfiguration.newBuilder().build()) - .setMetadata(Struct.newBuilder().build()) - .setTenant("tenant-877336406") - .build(); - - MockStreamObserver responseObserver = new MockStreamObserver<>(); - - ServerStreamingCallable callable = - client.sendStreamingMessageCallable(); - callable.serverStreamingCall(request, responseObserver); - - try { - List actualResponses = responseObserver.future().get(); - Assert.fail("No exception thrown"); - } catch (ExecutionException e) { - Assert.assertTrue(e.getCause() instanceof InvalidArgumentException); - InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); - Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); - } - } - - @Test - public void getAgentCardTest() throws Exception { - AgentCard expectedResponse = - AgentCard.newBuilder() - .setProtocolVersion("protocolVersion1752828704") - .setName("name3373707") - .setDescription("description-1724546052") - .setUrl("url116079") - .setPreferredTransport("preferredTransport1485147048") - .addAllAdditionalInterfaces(new ArrayList()) - .setProvider(AgentProvider.newBuilder().build()) - .setVersion("version351608024") - .setDocumentationUrl("documentationUrl-1487620011") - .setCapabilities(AgentCapabilities.newBuilder().build()) - .putAllSecuritySchemes(new HashMap()) - .addAllSecurity(new ArrayList()) - .addAllDefaultInputModes(new ArrayList()) - .addAllDefaultOutputModes(new ArrayList()) - .addAllSkills(new ArrayList()) - .setSupportsAuthenticatedExtendedCard(true) - .addAllSignatures(new ArrayList()) - .setIconUrl("iconUrl1638765110") - .build(); - mockDataA2AService.addResponse(expectedResponse); - - String tenant = "tenant-877336406"; - - AgentCard actualResponse = client.getAgentCard(tenant); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockDataA2AService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetAgentCardRequest actualRequest = ((GetAgentCardRequest) actualRequests.get(0)); - - Assert.assertEquals(tenant, actualRequest.getTenant()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getAgentCardExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockDataA2AService.addException(exception); - - try { - String tenant = "tenant-877336406"; - client.getAgentCard(tenant); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listLocationsTest() throws Exception { - Location responsesElement = Location.newBuilder().build(); - ListLocationsResponse expectedResponse = - ListLocationsResponse.newBuilder() - .setNextPageToken("") - .addAllLocations(Arrays.asList(responsesElement)) - .build(); - mockLocations.addResponse(expectedResponse); - - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - ListLocationsPagedResponse pagedListResponse = client.listLocations(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listLocationsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - ListLocationsRequest request = - ListLocationsRequest.newBuilder() - .setName("name3373707") - .setFilter("filter-1274492040") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.listLocations(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getLocationTest() throws Exception { - Location expectedResponse = - Location.newBuilder() - .setName("name3373707") - .setLocationId("locationId1541836720") - .setDisplayName("displayName1714148973") - .putAllLabels(new HashMap()) - .setMetadata(Any.newBuilder().build()) - .build(); - mockLocations.addResponse(expectedResponse); - - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - - Location actualResponse = client.getLocation(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockLocations.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getLocationExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockLocations.addException(exception); - - try { - GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); - client.getLocation(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AServiceImpl.java b/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AServiceImpl.java deleted file mode 100644 index 2785b9968f79..000000000000 --- a/java-geminidataanalytics/google-cloud-geminidataanalytics/src/test/java/com/google/cloud/geminidataanalytics/v1beta/MockDataA2AServiceImpl.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta; - -import com.google.api.core.BetaApi; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceGrpc.DataA2AServiceImplBase; -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 MockDataA2AServiceImpl extends DataA2AServiceImplBase { - private List requests; - private Queue responses; - - public MockDataA2AServiceImpl() { - 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 sendMessage( - SendMessageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SendMessageResponse) { - requests.add(request); - responseObserver.onNext(((SendMessageResponse) 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 SendMessage, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SendMessageResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void sendStreamingMessage( - SendMessageRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof StreamResponse) { - requests.add(request); - responseObserver.onNext(((StreamResponse) 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 SendStreamingMessage, expected %s or" - + " %s", - response == null ? "null" : response.getClass().getName(), - StreamResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getAgentCard( - GetAgentCardRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AgentCard) { - requests.add(request); - responseObserver.onNext(((AgentCard) 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 GetAgentCard, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AgentCard.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceGrpc.java index f95aafac82f5..73d0da6219bd 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentServiceGrpc.java @@ -877,8 +877,7 @@ default void setIamPolicy( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ default void setAgentOpsObservability( @@ -1127,8 +1126,7 @@ public void setIamPolicy( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public void setAgentOpsObservability( @@ -1338,8 +1336,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1532,8 +1529,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1734,8 +1730,7 @@ protected DataAgentServiceFutureStub build( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceGrpc.java deleted file mode 100644 index 74a3bffc2cfa..000000000000 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceGrpc.java +++ /dev/null @@ -1,703 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.geminidataanalytics.v1beta; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - * - * - *
        - * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        - * Data Analytics.
        - * 
        - */ -@io.grpc.stub.annotations.GrpcGenerated -public final class DataA2AServiceGrpc { - - private DataA2AServiceGrpc() {} - - public static final java.lang.String SERVICE_NAME = - "google.cloud.geminidataanalytics.v1beta.DataA2AService"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse> - getSendMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendMessage", - requestType = com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.class, - responseType = com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse> - getSendMessageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse> - getSendMessageMethod; - if ((getSendMessageMethod = DataA2AServiceGrpc.getSendMessageMethod) == null) { - synchronized (DataA2AServiceGrpc.class) { - if ((getSendMessageMethod = DataA2AServiceGrpc.getSendMessageMethod) == null) { - DataA2AServiceGrpc.getSendMessageMethod = - getSendMessageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataA2AServiceMethodDescriptorSupplier("SendMessage")) - .build(); - } - } - } - return getSendMessageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse> - getSendStreamingMessageMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SendStreamingMessage", - requestType = com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.class, - responseType = com.google.cloud.geminidataanalytics.v1beta.StreamResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - public static io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse> - getSendStreamingMessageMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse> - getSendStreamingMessageMethod; - if ((getSendStreamingMessageMethod = DataA2AServiceGrpc.getSendStreamingMessageMethod) - == null) { - synchronized (DataA2AServiceGrpc.class) { - if ((getSendStreamingMessageMethod = DataA2AServiceGrpc.getSendStreamingMessageMethod) - == null) { - DataA2AServiceGrpc.getSendStreamingMessageMethod = - getSendStreamingMessageMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "SendStreamingMessage")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.StreamResponse - .getDefaultInstance())) - .setSchemaDescriptor( - new DataA2AServiceMethodDescriptorSupplier("SendStreamingMessage")) - .build(); - } - } - } - return getSendStreamingMessageMethod; - } - - private static volatile io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest, - com.google.cloud.geminidataanalytics.v1beta.AgentCard> - getGetAgentCardMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetAgentCard", - requestType = com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.class, - responseType = com.google.cloud.geminidataanalytics.v1beta.AgentCard.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest, - com.google.cloud.geminidataanalytics.v1beta.AgentCard> - getGetAgentCardMethod() { - io.grpc.MethodDescriptor< - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest, - com.google.cloud.geminidataanalytics.v1beta.AgentCard> - getGetAgentCardMethod; - if ((getGetAgentCardMethod = DataA2AServiceGrpc.getGetAgentCardMethod) == null) { - synchronized (DataA2AServiceGrpc.class) { - if ((getGetAgentCardMethod = DataA2AServiceGrpc.getGetAgentCardMethod) == null) { - DataA2AServiceGrpc.getGetAgentCardMethod = - getGetAgentCardMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAgentCard")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.cloud.geminidataanalytics.v1beta.AgentCard - .getDefaultInstance())) - .setSchemaDescriptor( - new DataA2AServiceMethodDescriptorSupplier("GetAgentCard")) - .build(); - } - } - } - return getGetAgentCardMethod; - } - - /** Creates a new async stub that supports all call types for the service */ - public static DataA2AServiceStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataA2AServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceStub(channel, callOptions); - } - }; - return DataA2AServiceStub.newStub(factory, channel); - } - - /** Creates a new blocking-style stub that supports all types of calls on the service */ - public static DataA2AServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataA2AServiceBlockingV2Stub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceBlockingV2Stub(channel, callOptions); - } - }; - return DataA2AServiceBlockingV2Stub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static DataA2AServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataA2AServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceBlockingStub(channel, callOptions); - } - }; - return DataA2AServiceBlockingStub.newStub(factory, channel); - } - - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static DataA2AServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public DataA2AServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceFutureStub(channel, callOptions); - } - }; - return DataA2AServiceFutureStub.newStub(factory, channel); - } - - /** - * - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public interface AsyncService { - - /** - * - * - *
        -     * Send a message to the agent. This is a blocking call that will return the
        -     * task once it is completed.
        -     * 
        - */ - default void sendMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSendMessageMethod(), responseObserver); - } - - /** - * - * - *
        -     * SendStreamingMessage is a streaming call that will return a stream of
        -     * task update events until the Task is in an interrupted or terminal state.
        -     * 
        - */ - default void sendStreamingMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSendStreamingMessageMethod(), responseObserver); - } - - /** - * - * - *
        -     * GetAgentCard returns the agent card for the agent.
        -     * 
        - */ - default void getAgentCard( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAgentCardMethod(), responseObserver); - } - } - - /** - * Base class for the server implementation of the service DataA2AService. - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public abstract static class DataA2AServiceImplBase - implements io.grpc.BindableService, AsyncService { - - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return DataA2AServiceGrpc.bindService(this); - } - } - - /** - * A stub to allow clients to do asynchronous rpc calls to service DataA2AService. - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public static final class DataA2AServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private DataA2AServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataA2AServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceStub(channel, callOptions); - } - - /** - * - * - *
        -     * Send a message to the agent. This is a blocking call that will return the
        -     * task once it is completed.
        -     * 
        - */ - public void sendMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSendMessageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
        -     * SendStreamingMessage is a streaming call that will return a stream of
        -     * task update events until the Task is in an interrupted or terminal state.
        -     * 
        - */ - public void sendStreamingMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncServerStreamingCall( - getChannel().newCall(getSendStreamingMessageMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
        -     * GetAgentCard returns the agent card for the agent.
        -     * 
        - */ - public void getAgentCard( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAgentCardMethod(), getCallOptions()), - request, - responseObserver); - } - } - - /** - * A stub to allow clients to do synchronous rpc calls to service DataA2AService. - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public static final class DataA2AServiceBlockingV2Stub - extends io.grpc.stub.AbstractBlockingStub { - private DataA2AServiceBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataA2AServiceBlockingV2Stub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceBlockingV2Stub(channel, callOptions); - } - - /** - * - * - *
        -     * Send a message to the agent. This is a blocking call that will return the
        -     * task once it is completed.
        -     * 
        - */ - public com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse sendMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getSendMessageMethod(), getCallOptions(), request); - } - - /** - * - * - *
        -     * SendStreamingMessage is a streaming call that will return a stream of
        -     * task update events until the Task is in an interrupted or terminal state.
        -     * 
        - */ - @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") - public io.grpc.stub.BlockingClientCall< - ?, com.google.cloud.geminidataanalytics.v1beta.StreamResponse> - sendStreamingMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( - getChannel(), getSendStreamingMessageMethod(), getCallOptions(), request); - } - - /** - * - * - *
        -     * GetAgentCard returns the agent card for the agent.
        -     * 
        - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCard getAgentCard( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest request) - throws io.grpc.StatusException { - return io.grpc.stub.ClientCalls.blockingV2UnaryCall( - getChannel(), getGetAgentCardMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do limited synchronous rpc calls to service DataA2AService. - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public static final class DataA2AServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private DataA2AServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataA2AServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceBlockingStub(channel, callOptions); - } - - /** - * - * - *
        -     * Send a message to the agent. This is a blocking call that will return the
        -     * task once it is completed.
        -     * 
        - */ - public com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse sendMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSendMessageMethod(), getCallOptions(), request); - } - - /** - * - * - *
        -     * SendStreamingMessage is a streaming call that will return a stream of
        -     * task update events until the Task is in an interrupted or terminal state.
        -     * 
        - */ - public java.util.Iterator - sendStreamingMessage( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request) { - return io.grpc.stub.ClientCalls.blockingServerStreamingCall( - getChannel(), getSendStreamingMessageMethod(), getCallOptions(), request); - } - - /** - * - * - *
        -     * GetAgentCard returns the agent card for the agent.
        -     * 
        - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCard getAgentCard( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAgentCardMethod(), getCallOptions(), request); - } - } - - /** - * A stub to allow clients to do ListenableFuture-style rpc calls to service DataA2AService. - * - *
        -   * DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini
        -   * Data Analytics.
        -   * 
        - */ - public static final class DataA2AServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private DataA2AServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected DataA2AServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new DataA2AServiceFutureStub(channel, callOptions); - } - - /** - * - * - *
        -     * Send a message to the agent. This is a blocking call that will return the
        -     * task once it is completed.
        -     * 
        - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse> - sendMessage(com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSendMessageMethod(), getCallOptions()), request); - } - - /** - * - * - *
        -     * GetAgentCard returns the agent card for the agent.
        -     * 
        - */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.cloud.geminidataanalytics.v1beta.AgentCard> - getAgentCard(com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAgentCardMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_SEND_MESSAGE = 0; - private static final int METHODID_SEND_STREAMING_MESSAGE = 1; - private static final int METHODID_GET_AGENT_CARD = 2; - - 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_SEND_MESSAGE: - serviceImpl.sendMessage( - (com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse>) - responseObserver); - break; - case METHODID_SEND_STREAMING_MESSAGE: - serviceImpl.sendStreamingMessage( - (com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest) request, - (io.grpc.stub.StreamObserver< - com.google.cloud.geminidataanalytics.v1beta.StreamResponse>) - responseObserver); - break; - case METHODID_GET_AGENT_CARD: - serviceImpl.getAgentCard( - (com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) 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( - getSendMessageMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse>( - service, METHODID_SEND_MESSAGE))) - .addMethod( - getSendStreamingMessageMethod(), - io.grpc.stub.ServerCalls.asyncServerStreamingCall( - new MethodHandlers< - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse>( - service, METHODID_SEND_STREAMING_MESSAGE))) - .addMethod( - getGetAgentCardMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest, - com.google.cloud.geminidataanalytics.v1beta.AgentCard>( - service, METHODID_GET_AGENT_CARD))) - .build(); - } - - private abstract static class DataA2AServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, - io.grpc.protobuf.ProtoServiceDescriptorSupplier { - DataA2AServiceBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("DataA2AService"); - } - } - - private static final class DataA2AServiceFileDescriptorSupplier - extends DataA2AServiceBaseDescriptorSupplier { - DataA2AServiceFileDescriptorSupplier() {} - } - - private static final class DataA2AServiceMethodDescriptorSupplier - extends DataA2AServiceBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final java.lang.String methodName; - - DataA2AServiceMethodDescriptorSupplier(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 (DataA2AServiceGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = - result = - io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new DataA2AServiceFileDescriptorSupplier()) - .addMethod(getSendMessageMethod()) - .addMethod(getSendStreamingMessageMethod()) - .addMethod(getGetAgentCardMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java index 968817583ddb..b06f28978afb 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataAgentServiceGrpc.java @@ -884,8 +884,7 @@ default void setIamPolicy( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ default void setAgentOpsObservability( @@ -1135,8 +1134,7 @@ public void setIamPolicy( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public void setAgentOpsObservability( @@ -1346,8 +1344,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1541,8 +1538,7 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.longrunning.Operation setAgentOpsObservability( @@ -1747,8 +1743,7 @@ protected DataAgentServiceFutureStub build( * *
              * Enables/Disables required GCP services and configures AgentOps
        -     * observability settings calling the Admin Settings executable node to
        -     * update the AgentOps Observability feature.
        +     * observability settings.
              * 
        */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java index dd61b28a78ad..c1ae728f4fc5 100644 --- a/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java +++ b/java-geminidataanalytics/grpc-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataChatServiceGrpc.java @@ -481,7 +481,7 @@ public interface AsyncService { * *
              * Answers a data question by generating a stream of
        -     * [Message][google.cloud.geminidataanalytics.v1.Message] objects.
        +     * [Message][google.cloud.geminidataanalytics.v1beta.Message] objects.
              * 
        */ default void chat( @@ -641,7 +641,7 @@ protected DataChatServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions * *
              * Answers a data question by generating a stream of
        -     * [Message][google.cloud.geminidataanalytics.v1.Message] objects.
        +     * [Message][google.cloud.geminidataanalytics.v1beta.Message] objects.
              * 
        */ public void chat( @@ -799,7 +799,7 @@ protected DataChatServiceBlockingV2Stub build( * *
              * Answers a data question by generating a stream of
        -     * [Message][google.cloud.geminidataanalytics.v1.Message] objects.
        +     * [Message][google.cloud.geminidataanalytics.v1beta.Message] objects.
              * 
        */ @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") @@ -935,7 +935,7 @@ protected DataChatServiceBlockingStub build( * *
              * Answers a data question by generating a stream of
        -     * [Message][google.cloud.geminidataanalytics.v1.Message] objects.
        +     * [Message][google.cloud.geminidataanalytics.v1beta.Message] objects.
              * 
        */ public java.util.Iterator chat( diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProvider.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java similarity index 57% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProvider.java rename to java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java index 7c888c9197ab..58726c41701a 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProvider.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReference.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/geminidataanalytics/v1/datasource.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.geminidataanalytics.v1; /** * * *
        - * Represents information about the service provider of an agent.
        + * Message representing a reference to a single BigQuery dataset.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentProvider} + * Protobuf type {@code google.cloud.geminidataanalytics.v1.BigQueryDatasetReference} */ @com.google.protobuf.Generated -public final class AgentProvider extends com.google.protobuf.GeneratedMessage +public final class BigQueryDatasetReference extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentProvider) - AgentProviderOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + BigQueryDatasetReferenceOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,59 +43,59 @@ public final class AgentProvider extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "AgentProvider"); + "BigQueryDatasetReference"); } - // Use AgentProvider.newBuilder() to construct. - private AgentProvider(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use BigQueryDatasetReference.newBuilder() to construct. + private BigQueryDatasetReference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private AgentProvider() { - url_ = ""; - organization_ = ""; + private BigQueryDatasetReference() { + projectId_ = ""; + datasetId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_descriptor; + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_fieldAccessorTable + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.class, - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder.class); + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder.class); } - public static final int URL_FIELD_NUMBER = 1; + public static final int PROJECT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; + private volatile java.lang.Object projectId_ = ""; /** * * *
        -   * Optional. The provider's reference url.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The url. + * @return The projectId. */ @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; + 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(); - url_ = s; + projectId_ = s; return s; } } @@ -104,51 +104,51 @@ public java.lang.String getUrl() { * * *
        -   * Optional. The provider's reference url.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for url. + * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + 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); - url_ = b; + projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int ORGANIZATION_FIELD_NUMBER = 2; + public static final int DATASET_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object organization_ = ""; + private volatile java.lang.Object datasetId_ = ""; /** * * *
        -   * Optional. The provider's organization name.
        +   * Required. The dataset ID.
            * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The organization. + * @return The datasetId. */ @java.lang.Override - public java.lang.String getOrganization() { - java.lang.Object ref = organization_; + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - organization_ = s; + datasetId_ = s; return s; } } @@ -157,20 +157,20 @@ public java.lang.String getOrganization() { * * *
        -   * Optional. The provider's organization name.
        +   * Required. The dataset ID.
            * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for organization. + * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getOrganizationBytes() { - java.lang.Object ref = organization_; + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - organization_ = b; + datasetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -191,11 +191,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organization_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, organization_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, datasetId_); } getUnknownFields().writeTo(output); } @@ -206,11 +206,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(organization_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, organization_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, datasetId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,14 +222,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.AgentProvider)) { + if (!(obj instanceof com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.AgentProvider other = - (com.google.cloud.geminidataanalytics.v1beta.AgentProvider) obj; + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference other = + (com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) obj; - if (!getUrl().equals(other.getUrl())) return false; - if (!getOrganization().equals(other.getOrganization())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,80 +241,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + ORGANIZATION_FIELD_NUMBER; - hash = (53 * hash) + getOrganization().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference 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.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( 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.geminidataanalytics.v1beta.AgentProvider parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseDelimitedFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseDelimitedFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider parseFrom( + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -332,7 +332,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.AgentProvider prototype) { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -351,31 +351,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * Represents information about the service provider of an agent.
        +   * Message representing a reference to a single BigQuery dataset.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentProvider} + * Protobuf type {@code google.cloud.geminidataanalytics.v1.BigQueryDatasetReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentProvider) - com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_descriptor; + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_fieldAccessorTable + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.class, - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder.class); + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentProvider.newBuilder() + // Construct using com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -386,25 +386,26 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - url_ = ""; - organization_ = ""; + projectId_ = ""; + datasetId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_descriptor; + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance(); + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider build() { - com.google.cloud.geminidataanalytics.v1beta.AgentProvider result = buildPartial(); + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference build() { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -412,9 +413,9 @@ public com.google.cloud.geminidataanalytics.v1beta.AgentProvider build() { } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentProvider result = - new com.google.cloud.geminidataanalytics.v1beta.AgentProvider(this); + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference buildPartial() { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result = + new com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -422,36 +423,39 @@ public com.google.cloud.geminidataanalytics.v1beta.AgentProvider buildPartial() return result; } - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.AgentProvider result) { + private void buildPartial0( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.url_ = url_; + result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.organization_ = organization_; + result.datasetId_ = datasetId_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentProvider) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentProvider) other); + if (other instanceof com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentProvider other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance()) + public Builder mergeFrom( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference other) { + if (other + == com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getOrganization().isEmpty()) { - organization_ = other.organization_; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; bitField0_ |= 0x00000002; onChanged(); } @@ -483,13 +487,13 @@ public Builder mergeFrom( break; case 10: { - url_ = input.readStringRequireUtf8(); + projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - organization_ = input.readStringRequireUtf8(); + datasetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -512,25 +516,25 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object url_ = ""; + private java.lang.Object projectId_ = ""; /** * * *
        -     * Optional. The provider's reference url.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The url. + * @return The projectId. */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; + 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(); - url_ = s; + projectId_ = s; return s; } else { return (java.lang.String) ref; @@ -541,19 +545,19 @@ public java.lang.String getUrl() { * * *
        -     * Optional. The provider's reference url.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for url. + * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + 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); - url_ = b; + projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -564,19 +568,19 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
        -     * Optional. The provider's reference url.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The url to set. + * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - url_ = value; + projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -586,15 +590,15 @@ public Builder setUrl(java.lang.String value) { * * *
        -     * Optional. The provider's reference url.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -604,44 +608,44 @@ public Builder clearUrl() { * * *
        -     * Optional. The provider's reference url.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for url to set. + * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - url_ = value; + projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object organization_ = ""; + private java.lang.Object datasetId_ = ""; /** * * *
        -     * Optional. The provider's organization name.
        +     * Required. The dataset ID.
              * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The organization. + * @return The datasetId. */ - public java.lang.String getOrganization() { - java.lang.Object ref = organization_; + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - organization_ = s; + datasetId_ = s; return s; } else { return (java.lang.String) ref; @@ -652,19 +656,19 @@ public java.lang.String getOrganization() { * * *
        -     * Optional. The provider's organization name.
        +     * Required. The dataset ID.
              * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for organization. + * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getOrganizationBytes() { - java.lang.Object ref = organization_; + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - organization_ = b; + datasetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -675,19 +679,19 @@ public com.google.protobuf.ByteString getOrganizationBytes() { * * *
        -     * Optional. The provider's organization name.
        +     * Required. The dataset ID.
              * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The organization to set. + * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setOrganization(java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - organization_ = value; + datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -697,15 +701,15 @@ public Builder setOrganization(java.lang.String value) { * * *
        -     * Optional. The provider's organization name.
        +     * Required. The dataset ID.
              * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearOrganization() { - organization_ = getDefaultInstance().getOrganization(); + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -715,43 +719,45 @@ public Builder clearOrganization() { * * *
        -     * Optional. The provider's organization name.
        +     * Required. The dataset ID.
              * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for organization to set. + * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setOrganizationBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - organization_ = value; + datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentProvider) + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentProvider) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentProvider DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) + private static final com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentProvider(); + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference(); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentProvider getDefaultInstance() { + public static com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + 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 AgentProvider parsePartialFrom( + public BigQueryDatasetReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -770,17 +776,18 @@ public AgentProvider 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.geminidataanalytics.v1beta.AgentProvider getDefaultInstanceForType() { + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringListOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java similarity index 51% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringListOrBuilder.java rename to java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java index 694a1b71ab51..4ab3ffb05bf5 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringListOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryDatasetReferenceOrBuilder.java @@ -15,68 +15,66 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/geminidataanalytics/v1/datasource.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.geminidataanalytics.v1; @com.google.protobuf.Generated -public interface StringListOrBuilder +public interface BigQueryDatasetReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.StringList) + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1.BigQueryDatasetReference) com.google.protobuf.MessageOrBuilder { /** * * *
        -   * The list of strings.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * repeated string list = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return A list containing the list. + * @return The projectId. */ - java.util.List getListList(); + java.lang.String getProjectId(); /** * * *
        -   * The list of strings.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * repeated string list = 1; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The count of list. + * @return The bytes for projectId. */ - int getListCount(); + com.google.protobuf.ByteString getProjectIdBytes(); /** * * *
        -   * The list of strings.
        +   * Required. The dataset ID.
            * 
        * - * repeated string list = 1; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param index The index of the element to return. - * @return The list at the given index. + * @return The datasetId. */ - java.lang.String getList(int index); + java.lang.String getDatasetId(); /** * * *
        -   * The list of strings.
        +   * Required. The dataset ID.
            * 
        * - * repeated string list = 1; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param index The index of the value to return. - * @return The bytes of the list at the given index. + * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getListBytes(int index); + com.google.protobuf.ByteString getDatasetIdBytes(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java index 013d3d924b9b..040be7439e7b 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferences.java @@ -73,6 +73,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences.Builder.class); } + private int bitField0_; public static final int TABLE_REFERENCES_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -275,6 +276,95 @@ public int getPropertyGraphReferencesCount() { return propertyGraphReferences_.get(index); } + public static final int SEARCH_SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1.SearchScope searchScope_; + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + @java.lang.Override + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -295,6 +385,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < propertyGraphReferences_.size(); i++) { output.writeMessage(2, propertyGraphReferences_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSearchScope()); + } getUnknownFields().writeTo(output); } @@ -312,6 +405,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 2, propertyGraphReferences_.get(i)); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSearchScope()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -331,6 +427,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTableReferencesList().equals(other.getTableReferencesList())) return false; if (!getPropertyGraphReferencesList().equals(other.getPropertyGraphReferencesList())) return false; + if (hasSearchScope() != other.hasSearchScope()) return false; + if (hasSearchScope()) { + if (!getSearchScope().equals(other.getSearchScope())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -350,6 +450,10 @@ public int hashCode() { hash = (37 * hash) + PROPERTY_GRAPH_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getPropertyGraphReferencesList().hashCode(); } + if (hasSearchScope()) { + hash = (37 * hash) + SEARCH_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getSearchScope().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -483,10 +587,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTableReferencesFieldBuilder(); + internalGetPropertyGraphReferencesFieldBuilder(); + internalGetSearchScopeFieldBuilder(); + } } @java.lang.Override @@ -507,6 +622,11 @@ public Builder clear() { propertyGraphReferencesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } return this; } @@ -569,6 +689,13 @@ private void buildPartialRepeatedFields( private void buildPartial0( com.google.cloud.geminidataanalytics.v1.BigQueryTableReferences result) { int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchScope_ = + searchScopeBuilder_ == null ? searchScope_ : searchScopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -640,6 +767,9 @@ public Builder mergeFrom( } } } + if (other.hasSearchScope()) { + mergeSearchScope(other.getSearchScope()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -695,6 +825,13 @@ public Builder mergeFrom( } break; } // case 18 + case 26: + { + input.readMessage( + internalGetSearchScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1643,6 +1780,310 @@ public Builder removePropertyGraphReferences(int index) { return propertyGraphReferencesBuilder_; } + private com.google.cloud.geminidataanalytics.v1.SearchScope searchScope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder> + searchScopeBuilder_; + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + public com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope() { + if (searchScopeBuilder_ == null) { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } else { + return searchScopeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope(com.google.cloud.geminidataanalytics.v1.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchScope_ = value; + } else { + searchScopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope( + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder builderForValue) { + if (searchScopeBuilder_ == null) { + searchScope_ = builderForValue.build(); + } else { + searchScopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchScope(com.google.cloud.geminidataanalytics.v1.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchScope_ != null + && searchScope_ + != com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance()) { + getSearchScopeBuilder().mergeFrom(value); + } else { + searchScope_ = value; + } + } else { + searchScopeBuilder_.mergeFrom(value); + } + if (searchScope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchScope() { + bitField0_ = (bitField0_ & ~0x00000004); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.SearchScope.Builder getSearchScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder() { + if (searchScopeBuilder_ != null) { + return searchScopeBuilder_.getMessageOrBuilder(); + } else { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance() + : searchScope_; + } + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder> + internalGetSearchScopeFieldBuilder() { + if (searchScopeBuilder_ == null) { + searchScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1.SearchScope, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder>( + getSearchScope(), getParentForChildren(), isClean()); + searchScope_ = null; + } + return searchScopeBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.BigQueryTableReferences) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java index a64f615b933d..bd14f5777139 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/BigQueryTableReferencesOrBuilder.java @@ -183,4 +183,77 @@ com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReference getProper */ com.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceOrBuilder getPropertyGraphReferencesOrBuilder(int index); + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + boolean hasSearchScope(); + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + com.google.cloud.geminidataanalytics.v1.SearchScope getSearchScope(); + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder getSearchScopeOrBuilder(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java index 498246b75904..39b5ed09b6ca 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/ChatRequest.java @@ -87,8 +87,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Unspecified thinking mode, agent will use THINKING mode by default except
        -     * for BigQuery user defaulting to FAST mode by default.
        +     * The default value. For BigQuery and Looker data sources, the agent uses
        +     * FAST. For all other data sources, the agent uses THINKING.
              * 
        * * THINKING_MODE_UNSPECIFIED = 0; @@ -131,8 +131,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Unspecified thinking mode, agent will use THINKING mode by default except
        -     * for BigQuery user defaulting to FAST mode by default.
        +     * The default value. For BigQuery and Looker data sources, the agent uses
        +     * FAST. For all other data sources, the agent uses THINKING.
              * 
        * * THINKING_MODE_UNSPECIFIED = 0; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java index 8896b5f38971..09f7c15b3527 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgent.java @@ -833,7 +833,10 @@ public com.google.protobuf.ByteString getKmsKeyBytes() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -872,7 +875,10 @@ public boolean hasBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -903,17 +909,26 @@ public boolean getBigqueryAgentAnalyticsEnabled() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -945,17 +960,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -990,17 +1014,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3659,7 +3692,10 @@ public Builder setKmsKeyBytes(com.google.protobuf.ByteString value) { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3698,7 +3734,10 @@ public boolean hasBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3737,7 +3776,10 @@ public boolean getBigqueryAgentAnalyticsEnabled() { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3780,7 +3822,10 @@ public Builder setBigqueryAgentAnalyticsEnabled(boolean value) { * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -3817,17 +3862,26 @@ public Builder clearBigqueryAgentAnalyticsEnabled() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3858,17 +3912,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3906,17 +3969,26 @@ public boolean hasBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -3956,17 +4028,26 @@ public Builder setBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4003,17 +4084,26 @@ public Builder setBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4060,17 +4150,26 @@ public Builder mergeBigqueryAgentAnalyticsTable( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4106,17 +4205,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4148,17 +4256,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -4194,17 +4311,26 @@ public Builder clearBigqueryAgentAnalyticsTable() { * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java index 07cb12319ae1..6c4f2041711d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DataAgentOrBuilder.java @@ -508,7 +508,10 @@ java.lang.String getLabelsOrDefault( * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -544,7 +547,10 @@ java.lang.String getLabelsOrDefault( * `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling * this without a table has no effect: no table is created for the agent * and no rows are written. On an agent whose datasource is not BigQuery, - * `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + * `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + * `true` or setting `bigquery_agent_analytics_table` with + * `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + * is checked. * * This setting is independent of the project-level BigQuery Agent Analytics * setting configured through `SetAgentOpsObservability`. An agent does not @@ -568,17 +574,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -607,17 +622,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is @@ -646,17 +670,26 @@ java.lang.String getLabelsOrDefault( * `true`. The Preview enrollment described on that field applies here too. * * The trace table is validated when it is set on `CreateDataAgent`, or when - * it is included in the `update_mask` of an `UpdateDataAgent` call. The + * an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + * writes a field if the field is in `update_mask` or, when `update_mask` is + * omitted, if the field is present in the request, even if its value is + * unchanged. An update that only clears this field is not validated. The * following are rejected with `INVALID_ARGUMENT`: * * * The table must belong to the same project as the agent. * * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not * supported for Looker, Looker Studio or AlloyDB agents. * - * These are validated against the agent as sent in the request. An agent - * that carries no datasource is not validated, and an agent switched to a - * non-BigQuery datasource is not re-validated; in the latter case no trace - * rows are written. + * On `CreateDataAgent`, the datasource is validated against the agent in + * the request. On `UpdateDataAgent`, it is validated against the stored + * agent after applying the update whenever the call writes a table to this + * field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + * an `UpdateDataAgent` call without `update_mask` that carries an unchanged + * `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + * datasource is not BigQuery. An agent that carries no datasource is not + * validated, and an agent switched to a non-BigQuery datasource by an update + * that does neither is not re-validated; in the latter case no trace rows + * are written. * * The destination dataset must already exist and must grant write access to * the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java index bb1bc4d35064..82820cb8d407 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/DatasourceProto.java @@ -52,6 +52,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -111,35 +119,44 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".cloud.geminidataanalytics.v1.StudioDatasourceReferencesH\000\022N\n" + "\006looker\030\003 \001(\0132<.goo" + "gle.cloud.geminidataanalytics.v1.LookerExploreReferencesH\000B\014\n\n" - + "references\"\344\001\n" + + "references\"\262\002\n" + "\027BigQueryTableReferences\022[\n" + "\020table_references\030\001" + " \003(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceB\004\342A\001\001\022l\n" + "\031property_graph_references\030\002 \003(\0132C.google.cl" - + "oud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceB\004\342A\001\001\"\247\001\n" + + "oud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceB\004\342A\001\001\022L\n" + + "\014search_scope\030\003" + + " \001(\01320.google.cloud.geminidataanalytics.v1.SearchScopeB\004\342A\001\001\"\247\001\n" + "\026BigQueryTableReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + "dataset_id\030\003 \001(\tB\004\342A\001\002\022\026\n" + "\010table_id\030\004 \001(\tB\004\342A\001\002\022A\n" + "\006schema\030\006" - + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\"}\n" + + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\"N\n" + + "\030BigQueryDatasetReference\022\030\n\n" + + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + + "dataset_id\030\002 \001(\tB\004\342A\001\002\"\231\001\n" + + "\013SearchScope\022!\n" + + "\023include_project_ids\030\001 \003(\tB\004\342A\001\001\022g\n" + + "\032include_dataset_references\030\002 \003(\0132=" + + ".google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceB\004\342A\001\001\"}\n" + "\032StudioDatasourceReferences\022_\n" - + "\021studio_references\030\002 \003(\0132>.google.cloud.geminidataanal" - + "ytics.v1.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + + "\021studio_references\030\002" + + " \003(\0132>.google.cloud.geminidataanalytics.v1.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + "\031StudioDatasourceReference\022\033\n\r" + "datasource_id\030\001 \001(\tB\004\342A\001\002\"x\n" + "\027LookerExploreReferences\022]\n" - + "\022explore_references\030\001 \003(\0132;.goog" - + "le.cloud.geminidataanalytics.v1.LookerExploreReferenceB\004\342A\001\002\"\241\002\n" + + "\022explore_references\030\001 \003(\0132;.google.clo" + + "ud.geminidataanalytics.v1.LookerExploreReferenceB\004\342A\001\002\"\241\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022f\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132>.g" - + "oogle.cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\000\022\032\n" + + " \001(\0132>.google." + + "cloud.geminidataanalytics.v1.PrivateLookerInstanceInfoH\000\022\032\n" + "\014lookml_model\030\004 \001(\tB\004\342A\001\002\022\025\n" + "\007explore\030\005 \001(\tB\004\342A\001\002\022A\n" - + "\006schema\030\010" - + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001B\n\n" + + "\006schema\030\010 " + + "\001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001B\n\n" + "\010instance\"u\n" + "\036BigQueryPropertyGraphReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" @@ -149,27 +166,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022looker_instance_id\030\001 \001(\t\022\036\n" + "\026service_directory_name\030\002 \001(\t\"\346\003\n\n" + "Datasource\022_\n" - + "\030bigquery_table_reference\030\001" - + " \001(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001 " + + "\001(\0132;.google.cloud.geminidataanalytics.v1.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022_\n" - + "\030looker_explore_reference\030\004 \001(\0132;.google.cloud.gemini" - + "dataanalytics.v1.LookerExploreReferenceH\000\022p\n" - + "!bigquery_property_graph_reference\030\020" - + " \001(\0132C.google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\000\022A\n" + + "\030looker_explore_reference\030\004" + + " \001(\0132;.google.cloud.geminidataanalytics.v1.LookerExploreReferenceH\000\022p\n" + + "!bigquery_property_graph_reference\030\020 \001(\0132C" + + ".google.cloud.geminidataanalytics.v1.BigQueryPropertyGraphReferenceH\000\022A\n" + "\006schema\030\007" + " \001(\0132+.google.cloud.geminidataanalytics.v1.SchemaB\004\342A\001\001\0224\n\r" + "struct_schema\030\n" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\013\n" + "\treference\"\365\001\n" + "\006Schema\022@\n" - + "\006fields\030\001 \003(\0132*.g" - + "oogle.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\031\n" + + "\006fields\030\001 \003(\0132*.google." + + "cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\031\n" + "\013description\030\002 \001(\tB\004\342A\001\001\022\026\n" + "\010synonyms\030\003 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\004 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\005 \001(\tB\004\342A\001\001\022F\n" - + "\007filters\030\006 \003" - + "(\0132/.google.cloud.geminidataanalytics.v1.DataFilterB\004\342A\001\001\"\237\002\n" + + "\007filters\030\006 \003(\0132/.g" + + "oogle.cloud.geminidataanalytics.v1.DataFilterB\004\342A\001\001\"\237\002\n" + "\005Field\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\001\022\022\n" + "\004type\030\002 \001(\tB\004\342A\001\001\022\031\n" @@ -178,8 +195,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\006 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\007 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\010 \001(\tB\004\342A\001\001\022C\n" - + "\tsubfields\030\t" - + " \003(\0132*.google.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\026\n" + + "\tsubfields\030\t \003(\0132" + + "*.google.cloud.geminidataanalytics.v1.FieldB\004\342A\001\001\022\026\n" + "\010category\030\n" + " \001(\tB\004\342A\001\001\022\032\n" + "\014value_format\030\013 \001(\tB\004\342A\001\001\"\177\n\n" @@ -191,11 +208,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016DataFilterType\022 \n" + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + "ALWAYS_FILTER\020\001B\214\002\n" - + "\'com.google.cloud.geminidataanalytics.v1B\017Datasou" - + "rceProtoP\001ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;" - + "geminidataanalyticspb\252\002#Google.Cloud.Gem" - + "iniDataAnalytics.V1\312\002#Google\\Cloud\\Gemin" - + "iDataAnalytics\\V1\352\002&Google::Cloud::GeminiDataAnalytics::V1b\006proto3" + + "\'com.google.cloud.geminidataanalytics.v1B\017DatasourcePro" + + "toP\001ZYcloud.google.com/go/geminidataanalytics/apiv1/geminidataanalyticspb;gemini" + + "dataanalyticspb\252\002#Google.Cloud.GeminiDat" + + "aAnalytics.V1\312\002#Google\\Cloud\\GeminiDataA" + + "nalytics\\V1\352\002&Google::Cloud::GeminiDataAnalytics::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -218,7 +235,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReferences_descriptor, new java.lang.String[] { - "TableReferences", "PropertyGraphReferences", + "TableReferences", "PropertyGraphReferences", "SearchScope", }); internal_static_google_cloud_geminidataanalytics_v1_BigQueryTableReference_descriptor = getDescriptor().getMessageType(2); @@ -228,8 +245,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ProjectId", "DatasetId", "TableId", "Schema", }); - internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor = + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1_BigQueryDatasetReference_descriptor, + new java.lang.String[] { + "ProjectId", "DatasetId", + }); + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor, + new java.lang.String[] { + "IncludeProjectIds", "IncludeDatasetReferences", + }); + internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReferences_descriptor, @@ -237,7 +270,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StudioReferences", }); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_StudioDatasourceReference_descriptor, @@ -245,7 +278,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasourceId", }); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReferences_descriptor, @@ -253,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExploreReferences", }); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_LookerExploreReference_descriptor, @@ -266,7 +299,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", }); internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_BigQueryPropertyGraphReference_descriptor, @@ -274,7 +307,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "PropertyGraphId", }); internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_PrivateLookerInstanceInfo_descriptor, @@ -282,7 +315,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LookerInstanceId", "ServiceDirectoryName", }); internal_static_google_cloud_geminidataanalytics_v1_Datasource_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_geminidataanalytics_v1_Datasource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Datasource_descriptor, @@ -296,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_geminidataanalytics_v1_Schema_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_geminidataanalytics_v1_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Schema_descriptor, @@ -304,7 +337,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Fields", "Description", "Synonyms", "Tags", "DisplayName", "Filters", }); internal_static_google_cloud_geminidataanalytics_v1_Field_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_geminidataanalytics_v1_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_Field_descriptor, @@ -321,7 +354,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValueFormat", }); internal_static_google_cloud_geminidataanalytics_v1_DataFilter_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_geminidataanalytics_v1_DataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1_DataFilter_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java new file mode 100644 index 000000000000..8062c6a730ef --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScope.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +/** + * + * + *
        + * Message representing filters to apply to search over BigQuery tables.
        + *
        + * At least one of `include_project_ids` or `include_dataset_references` must be
        + * populated with non-blank identifiers. Tables matching either field are
        + * included, so the two fields are unioned (OR-ed) rather than intersected.
        + *
        + * Note: `SearchScope` is only supported for standalone conversations
        + * (`ChatRequest.inline_context` or
        + * `ClientManagedResourceContext.inline_context`) and is not supported in
        + * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        + * 
        + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.SearchScope} + */ +@com.google.protobuf.Generated +public final class SearchScope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1.SearchScope) + SearchScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchScope"); + } + + // Use SearchScope.newBuilder() to construct. + private SearchScope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchScope() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeDatasetReferences_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.SearchScope.class, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder.class); + } + + public static final int INCLUDE_PROJECT_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + return includeProjectIds_; + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + public static final int INCLUDE_DATASET_REFERENCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + includeDatasetReferences_; + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludeDatasetReferencesList() { + return includeDatasetReferences_; + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + return includeDatasetReferences_; + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIncludeDatasetReferencesCount() { + return includeDatasetReferences_.size(); + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + return includeDatasetReferences_.get(index); + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + return includeDatasetReferences_.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 < includeProjectIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, includeProjectIds_.getRaw(i)); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + output.writeMessage(2, includeDatasetReferences_.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 < includeProjectIds_.size(); i++) { + dataSize += computeStringSizeNoTag(includeProjectIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeProjectIdsList().size(); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, includeDatasetReferences_.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.geminidataanalytics.v1.SearchScope)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1.SearchScope other = + (com.google.cloud.geminidataanalytics.v1.SearchScope) obj; + + if (!getIncludeProjectIdsList().equals(other.getIncludeProjectIdsList())) return false; + if (!getIncludeDatasetReferencesList().equals(other.getIncludeDatasetReferencesList())) + 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 (getIncludeProjectIdsCount() > 0) { + hash = (37 * hash) + INCLUDE_PROJECT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeProjectIdsList().hashCode(); + } + if (getIncludeDatasetReferencesCount() > 0) { + hash = (37 * hash) + INCLUDE_DATASET_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeDatasetReferencesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope 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.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + 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.geminidataanalytics.v1.SearchScope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.geminidataanalytics.v1.SearchScope prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Message representing filters to apply to search over BigQuery tables.
        +   *
        +   * At least one of `include_project_ids` or `include_dataset_references` must be
        +   * populated with non-blank identifiers. Tables matching either field are
        +   * included, so the two fields are unioned (OR-ed) rather than intersected.
        +   *
        +   * Note: `SearchScope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent].
        +   * 
        + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1.SearchScope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1.SearchScope) + com.google.cloud.geminidataanalytics.v1.SearchScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1.SearchScope.class, + com.google.cloud.geminidataanalytics.v1.SearchScope.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1.SearchScope.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + } else { + includeDatasetReferences_ = null; + includeDatasetReferencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1_SearchScope_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope build() { + com.google.cloud.geminidataanalytics.v1.SearchScope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1.SearchScope buildPartial() { + com.google.cloud.geminidataanalytics.v1.SearchScope result = + new com.google.cloud.geminidataanalytics.v1.SearchScope(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1.SearchScope result) { + if (includeDatasetReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + java.util.Collections.unmodifiableList(includeDatasetReferences_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includeDatasetReferences_ = includeDatasetReferences_; + } else { + result.includeDatasetReferences_ = includeDatasetReferencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1.SearchScope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + includeProjectIds_.makeImmutable(); + result.includeProjectIds_ = includeProjectIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1.SearchScope) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1.SearchScope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1.SearchScope other) { + if (other == com.google.cloud.geminidataanalytics.v1.SearchScope.getDefaultInstance()) + return this; + if (!other.includeProjectIds_.isEmpty()) { + if (includeProjectIds_.isEmpty()) { + includeProjectIds_ = other.includeProjectIds_; + bitField0_ |= 0x00000001; + } else { + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.addAll(other.includeProjectIds_); + } + onChanged(); + } + if (includeDatasetReferencesBuilder_ == null) { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferences_.isEmpty()) { + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.addAll(other.includeDatasetReferences_); + } + onChanged(); + } + } else { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferencesBuilder_.isEmpty()) { + includeDatasetReferencesBuilder_.dispose(); + includeDatasetReferencesBuilder_ = null; + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + includeDatasetReferencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIncludeDatasetReferencesFieldBuilder() + : null; + } else { + includeDatasetReferencesBuilder_.addAllMessages(other.includeDatasetReferences_); + } + } + } + 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(); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(s); + break; + } // case 10 + case 18: + { + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.parser(), + extensionRegistry); + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(m); + } else { + includeDatasetReferencesBuilder_.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 com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeProjectIdsIsMutable() { + if (!includeProjectIds_.isModifiable()) { + includeProjectIds_ = new com.google.protobuf.LazyStringArrayList(includeProjectIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + includeProjectIds_.makeImmutable(); + return includeProjectIds_; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeProjectIds to set. + * @return This builder for chaining. + */ + public Builder setIncludeProjectIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeProjectIds(java.lang.Iterable values) { + ensureIncludeProjectIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeProjectIds() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + includeDatasetReferences_ = java.util.Collections.emptyList(); + + private void ensureIncludeDatasetReferencesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference>( + includeDatasetReferences_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + includeDatasetReferencesBuilder_; + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeDatasetReferencesList() { + if (includeDatasetReferencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } else { + return includeDatasetReferencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIncludeDatasetReferencesCount() { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.size(); + } else { + return includeDatasetReferencesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIncludeDatasetReferences( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference> + values) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeDatasetReferences_); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeDatasetReferences() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + includeDatasetReferencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.remove(index); + onChanged(); + } else { + includeDatasetReferencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + getIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + if (includeDatasetReferencesBuilder_ != null) { + return includeDatasetReferencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder() { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeDatasetReferencesBuilderList() { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + internalGetIncludeDatasetReferencesFieldBuilder() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder>( + includeDatasetReferences_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + includeDatasetReferences_ = null; + } + return includeDatasetReferencesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1.SearchScope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1.SearchScope) + private static final com.google.cloud.geminidataanalytics.v1.SearchScope DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1.SearchScope(); + } + + public static com.google.cloud.geminidataanalytics.v1.SearchScope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.geminidataanalytics.v1.SearchScope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java new file mode 100644 index 000000000000..d837f55954f6 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/java/com/google/cloud/geminidataanalytics/v1/SearchScopeOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1; + +@com.google.protobuf.Generated +public interface SearchScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1.SearchScope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + java.util.List getIncludeProjectIdsList(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + int getIncludeProjectIdsCount(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + java.lang.String getIncludeProjectIds(int index); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIncludeDatasetReferencesList(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReference getIncludeDatasetReferences( + int index); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIncludeDatasetReferencesCount(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto index a5cc8d5f524a..691a60b34bc9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent.proto @@ -128,7 +128,10 @@ message DataAgent { // `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling // this without a table has no effect: no table is created for the agent // and no rows are written. On an agent whose datasource is not BigQuery, - // `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + // `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + // `true` or setting `bigquery_agent_analytics_table` with + // `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + // is checked. // // This setting is independent of the project-level BigQuery Agent Analytics // setting configured through `SetAgentOpsObservability`. An agent does not @@ -141,17 +144,26 @@ message DataAgent { // `true`. The Preview enrollment described on that field applies here too. // // The trace table is validated when it is set on `CreateDataAgent`, or when - // it is included in the `update_mask` of an `UpdateDataAgent` call. The + // an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + // writes a field if the field is in `update_mask` or, when `update_mask` is + // omitted, if the field is present in the request, even if its value is + // unchanged. An update that only clears this field is not validated. The // following are rejected with `INVALID_ARGUMENT`: // // * The table must belong to the same project as the agent. // * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not // supported for Looker, Looker Studio or AlloyDB agents. // - // These are validated against the agent as sent in the request. An agent - // that carries no datasource is not validated, and an agent switched to a - // non-BigQuery datasource is not re-validated; in the latter case no trace - // rows are written. + // On `CreateDataAgent`, the datasource is validated against the agent in + // the request. On `UpdateDataAgent`, it is validated against the stored + // agent after applying the update whenever the call writes a table to this + // field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + // an `UpdateDataAgent` call without `update_mask` that carries an unchanged + // `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + // datasource is not BigQuery. An agent that carries no datasource is not + // validated, and an agent switched to a non-BigQuery datasource by an update + // that does neither is not re-validated; in the latter case no trace rows + // are written. // // The destination dataset must already exist and must grant write access to // the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto index 30d7a421b9bd..f22beb081387 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_agent_service.proto @@ -158,8 +158,7 @@ service DataAgentService { } // Enables/Disables required GCP services and configures AgentOps - // observability settings calling the Admin Settings executable node to - // update the AgentOps Observability feature. + // observability settings. rpc SetAgentOpsObservability(SetAgentOpsObservabilityRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto index 4b10d9fa79f8..673611388b97 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/data_chat_service.proto @@ -160,8 +160,8 @@ message StorageMessage { message ChatRequest { // Mode of thinking for the agent. enum ThinkingMode { - // Unspecified thinking mode, agent will use THINKING mode by default except - // for BigQuery user defaulting to FAST mode by default. + // The default value. For BigQuery and Looker data sources, the agent uses + // FAST. For all other data sources, the agent uses THINKING. THINKING_MODE_UNSPECIFIED = 0; // Fast mode, answers quickly. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto index 67c31f51cee7..e134a22fac84 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1/src/main/proto/google/cloud/geminidataanalytics/v1/datasource.proto @@ -68,6 +68,19 @@ message BigQueryTableReferences { // refer to the same resource. repeated BigQueryPropertyGraphReference property_graph_references = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Search over BigQuery resources to discover most relevant tables + // to the query. + // + // When set, at least one of `include_project_ids` or + // `include_dataset_references` must be populated with non-blank identifiers. + // Matches from the two fields are unioned (OR-ed). + // + // Note: `search_scope` is only supported for standalone conversations + // (`ChatRequest.inline_context` or + // `ClientManagedResourceContext.inline_context`) and is not supported in + // [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent]. + SearchScope search_scope = 3 [(google.api.field_behavior) = OPTIONAL]; } // Message representing a reference to a single BigQuery table. @@ -85,6 +98,35 @@ message BigQueryTableReference { Schema schema = 6 [(google.api.field_behavior) = OPTIONAL]; } +// Message representing a reference to a single BigQuery dataset. +message BigQueryDatasetReference { + // Required. The project ID that the dataset belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The dataset ID. + string dataset_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing filters to apply to search over BigQuery tables. +// +// At least one of `include_project_ids` or `include_dataset_references` must be +// populated with non-blank identifiers. Tables matching either field are +// included, so the two fields are unioned (OR-ed) rather than intersected. +// +// Note: `SearchScope` is only supported for standalone conversations +// (`ChatRequest.inline_context` or +// `ClientManagedResourceContext.inline_context`) and is not supported in +// [DataAgent][google.cloud.geminidataanalytics.v1.DataAgent]. +message SearchScope { + // Optional. The BigQuery project ids to search over. + repeated string include_project_ids = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The BigQuery dataset references to search over. + repeated BigQueryDatasetReference include_dataset_references = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Message representing references to Looker Studio datasources. message StudioDatasourceReferences { // Optional. The references to the studio datasources. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifact.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifact.java deleted file mode 100644 index c85656acb4d0..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifact.java +++ /dev/null @@ -1,2126 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * A2AArtifact is the container for task completed results.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2AArtifact} - */ -@com.google.protobuf.Generated -public final class A2AArtifact extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.A2AArtifact) - A2AArtifactOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "A2AArtifact"); - } - - // Use A2AArtifact.newBuilder() to construct. - private A2AArtifact(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private A2AArtifact() { - artifactId_ = ""; - name_ = ""; - description_ = ""; - parts_ = java.util.Collections.emptyList(); - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.class, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder.class); - } - - private int bitField0_; - public static final int ARTIFACT_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object artifactId_ = ""; - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the artifact.
        -   * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The artifactId. - */ - @java.lang.Override - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the artifact.
        -   * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for artifactId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
        -   * Optional. A human readable name for the artifact.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A human readable name for the artifact.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DESCRIPTION_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. A human readable description of the artifact, optional.
        -   * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A human readable description of the artifact, optional.
        -   * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int PARTS_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private java.util.List parts_; - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getPartsList() { - return parts_; - } - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getPartsOrBuilderList() { - return parts_; - } - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getPartsCount() { - return parts_.size(); - } - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Part getParts(int index) { - return parts_.get(index); - } - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getPartsOrBuilder(int index) { - return parts_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - public static final int EXTENSIONS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList extensions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - public com.google.protobuf.ProtocolStringList getExtensionsList() { - return extensions_; - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - public int getExtensionsCount() { - return extensions_.size(); - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - public java.lang.String getExtensions(int index) { - return extensions_.get(index); - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - public com.google.protobuf.ByteString getExtensionsBytes(int index) { - return extensions_.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.GeneratedMessage.isStringEmpty(artifactId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, artifactId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); - } - for (int i = 0; i < parts_.size(); i++) { - output.writeMessage(5, parts_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getMetadata()); - } - for (int i = 0; i < extensions_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, extensions_.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.GeneratedMessage.isStringEmpty(artifactId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, artifactId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); - } - for (int i = 0; i < parts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, parts_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - { - int dataSize = 0; - for (int i = 0; i < extensions_.size(); i++) { - dataSize += computeStringSizeNoTag(extensions_.getRaw(i)); - } - size += dataSize; - size += 1 * getExtensionsList().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.geminidataanalytics.v1beta.A2AArtifact)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact other = - (com.google.cloud.geminidataanalytics.v1beta.A2AArtifact) obj; - - if (!getArtifactId().equals(other.getArtifactId())) return false; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getPartsList().equals(other.getPartsList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getExtensionsList().equals(other.getExtensionsList())) 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) + ARTIFACT_ID_FIELD_NUMBER; - hash = (53 * hash) + getArtifactId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getPartsCount() > 0) { - hash = (37 * hash) + PARTS_FIELD_NUMBER; - hash = (53 * hash) + getPartsList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getExtensionsCount() > 0) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact 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.geminidataanalytics.v1beta.A2AArtifact parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - 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.geminidataanalytics.v1beta.A2AArtifact parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.A2AArtifact prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * A2AArtifact is the container for task completed results.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2AArtifact} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.A2AArtifact) - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.class, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPartsFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - artifactId_ = ""; - name_ = ""; - description_ = ""; - if (partsBuilder_ == null) { - parts_ = java.util.Collections.emptyList(); - } else { - parts_ = null; - partsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact build() { - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact result = - new com.google.cloud.geminidataanalytics.v1beta.A2AArtifact(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact result) { - if (partsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - parts_ = java.util.Collections.unmodifiableList(parts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.parts_ = parts_; - } else { - result.parts_ = partsBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.artifactId_ = artifactId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000010) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - extensions_.makeImmutable(); - result.extensions_ = extensions_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.A2AArtifact) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.A2AArtifact) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance()) - return this; - if (!other.getArtifactId().isEmpty()) { - artifactId_ = other.artifactId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (partsBuilder_ == null) { - if (!other.parts_.isEmpty()) { - if (parts_.isEmpty()) { - parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensurePartsIsMutable(); - parts_.addAll(other.parts_); - } - onChanged(); - } - } else { - if (!other.parts_.isEmpty()) { - if (partsBuilder_.isEmpty()) { - partsBuilder_.dispose(); - partsBuilder_ = null; - parts_ = other.parts_; - bitField0_ = (bitField0_ & ~0x00000008); - partsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetPartsFieldBuilder() - : null; - } else { - partsBuilder_.addAllMessages(other.parts_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.extensions_.isEmpty()) { - if (extensions_.isEmpty()) { - extensions_ = other.extensions_; - bitField0_ |= 0x00000020; - } else { - ensureExtensionsIsMutable(); - extensions_.addAll(other.extensions_); - } - 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: - { - artifactId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 26: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 26 - case 34: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 34 - case 42: - { - com.google.cloud.geminidataanalytics.v1beta.Part m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.Part.parser(), - extensionRegistry); - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - parts_.add(m); - } else { - partsBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExtensionsIsMutable(); - extensions_.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 bitField0_; - - private java.lang.Object artifactId_ = ""; - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the artifact.
        -     * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The artifactId. - */ - public java.lang.String getArtifactId() { - java.lang.Object ref = artifactId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - artifactId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the artifact.
        -     * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for artifactId. - */ - public com.google.protobuf.ByteString getArtifactIdBytes() { - java.lang.Object ref = artifactId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - artifactId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the artifact.
        -     * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The artifactId to set. - * @return This builder for chaining. - */ - public Builder setArtifactId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - artifactId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the artifact.
        -     * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearArtifactId() { - artifactId_ = getDefaultInstance().getArtifactId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the artifact.
        -     * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for artifactId to set. - * @return This builder for chaining. - */ - public Builder setArtifactIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - artifactId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - - /** - * - * - *
        -     * Optional. A human readable name for the artifact.
        -     * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the artifact.
        -     * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the artifact.
        -     * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - /** - * - * - *
        -     * Optional. A human readable name for the artifact.
        -     * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable name for the artifact.
        -     * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 java.lang.Object description_ = ""; - - /** - * - * - *
        -     * Optional. A human readable description of the artifact, optional.
        -     * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable description of the artifact, optional.
        -     * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable description of the artifact, optional.
        -     * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable description of the artifact, optional.
        -     * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable description of the artifact, optional.
        -     * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - private java.util.List parts_ = - java.util.Collections.emptyList(); - - private void ensurePartsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - parts_ = new java.util.ArrayList(parts_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> - partsBuilder_; - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getPartsList() { - if (partsBuilder_ == null) { - return java.util.Collections.unmodifiableList(parts_); - } else { - return partsBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getPartsCount() { - if (partsBuilder_ == null) { - return parts_.size(); - } else { - return partsBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part getParts(int index) { - if (partsBuilder_ == null) { - return parts_.get(index); - } else { - return partsBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParts(int index, com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (partsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartsIsMutable(); - parts_.set(index, value); - onChanged(); - } else { - partsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setParts( - int index, com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - parts_.set(index, builderForValue.build()); - onChanged(); - } else { - partsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParts(com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (partsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartsIsMutable(); - parts_.add(value); - onChanged(); - } else { - partsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParts(int index, com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (partsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePartsIsMutable(); - parts_.add(index, value); - onChanged(); - } else { - partsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParts( - com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - parts_.add(builderForValue.build()); - onChanged(); - } else { - partsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addParts( - int index, com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - parts_.add(index, builderForValue.build()); - onChanged(); - } else { - partsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllParts( - java.lang.Iterable values) { - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, parts_); - onChanged(); - } else { - partsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearParts() { - if (partsBuilder_ == null) { - parts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - partsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeParts(int index) { - if (partsBuilder_ == null) { - ensurePartsIsMutable(); - parts_.remove(index); - onChanged(); - } else { - partsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder getPartsBuilder(int index) { - return internalGetPartsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getPartsOrBuilder(int index) { - if (partsBuilder_ == null) { - return parts_.get(index); - } else { - return partsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getPartsOrBuilderList() { - if (partsBuilder_ != null) { - return partsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(parts_); - } - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder addPartsBuilder() { - return internalGetPartsFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder addPartsBuilder(int index) { - return internalGetPartsFieldBuilder() - .addBuilder(index, com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. The content of the artifact.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getPartsBuilderList() { - return internalGetPartsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> - internalGetPartsFieldBuilder() { - if (partsBuilder_ == null) { - partsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder>( - parts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - parts_ = null; - } - return partsBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000010); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Optional metadata included with the artifact.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.LazyStringArrayList extensions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureExtensionsIsMutable() { - if (!extensions_.isModifiable()) { - extensions_ = new com.google.protobuf.LazyStringArrayList(extensions_); - } - bitField0_ |= 0x00000020; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - public com.google.protobuf.ProtocolStringList getExtensionsList() { - extensions_.makeImmutable(); - return extensions_; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - public int getExtensionsCount() { - return extensions_.size(); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - public java.lang.String getExtensions(int index) { - return extensions_.get(index); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - public com.google.protobuf.ByteString getExtensionsBytes(int index) { - return extensions_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The extensions to set. - * @return This builder for chaining. - */ - public Builder setExtensions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.set(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The extensions to add. - * @return This builder for chaining. - */ - public Builder addExtensions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The extensions to add. - * @return This builder for chaining. - */ - public Builder addAllExtensions(java.lang.Iterable values) { - ensureExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearExtensions() { - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Artifact.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the extensions to add. - * @return This builder for chaining. - */ - public Builder addExtensionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureExtensionsIsMutable(); - extensions_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.A2AArtifact) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.A2AArtifact) - private static final com.google.cloud.geminidataanalytics.v1beta.A2AArtifact DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.A2AArtifact(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public A2AArtifact parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.A2AArtifact getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifactOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifactOrBuilder.java deleted file mode 100644 index a95dba0289a9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AArtifactOrBuilder.java +++ /dev/null @@ -1,267 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface A2AArtifactOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.A2AArtifact) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the artifact.
        -   * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The artifactId. - */ - java.lang.String getArtifactId(); - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the artifact.
        -   * 
        - * - * string artifact_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for artifactId. - */ - com.google.protobuf.ByteString getArtifactIdBytes(); - - /** - * - * - *
        -   * Optional. A human readable name for the artifact.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
        -   * Optional. A human readable name for the artifact.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
        -   * Optional. A human readable description of the artifact, optional.
        -   * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. A human readable description of the artifact, optional.
        -   * 
        - * - * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getPartsList(); - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.Part getParts(int index); - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getPartsCount(); - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getPartsOrBuilderList(); - - /** - * - * - *
        -   * Optional. The content of the artifact.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part parts = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getPartsOrBuilder(int index); - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata included with the artifact.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - java.util.List getExtensionsList(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - int getExtensionsCount(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - java.lang.String getExtensions(int index); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Artifact.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - com.google.protobuf.ByteString getExtensionsBytes(int index); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessage.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessage.java deleted file mode 100644 index af32167130e8..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessage.java +++ /dev/null @@ -1,2299 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * A2AMessage is one unit of communication between client and server.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2AMessage} - */ -@com.google.protobuf.Generated -public final class A2AMessage extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.A2AMessage) - A2AMessageOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "A2AMessage"); - } - - // Use A2AMessage.newBuilder() to construct. - private A2AMessage(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private A2AMessage() { - messageId_ = ""; - contextId_ = ""; - taskId_ = ""; - role_ = 0; - content_ = java.util.Collections.emptyList(); - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.class, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder.class); - } - - private int bitField0_; - public static final int MESSAGE_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object messageId_ = ""; - - /** - * - * - *
        -   * Optional. The unique identifier (e.g. UUID) of the message.
        -   * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The messageId. - */ - @java.lang.Override - public java.lang.String getMessageId() { - java.lang.Object ref = messageId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - messageId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The unique identifier (e.g. UUID) of the message.
        -   * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for messageId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMessageIdBytes() { - java.lang.Object ref = messageId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - messageId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTEXT_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object contextId_ = ""; - - /** - * - * - *
        -   * Optional. The context id of the message.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - @java.lang.Override - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The context id of the message.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TASK_ID_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object taskId_ = ""; - - /** - * - * - *
        -   * Optional. The task id of the message.
        -   * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - @java.lang.Override - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The task id of the message.
        -   * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLE_FIELD_NUMBER = 4; - private int role_ = 0; - - /** - * - * - *
        -   * Optional. A role for the message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for role. - */ - @java.lang.Override - public int getRoleValue() { - return role_; - } - - /** - * - * - *
        -   * Optional. A role for the message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The role. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Role getRole() { - com.google.cloud.geminidataanalytics.v1beta.Role result = - com.google.cloud.geminidataanalytics.v1beta.Role.forNumber(role_); - return result == null ? com.google.cloud.geminidataanalytics.v1beta.Role.UNRECOGNIZED : result; - } - - public static final int CONTENT_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private java.util.List content_; - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getContentList() { - return content_; - } - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getContentOrBuilderList() { - return content_; - } - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getContentCount() { - return content_.size(); - } - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Part getContent(int index) { - return content_.get(index); - } - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getContentOrBuilder(int index) { - return content_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - public static final int EXTENSIONS_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList extensions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - public com.google.protobuf.ProtocolStringList getExtensionsList() { - return extensions_; - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - public int getExtensionsCount() { - return extensions_.size(); - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - public java.lang.String getExtensions(int index) { - return extensions_.get(index); - } - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - public com.google.protobuf.ByteString getExtensionsBytes(int index) { - return extensions_.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.GeneratedMessage.isStringEmpty(messageId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, messageId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, taskId_); - } - if (role_ != com.google.cloud.geminidataanalytics.v1beta.Role.ROLE_UNSPECIFIED.getNumber()) { - output.writeEnum(4, role_); - } - for (int i = 0; i < content_.size(); i++) { - output.writeMessage(5, content_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(6, getMetadata()); - } - for (int i = 0; i < extensions_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, extensions_.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.GeneratedMessage.isStringEmpty(messageId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, messageId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, taskId_); - } - if (role_ != com.google.cloud.geminidataanalytics.v1beta.Role.ROLE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, role_); - } - for (int i = 0; i < content_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, content_.get(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - { - int dataSize = 0; - for (int i = 0; i < extensions_.size(); i++) { - dataSize += computeStringSizeNoTag(extensions_.getRaw(i)); - } - size += dataSize; - size += 1 * getExtensionsList().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.geminidataanalytics.v1beta.A2AMessage)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.A2AMessage other = - (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) obj; - - if (!getMessageId().equals(other.getMessageId())) return false; - if (!getContextId().equals(other.getContextId())) return false; - if (!getTaskId().equals(other.getTaskId())) return false; - if (role_ != other.role_) return false; - if (!getContentList().equals(other.getContentList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getExtensionsList().equals(other.getExtensionsList())) 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_ID_FIELD_NUMBER; - hash = (53 * hash) + getMessageId().hashCode(); - hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; - hash = (53 * hash) + getContextId().hashCode(); - hash = (37 * hash) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + role_; - if (getContentCount() > 0) { - hash = (37 * hash) + CONTENT_FIELD_NUMBER; - hash = (53 * hash) + getContentList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - if (getExtensionsCount() > 0) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage 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.geminidataanalytics.v1beta.A2AMessage parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - 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.geminidataanalytics.v1beta.A2AMessage parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.A2AMessage prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * A2AMessage is one unit of communication between client and server.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2AMessage} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.A2AMessage) - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.class, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.A2AMessage.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetContentFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - messageId_ = ""; - contextId_ = ""; - taskId_ = ""; - role_ = 0; - if (contentBuilder_ == null) { - content_ = java.util.Collections.emptyList(); - } else { - content_ = null; - contentBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage build() { - com.google.cloud.geminidataanalytics.v1beta.A2AMessage result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.A2AMessage result = - new com.google.cloud.geminidataanalytics.v1beta.A2AMessage(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage result) { - if (contentBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - content_ = java.util.Collections.unmodifiableList(content_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.content_ = content_; - } else { - result.content_ = contentBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.A2AMessage result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.messageId_ = messageId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contextId_ = contextId_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.taskId_ = taskId_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.role_ = role_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - extensions_.makeImmutable(); - result.extensions_ = extensions_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.A2AMessage) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.A2AMessage) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.A2AMessage other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()) - return this; - if (!other.getMessageId().isEmpty()) { - messageId_ = other.messageId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContextId().isEmpty()) { - contextId_ = other.contextId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getTaskId().isEmpty()) { - taskId_ = other.taskId_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.role_ != 0) { - setRoleValue(other.getRoleValue()); - } - if (contentBuilder_ == null) { - if (!other.content_.isEmpty()) { - if (content_.isEmpty()) { - content_ = other.content_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureContentIsMutable(); - content_.addAll(other.content_); - } - onChanged(); - } - } else { - if (!other.content_.isEmpty()) { - if (contentBuilder_.isEmpty()) { - contentBuilder_.dispose(); - contentBuilder_ = null; - content_ = other.content_; - bitField0_ = (bitField0_ & ~0x00000010); - contentBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetContentFieldBuilder() - : null; - } else { - contentBuilder_.addAllMessages(other.content_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.extensions_.isEmpty()) { - if (extensions_.isEmpty()) { - extensions_ = other.extensions_; - bitField0_ |= 0x00000040; - } else { - ensureExtensionsIsMutable(); - extensions_.addAll(other.extensions_); - } - 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: - { - messageId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - contextId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - taskId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - role_ = input.readEnum(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - com.google.cloud.geminidataanalytics.v1beta.Part m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.Part.parser(), - extensionRegistry); - if (contentBuilder_ == null) { - ensureContentIsMutable(); - content_.add(m); - } else { - contentBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExtensionsIsMutable(); - extensions_.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 bitField0_; - - private java.lang.Object messageId_ = ""; - - /** - * - * - *
        -     * Optional. The unique identifier (e.g. UUID) of the message.
        -     * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The messageId. - */ - public java.lang.String getMessageId() { - java.lang.Object ref = messageId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - messageId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The unique identifier (e.g. UUID) of the message.
        -     * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for messageId. - */ - public com.google.protobuf.ByteString getMessageIdBytes() { - java.lang.Object ref = messageId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - messageId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The unique identifier (e.g. UUID) of the message.
        -     * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The messageId to set. - * @return This builder for chaining. - */ - public Builder setMessageId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - messageId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The unique identifier (e.g. UUID) of the message.
        -     * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMessageId() { - messageId_ = getDefaultInstance().getMessageId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The unique identifier (e.g. UUID) of the message.
        -     * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for messageId to set. - * @return This builder for chaining. - */ - public Builder setMessageIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - messageId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object contextId_ = ""; - - /** - * - * - *
        -     * Optional. The context id of the message.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The context id of the message.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The context id of the message.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The contextId to set. - * @return This builder for chaining. - */ - public Builder setContextId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The context id of the message.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The context id of the message.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for contextId to set. - * @return This builder for chaining. - */ - public Builder setContextIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object taskId_ = ""; - - /** - * - * - *
        -     * Optional. The task id of the message.
        -     * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The task id of the message.
        -     * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The task id of the message.
        -     * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The task id of the message.
        -     * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTaskId() { - taskId_ = getDefaultInstance().getTaskId(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The task id of the message.
        -     * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - taskId_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private int role_ = 0; - - /** - * - * - *
        -     * Optional. A role for the message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for role. - */ - @java.lang.Override - public int getRoleValue() { - return role_; - } - - /** - * - * - *
        -     * Optional. A role for the message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The enum numeric value on the wire for role to set. - * @return This builder for chaining. - */ - public Builder setRoleValue(int value) { - role_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A role for the message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The role. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Role getRole() { - com.google.cloud.geminidataanalytics.v1beta.Role result = - com.google.cloud.geminidataanalytics.v1beta.Role.forNumber(role_); - return result == null - ? com.google.cloud.geminidataanalytics.v1beta.Role.UNRECOGNIZED - : result; - } - - /** - * - * - *
        -     * Optional. A role for the message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The role to set. - * @return This builder for chaining. - */ - public Builder setRole(com.google.cloud.geminidataanalytics.v1beta.Role value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000008; - role_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A role for the message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearRole() { - bitField0_ = (bitField0_ & ~0x00000008); - role_ = 0; - onChanged(); - return this; - } - - private java.util.List content_ = - java.util.Collections.emptyList(); - - private void ensureContentIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - content_ = - new java.util.ArrayList(content_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> - contentBuilder_; - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getContentList() { - if (contentBuilder_ == null) { - return java.util.Collections.unmodifiableList(content_); - } else { - return contentBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getContentCount() { - if (contentBuilder_ == null) { - return content_.size(); - } else { - return contentBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part getContent(int index) { - if (contentBuilder_ == null) { - return content_.get(index); - } else { - return contentBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setContent(int index, com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentIsMutable(); - content_.set(index, value); - onChanged(); - } else { - contentBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setContent( - int index, com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (contentBuilder_ == null) { - ensureContentIsMutable(); - content_.set(index, builderForValue.build()); - onChanged(); - } else { - contentBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addContent(com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentIsMutable(); - content_.add(value); - onChanged(); - } else { - contentBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addContent(int index, com.google.cloud.geminidataanalytics.v1beta.Part value) { - if (contentBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureContentIsMutable(); - content_.add(index, value); - onChanged(); - } else { - contentBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addContent( - com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (contentBuilder_ == null) { - ensureContentIsMutable(); - content_.add(builderForValue.build()); - onChanged(); - } else { - contentBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addContent( - int index, com.google.cloud.geminidataanalytics.v1beta.Part.Builder builderForValue) { - if (contentBuilder_ == null) { - ensureContentIsMutable(); - content_.add(index, builderForValue.build()); - onChanged(); - } else { - contentBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllContent( - java.lang.Iterable values) { - if (contentBuilder_ == null) { - ensureContentIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, content_); - onChanged(); - } else { - contentBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearContent() { - if (contentBuilder_ == null) { - content_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - contentBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeContent(int index) { - if (contentBuilder_ == null) { - ensureContentIsMutable(); - content_.remove(index); - onChanged(); - } else { - contentBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder getContentBuilder(int index) { - return internalGetContentFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getContentOrBuilder( - int index) { - if (contentBuilder_ == null) { - return content_.get(index); - } else { - return contentBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getContentOrBuilderList() { - if (contentBuilder_ != null) { - return contentBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(content_); - } - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder addContentBuilder() { - return internalGetContentFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.Part.Builder addContentBuilder(int index) { - return internalGetContentFieldBuilder() - .addBuilder(index, com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Content is the container of the message content.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getContentBuilderList() { - return internalGetContentFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder> - internalGetContentFieldBuilder() { - if (contentBuilder_ == null) { - contentBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Part, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder, - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder>( - content_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - content_ = null; - } - return contentBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000020); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Any optional metadata to provide along with the message.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private com.google.protobuf.LazyStringArrayList extensions_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureExtensionsIsMutable() { - if (!extensions_.isModifiable()) { - extensions_ = new com.google.protobuf.LazyStringArrayList(extensions_); - } - bitField0_ |= 0x00000040; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - public com.google.protobuf.ProtocolStringList getExtensionsList() { - extensions_.makeImmutable(); - return extensions_; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - public int getExtensionsCount() { - return extensions_.size(); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - public java.lang.String getExtensions(int index) { - return extensions_.get(index); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - public com.google.protobuf.ByteString getExtensionsBytes(int index) { - return extensions_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The extensions to set. - * @return This builder for chaining. - */ - public Builder setExtensions(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.set(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The extensions to add. - * @return This builder for chaining. - */ - public Builder addExtensions(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The extensions to add. - * @return This builder for chaining. - */ - public Builder addAllExtensions(java.lang.Iterable values) { - ensureExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearExtensions() { - extensions_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URIs of extensions that are present or contributed to this
        -     * Message.
        -     * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the extensions to add. - * @return This builder for chaining. - */ - public Builder addExtensionsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureExtensionsIsMutable(); - extensions_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.A2AMessage) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.A2AMessage) - private static final com.google.cloud.geminidataanalytics.v1beta.A2AMessage DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.A2AMessage(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2AMessage getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public A2AMessage parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.A2AMessage getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessageOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessageOrBuilder.java deleted file mode 100644 index 68123c31a3a4..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2AMessageOrBuilder.java +++ /dev/null @@ -1,297 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface A2AMessageOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.A2AMessage) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The unique identifier (e.g. UUID) of the message.
        -   * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The messageId. - */ - java.lang.String getMessageId(); - - /** - * - * - *
        -   * Optional. The unique identifier (e.g. UUID) of the message.
        -   * 
        - * - * string message_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for messageId. - */ - com.google.protobuf.ByteString getMessageIdBytes(); - - /** - * - * - *
        -   * Optional. The context id of the message.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - java.lang.String getContextId(); - - /** - * - * - *
        -   * Optional. The context id of the message.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - com.google.protobuf.ByteString getContextIdBytes(); - - /** - * - * - *
        -   * Optional. The task id of the message.
        -   * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - java.lang.String getTaskId(); - - /** - * - * - *
        -   * Optional. The task id of the message.
        -   * 
        - * - * string task_id = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - com.google.protobuf.ByteString getTaskIdBytes(); - - /** - * - * - *
        -   * Optional. A role for the message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The enum numeric value on the wire for role. - */ - int getRoleValue(); - - /** - * - * - *
        -   * Optional. A role for the message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.Role role = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The role. - */ - com.google.cloud.geminidataanalytics.v1beta.Role getRole(); - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getContentList(); - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.Part getContent(int index); - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getContentCount(); - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getContentOrBuilderList(); - - /** - * - * - *
        -   * Optional. Content is the container of the message content.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.Part content = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder getContentOrBuilder(int index); - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Any optional metadata to provide along with the message.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the extensions. - */ - java.util.List getExtensionsList(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of extensions. - */ - int getExtensionsCount(); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The extensions at the given index. - */ - java.lang.String getExtensions(int index); - - /** - * - * - *
        -   * Optional. The URIs of extensions that are present or contributed to this
        -   * Message.
        -   * 
        - * - * repeated string extensions = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the extensions at the given index. - */ - com.google.protobuf.ByteString getExtensionsBytes(int index); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATask.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATask.java deleted file mode 100644 index 823b65b7dc5a..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATask.java +++ /dev/null @@ -1,2543 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * A2ATask is the core unit of action for A2A. It has a current status
        - * and when results are created for the task they are stored in the
        - * artifact. If there are multiple turns for a task, these are stored in
        - * history.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2ATask} - */ -@com.google.protobuf.Generated -public final class A2ATask extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.A2ATask) - A2ATaskOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "A2ATask"); - } - - // Use A2ATask.newBuilder() to construct. - private A2ATask(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private A2ATask() { - id_ = ""; - contextId_ = ""; - artifacts_ = java.util.Collections.emptyList(); - history_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2ATask.class, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -   * server for a new task.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -   * server for a new task.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 CONTEXT_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object contextId_ = ""; - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -   * interactions (tasks and messages). Created by the A2A server.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - @java.lang.Override - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -   * interactions (tasks and messages). Created by the A2A server.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private com.google.cloud.geminidataanalytics.v1beta.TaskStatus status_; - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus() { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder() { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - - public static final int ARTIFACTS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private java.util.List artifacts_; - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getArtifactsList() { - return artifacts_; - } - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getArtifactsOrBuilderList() { - return artifacts_; - } - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getArtifactsCount() { - return artifacts_.size(); - } - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifacts(int index) { - return artifacts_.get(index); - } - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactsOrBuilder( - int index) { - return artifacts_.get(index); - } - - public static final int HISTORY_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private java.util.List history_; - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getHistoryList() { - return history_; - } - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getHistoryOrBuilderList() { - return history_; - } - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getHistoryCount() { - return history_.size(); - } - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getHistory(int index) { - return history_.get(index); - } - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getHistoryOrBuilder( - int index) { - return history_.get(index); - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getStatus()); - } - for (int i = 0; i < artifacts_.size(); i++) { - output.writeMessage(4, artifacts_.get(i)); - } - for (int i = 0; i < history_.size(); i++) { - output.writeMessage(5, history_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getMetadata()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); - } - for (int i = 0; i < artifacts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, artifacts_.get(i)); - } - for (int i = 0; i < history_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, history_.get(i)); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - 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.geminidataanalytics.v1beta.A2ATask)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.A2ATask other = - (com.google.cloud.geminidataanalytics.v1beta.A2ATask) obj; - - if (!getId().equals(other.getId())) return false; - if (!getContextId().equals(other.getContextId())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (!getArtifactsList().equals(other.getArtifactsList())) return false; - if (!getHistoryList().equals(other.getHistoryList())) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; - hash = (53 * hash) + getContextId().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - if (getArtifactsCount() > 0) { - hash = (37 * hash) + ARTIFACTS_FIELD_NUMBER; - hash = (53 * hash) + getArtifactsList().hashCode(); - } - if (getHistoryCount() > 0) { - hash = (37 * hash) + HISTORY_FIELD_NUMBER; - hash = (53 * hash) + getHistoryList().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask 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.geminidataanalytics.v1beta.A2ATask parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - 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.geminidataanalytics.v1beta.A2ATask parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.A2ATask prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * A2ATask is the core unit of action for A2A. It has a current status
        -   * and when results are created for the task they are stored in the
        -   * artifact. If there are multiple turns for a task, these are stored in
        -   * history.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.A2ATask} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.A2ATask) - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.A2ATask.class, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.A2ATask.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetStatusFieldBuilder(); - internalGetArtifactsFieldBuilder(); - internalGetHistoryFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - contextId_ = ""; - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - } else { - artifacts_ = null; - artifactsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000008); - if (historyBuilder_ == null) { - history_ = java.util.Collections.emptyList(); - } else { - history_ = null; - historyBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000010); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask build() { - com.google.cloud.geminidataanalytics.v1beta.A2ATask result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.A2ATask result = - new com.google.cloud.geminidataanalytics.v1beta.A2ATask(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.A2ATask result) { - if (artifactsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0)) { - artifacts_ = java.util.Collections.unmodifiableList(artifacts_); - bitField0_ = (bitField0_ & ~0x00000008); - } - result.artifacts_ = artifacts_; - } else { - result.artifacts_ = artifactsBuilder_.build(); - } - if (historyBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0)) { - history_ = java.util.Collections.unmodifiableList(history_); - bitField0_ = (bitField0_ & ~0x00000010); - } - result.history_ = history_; - } else { - result.history_ = historyBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.A2ATask result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contextId_ = contextId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.A2ATask) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.A2ATask) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.A2ATask other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance()) - return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContextId().isEmpty()) { - contextId_ = other.contextId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (artifactsBuilder_ == null) { - if (!other.artifacts_.isEmpty()) { - if (artifacts_.isEmpty()) { - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000008); - } else { - ensureArtifactsIsMutable(); - artifacts_.addAll(other.artifacts_); - } - onChanged(); - } - } else { - if (!other.artifacts_.isEmpty()) { - if (artifactsBuilder_.isEmpty()) { - artifactsBuilder_.dispose(); - artifactsBuilder_ = null; - artifacts_ = other.artifacts_; - bitField0_ = (bitField0_ & ~0x00000008); - artifactsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetArtifactsFieldBuilder() - : null; - } else { - artifactsBuilder_.addAllMessages(other.artifacts_); - } - } - } - if (historyBuilder_ == null) { - if (!other.history_.isEmpty()) { - if (history_.isEmpty()) { - history_ = other.history_; - bitField0_ = (bitField0_ & ~0x00000010); - } else { - ensureHistoryIsMutable(); - history_.addAll(other.history_); - } - onChanged(); - } - } else { - if (!other.history_.isEmpty()) { - if (historyBuilder_.isEmpty()) { - historyBuilder_.dispose(); - historyBuilder_ = null; - history_ = other.history_; - bitField0_ = (bitField0_ & ~0x00000010); - historyBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetHistoryFieldBuilder() - : null; - } else { - historyBuilder_.addAllMessages(other.history_); - } - } - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - contextId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.parser(), - extensionRegistry); - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(m); - } else { - artifactsBuilder_.addMessage(m); - } - break; - } // case 34 - case 42: - { - com.google.cloud.geminidataanalytics.v1beta.A2AMessage m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.parser(), - extensionRegistry); - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - history_.add(m); - } else { - historyBuilder_.addMessage(m); - } - break; - } // case 42 - case 50: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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 id_ = ""; - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -     * server for a new task.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -     * server for a new task.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -     * server for a new task.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -     * server for a new task.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -     * server for a new task.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object contextId_ = ""; - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -     * interactions (tasks and messages). Created by the A2A server.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -     * interactions (tasks and messages). Created by the A2A server.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -     * interactions (tasks and messages). Created by the A2A server.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The contextId to set. - * @return This builder for chaining. - */ - public Builder setContextId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -     * interactions (tasks and messages). Created by the A2A server.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -     * interactions (tasks and messages). Created by the A2A server.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for contextId to set. - * @return This builder for chaining. - */ - public Builder setContextIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.TaskStatus status_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder> - statusBuilder_; - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatus(com.google.cloud.geminidataanalytics.v1beta.TaskStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - } else { - statusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatus( - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeStatus(com.google.cloud.geminidataanalytics.v1beta.TaskStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && status_ != null - && status_ - != com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance()) { - getStatusBuilder().mergeFrom(value); - } else { - status_ = value; - } - } else { - statusBuilder_.mergeFrom(value); - } - if (status_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetStatusFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - } - - /** - * - * - *
        -     * Optional. The current status of a Task, including state and a message.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder> - internalGetStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private java.util.List artifacts_ = - java.util.Collections.emptyList(); - - private void ensureArtifactsIsMutable() { - if (!((bitField0_ & 0x00000008) != 0)) { - artifacts_ = - new java.util.ArrayList( - artifacts_); - bitField0_ |= 0x00000008; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder> - artifactsBuilder_; - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getArtifactsList() { - if (artifactsBuilder_ == null) { - return java.util.Collections.unmodifiableList(artifacts_); - } else { - return artifactsBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getArtifactsCount() { - if (artifactsBuilder_ == null) { - return artifacts_.size(); - } else { - return artifactsBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifacts(int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setArtifacts( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AArtifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.set(index, value); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setArtifacts( - int index, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.set(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addArtifacts(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(value); - onChanged(); - } else { - artifactsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addArtifacts( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AArtifact value) { - if (artifactsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureArtifactsIsMutable(); - artifacts_.add(index, value); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addArtifacts( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addArtifacts( - int index, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder builderForValue) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.add(index, builderForValue.build()); - onChanged(); - } else { - artifactsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllArtifacts( - java.lang.Iterable - values) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, artifacts_); - onChanged(); - } else { - artifactsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearArtifacts() { - if (artifactsBuilder_ == null) { - artifacts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - } else { - artifactsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeArtifacts(int index) { - if (artifactsBuilder_ == null) { - ensureArtifactsIsMutable(); - artifacts_.remove(index); - onChanged(); - } else { - artifactsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder getArtifactsBuilder( - int index) { - return internalGetArtifactsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactsOrBuilder( - int index) { - if (artifactsBuilder_ == null) { - return artifacts_.get(index); - } else { - return artifactsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder> - getArtifactsOrBuilderList() { - if (artifactsBuilder_ != null) { - return artifactsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(artifacts_); - } - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder addArtifactsBuilder() { - return internalGetArtifactsFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder addArtifactsBuilder( - int index) { - return internalGetArtifactsFieldBuilder() - .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. A set of output artifacts for a Task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getArtifactsBuilderList() { - return internalGetArtifactsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder> - internalGetArtifactsFieldBuilder() { - if (artifactsBuilder_ == null) { - artifactsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder>( - artifacts_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); - artifacts_ = null; - } - return artifactsBuilder_; - } - - private java.util.List history_ = - java.util.Collections.emptyList(); - - private void ensureHistoryIsMutable() { - if (!((bitField0_ & 0x00000010) != 0)) { - history_ = - new java.util.ArrayList( - history_); - bitField0_ |= 0x00000010; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - historyBuilder_; - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getHistoryList() { - if (historyBuilder_ == null) { - return java.util.Collections.unmodifiableList(history_); - } else { - return historyBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getHistoryCount() { - if (historyBuilder_ == null) { - return history_.size(); - } else { - return historyBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getHistory(int index) { - if (historyBuilder_ == null) { - return history_.get(index); - } else { - return historyBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHistory( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (historyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistoryIsMutable(); - history_.set(index, value); - onChanged(); - } else { - historyBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setHistory( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - history_.set(index, builderForValue.build()); - onChanged(); - } else { - historyBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addHistory(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (historyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistoryIsMutable(); - history_.add(value); - onChanged(); - } else { - historyBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addHistory( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (historyBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureHistoryIsMutable(); - history_.add(index, value); - onChanged(); - } else { - historyBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addHistory( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - history_.add(builderForValue.build()); - onChanged(); - } else { - historyBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addHistory( - int index, com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - history_.add(index, builderForValue.build()); - onChanged(); - } else { - historyBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllHistory( - java.lang.Iterable - values) { - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, history_); - onChanged(); - } else { - historyBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearHistory() { - if (historyBuilder_ == null) { - history_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - } else { - historyBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeHistory(int index) { - if (historyBuilder_ == null) { - ensureHistoryIsMutable(); - history_.remove(index); - onChanged(); - } else { - historyBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder getHistoryBuilder( - int index) { - return internalGetHistoryFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getHistoryOrBuilder( - int index) { - if (historyBuilder_ == null) { - return history_.get(index); - } else { - return historyBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getHistoryOrBuilderList() { - if (historyBuilder_ != null) { - return historyBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(history_); - } - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder addHistoryBuilder() { - return internalGetHistoryFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder addHistoryBuilder( - int index) { - return internalGetHistoryFieldBuilder() - .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. The history of interactions from a task.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getHistoryBuilderList() { - return internalGetHistoryFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - internalGetHistoryFieldBuilder() { - if (historyBuilder_ == null) { - historyBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>( - history_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); - history_ = null; - } - return historyBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000020); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. A key/value object to store custom metadata about a task.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.A2ATask) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.A2ATask) - private static final com.google.cloud.geminidataanalytics.v1beta.A2ATask DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.A2ATask(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.A2ATask getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public A2ATask parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.A2ATask getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATaskOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATaskOrBuilder.java deleted file mode 100644 index 6945b7d70693..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/A2ATaskOrBuilder.java +++ /dev/null @@ -1,296 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface A2ATaskOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.A2ATask) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -   * server for a new task.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The id. - */ - java.lang.String getId(); - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the task, generated by the
        -   * server for a new task.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -   * interactions (tasks and messages). Created by the A2A server.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - java.lang.String getContextId(); - - /** - * - * - *
        -   * Optional. Unique identifier (e.g. UUID) for the contextual collection of
        -   * interactions (tasks and messages). Created by the A2A server.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - com.google.protobuf.ByteString getContextIdBytes(); - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus(); - - /** - * - * - *
        -   * Optional. The current status of a Task, including state and a message.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getArtifactsList(); - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifacts(int index); - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getArtifactsCount(); - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getArtifactsOrBuilderList(); - - /** - * - * - *
        -   * Optional. A set of output artifacts for a Task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifacts = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactsOrBuilder(int index); - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getHistoryList(); - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessage getHistory(int index); - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getHistoryCount(); - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getHistoryOrBuilderList(); - - /** - * - * - *
        -   * Optional. The history of interactions from a task.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.A2AMessage history = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getHistoryOrBuilder(int index); - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. A key/value object to store custom metadata about a task.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecuritySchemeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecuritySchemeOrBuilder.java deleted file mode 100644 index 7142cc38a132..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecuritySchemeOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface APIKeySecuritySchemeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. Location of the API key, valid values are "query", "header", or
        -   * "cookie".
        -   * 
        - * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The location. - */ - java.lang.String getLocation(); - - /** - * - * - *
        -   * Optional. Location of the API key, valid values are "query", "header", or
        -   * "cookie".
        -   * 
        - * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for location. - */ - com.google.protobuf.ByteString getLocationBytes(); - - /** - * - * - *
        -   * Optional. Name of the header, query or cookie parameter to be used.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
        -   * Optional. Name of the header, query or cookie parameter to be used.
        -   * 
        - * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilities.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilities.java deleted file mode 100644 index 2744c4ea36e7..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilities.java +++ /dev/null @@ -1,1188 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Defines the A2A feature set supported by the agent.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCapabilities} - */ -@com.google.protobuf.Generated -public final class AgentCapabilities extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentCapabilities) - AgentCapabilitiesOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentCapabilities"); - } - - // Use AgentCapabilities.newBuilder() to construct. - private AgentCapabilities(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentCapabilities() { - extensions_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder.class); - } - - public static final int STREAMING_FIELD_NUMBER = 1; - private boolean streaming_ = false; - - /** - * - * - *
        -   * Optional. If the agent will support streaming responses.
        -   * 
        - * - * bool streaming = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The streaming. - */ - @java.lang.Override - public boolean getStreaming() { - return streaming_; - } - - public static final int PUSH_NOTIFICATIONS_FIELD_NUMBER = 2; - private boolean pushNotifications_ = false; - - /** - * - * - *
        -   * Optional. If the agent can send push notifications to the client's webhook.
        -   * 
        - * - * bool push_notifications = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pushNotifications. - */ - @java.lang.Override - public boolean getPushNotifications() { - return pushNotifications_; - } - - public static final int EXTENSIONS_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private java.util.List extensions_; - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getExtensionsList() { - return extensions_; - } - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder> - getExtensionsOrBuilderList() { - return extensions_; - } - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getExtensionsCount() { - return extensions_.size(); - } - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension getExtensions(int index) { - return extensions_.get(index); - } - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder getExtensionsOrBuilder( - int index) { - return extensions_.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 (streaming_ != false) { - output.writeBool(1, streaming_); - } - if (pushNotifications_ != false) { - output.writeBool(2, pushNotifications_); - } - for (int i = 0; i < extensions_.size(); i++) { - output.writeMessage(3, extensions_.get(i)); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (streaming_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, streaming_); - } - if (pushNotifications_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, pushNotifications_); - } - for (int i = 0; i < extensions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, extensions_.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.geminidataanalytics.v1beta.AgentCapabilities)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities other = - (com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities) obj; - - if (getStreaming() != other.getStreaming()) return false; - if (getPushNotifications() != other.getPushNotifications()) return false; - if (!getExtensionsList().equals(other.getExtensionsList())) 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) + STREAMING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getStreaming()); - hash = (37 * hash) + PUSH_NOTIFICATIONS_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getPushNotifications()); - if (getExtensionsCount() > 0) { - hash = (37 * hash) + EXTENSIONS_FIELD_NUMBER; - hash = (53 * hash) + getExtensionsList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities 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.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - 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.geminidataanalytics.v1beta.AgentCapabilities parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AgentCapabilities prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Defines the A2A feature set supported by the agent.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCapabilities} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentCapabilities) - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - streaming_ = false; - pushNotifications_ = false; - if (extensionsBuilder_ == null) { - extensions_ = java.util.Collections.emptyList(); - } else { - extensions_ = null; - extensionsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000004); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities build() { - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities result = - new com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities result) { - if (extensionsBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0)) { - extensions_ = java.util.Collections.unmodifiableList(extensions_); - bitField0_ = (bitField0_ & ~0x00000004); - } - result.extensions_ = extensions_; - } else { - result.extensions_ = extensionsBuilder_.build(); - } - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.streaming_ = streaming_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pushNotifications_ = pushNotifications_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance()) - return this; - if (other.getStreaming() != false) { - setStreaming(other.getStreaming()); - } - if (other.getPushNotifications() != false) { - setPushNotifications(other.getPushNotifications()); - } - if (extensionsBuilder_ == null) { - if (!other.extensions_.isEmpty()) { - if (extensions_.isEmpty()) { - extensions_ = other.extensions_; - bitField0_ = (bitField0_ & ~0x00000004); - } else { - ensureExtensionsIsMutable(); - extensions_.addAll(other.extensions_); - } - onChanged(); - } - } else { - if (!other.extensions_.isEmpty()) { - if (extensionsBuilder_.isEmpty()) { - extensionsBuilder_.dispose(); - extensionsBuilder_ = null; - extensions_ = other.extensions_; - bitField0_ = (bitField0_ & ~0x00000004); - extensionsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetExtensionsFieldBuilder() - : null; - } else { - extensionsBuilder_.addAllMessages(other.extensions_); - } - } - } - 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: - { - streaming_ = input.readBool(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 16: - { - pushNotifications_ = input.readBool(); - bitField0_ |= 0x00000002; - break; - } // case 16 - case 26: - { - com.google.cloud.geminidataanalytics.v1beta.AgentExtension m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.parser(), - extensionRegistry); - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.add(m); - } else { - extensionsBuilder_.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 boolean streaming_; - - /** - * - * - *
        -     * Optional. If the agent will support streaming responses.
        -     * 
        - * - * bool streaming = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The streaming. - */ - @java.lang.Override - public boolean getStreaming() { - return streaming_; - } - - /** - * - * - *
        -     * Optional. If the agent will support streaming responses.
        -     * 
        - * - * bool streaming = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The streaming to set. - * @return This builder for chaining. - */ - public Builder setStreaming(boolean value) { - - streaming_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. If the agent will support streaming responses.
        -     * 
        - * - * bool streaming = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearStreaming() { - bitField0_ = (bitField0_ & ~0x00000001); - streaming_ = false; - onChanged(); - return this; - } - - private boolean pushNotifications_; - - /** - * - * - *
        -     * Optional. If the agent can send push notifications to the client's webhook.
        -     * 
        - * - * bool push_notifications = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pushNotifications. - */ - @java.lang.Override - public boolean getPushNotifications() { - return pushNotifications_; - } - - /** - * - * - *
        -     * Optional. If the agent can send push notifications to the client's webhook.
        -     * 
        - * - * bool push_notifications = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The pushNotifications to set. - * @return This builder for chaining. - */ - public Builder setPushNotifications(boolean value) { - - pushNotifications_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. If the agent can send push notifications to the client's webhook.
        -     * 
        - * - * bool push_notifications = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPushNotifications() { - bitField0_ = (bitField0_ & ~0x00000002); - pushNotifications_ = false; - onChanged(); - return this; - } - - private java.util.List extensions_ = - java.util.Collections.emptyList(); - - private void ensureExtensionsIsMutable() { - if (!((bitField0_ & 0x00000004) != 0)) { - extensions_ = - new java.util.ArrayList( - extensions_); - bitField0_ |= 0x00000004; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentExtension, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder> - extensionsBuilder_; - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getExtensionsList() { - if (extensionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(extensions_); - } else { - return extensionsBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getExtensionsCount() { - if (extensionsBuilder_ == null) { - return extensions_.size(); - } else { - return extensionsBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension getExtensions(int index) { - if (extensionsBuilder_ == null) { - return extensions_.get(index); - } else { - return extensionsBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExtensions( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentExtension value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.set(index, value); - onChanged(); - } else { - extensionsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setExtensions( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.set(index, builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addExtensions(com.google.cloud.geminidataanalytics.v1beta.AgentExtension value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(value); - onChanged(); - } else { - extensionsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addExtensions( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentExtension value) { - if (extensionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureExtensionsIsMutable(); - extensions_.add(index, value); - onChanged(); - } else { - extensionsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addExtensions( - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.add(builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addExtensions( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder builderForValue) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.add(index, builderForValue.build()); - onChanged(); - } else { - extensionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllExtensions( - java.lang.Iterable - values) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, extensions_); - onChanged(); - } else { - extensionsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearExtensions() { - if (extensionsBuilder_ == null) { - extensions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - } else { - extensionsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeExtensions(int index) { - if (extensionsBuilder_ == null) { - ensureExtensionsIsMutable(); - extensions_.remove(index); - onChanged(); - } else { - extensionsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder getExtensionsBuilder( - int index) { - return internalGetExtensionsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder - getExtensionsOrBuilder(int index) { - if (extensionsBuilder_ == null) { - return extensions_.get(index); - } else { - return extensionsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder> - getExtensionsOrBuilderList() { - if (extensionsBuilder_ != null) { - return extensionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(extensions_); - } - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder - addExtensionsBuilder() { - return internalGetExtensionsFieldBuilder() - .addBuilder( - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder addExtensionsBuilder( - int index) { - return internalGetExtensionsFieldBuilder() - .addBuilder( - index, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Extensions supported by this agent.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getExtensionsBuilderList() { - return internalGetExtensionsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentExtension, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder> - internalGetExtensionsFieldBuilder() { - if (extensionsBuilder_ == null) { - extensionsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentExtension, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder>( - extensions_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); - extensions_ = null; - } - return extensionsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentCapabilities) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentCapabilities) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentCapabilities parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AgentCapabilities getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilitiesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilitiesOrBuilder.java deleted file mode 100644 index 3b3fc6236a48..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCapabilitiesOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentCapabilitiesOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentCapabilities) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. If the agent will support streaming responses.
        -   * 
        - * - * bool streaming = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The streaming. - */ - boolean getStreaming(); - - /** - * - * - *
        -   * Optional. If the agent can send push notifications to the client's webhook.
        -   * 
        - * - * bool push_notifications = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The pushNotifications. - */ - boolean getPushNotifications(); - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getExtensionsList(); - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentExtension getExtensions(int index); - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getExtensionsCount(); - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getExtensionsOrBuilderList(); - - /** - * - * - *
        -   * Optional. Extensions supported by this agent.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentExtension extensions = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder getExtensionsOrBuilder( - int index); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCard.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCard.java deleted file mode 100644 index 6b2ea6a2faea..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCard.java +++ /dev/null @@ -1,6036 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * AgentCard conveys key information about an agent.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCard} - */ -@com.google.protobuf.Generated -public final class AgentCard extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentCard) - AgentCardOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentCard"); - } - - // Use AgentCard.newBuilder() to construct. - private AgentCard(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentCard() { - protocolVersion_ = ""; - name_ = ""; - description_ = ""; - url_ = ""; - preferredTransport_ = ""; - additionalInterfaces_ = java.util.Collections.emptyList(); - version_ = ""; - documentationUrl_ = ""; - security_ = java.util.Collections.emptyList(); - defaultInputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - defaultOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - skills_ = java.util.Collections.emptyList(); - signatures_ = java.util.Collections.emptyList(); - iconUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 8: - return internalGetSecuritySchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCard.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCard.Builder.class); - } - - private int bitField0_; - public static final int PROTOCOL_VERSION_FIELD_NUMBER = 16; - - @SuppressWarnings("serial") - private volatile java.lang.Object protocolVersion_ = ""; - - /** - * - * - *
        -   * Optional. The version of the A2A protocol this agent supports.
        -   * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The protocolVersion. - */ - @java.lang.Override - public java.lang.String getProtocolVersion() { - java.lang.Object ref = protocolVersion_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protocolVersion_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The version of the A2A protocol this agent supports.
        -   * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for protocolVersion. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProtocolVersionBytes() { - java.lang.Object ref = protocolVersion_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - protocolVersion_ = 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_ = ""; - - /** - * - * - *
        -   * Optional. A human readable name for the agent.
        -   * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A human readable name for the agent.
        -   * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DESCRIPTION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. A description of the agent's domain of action/solution space.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A description of the agent's domain of action/solution space.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int URL_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - - /** - * - * - *
        -   * Optional. A URL to the address the agent is hosted at.
        -   * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. A URL to the address the agent is hosted at.
        -   * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PREFERRED_TRANSPORT_FIELD_NUMBER = 14; - - @SuppressWarnings("serial") - private volatile java.lang.Object preferredTransport_ = ""; - - /** - * - * - *
        -   * Optional. The transport of the preferred endpoint. If empty, defaults to
        -   * JSONRPC.
        -   * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preferredTransport. - */ - @java.lang.Override - public java.lang.String getPreferredTransport() { - java.lang.Object ref = preferredTransport_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredTransport_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The transport of the preferred endpoint. If empty, defaults to
        -   * JSONRPC.
        -   * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for preferredTransport. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPreferredTransportBytes() { - java.lang.Object ref = preferredTransport_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredTransport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ADDITIONAL_INTERFACES_FIELD_NUMBER = 15; - - @SuppressWarnings("serial") - private java.util.List - additionalInterfaces_; - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getAdditionalInterfacesList() { - return additionalInterfaces_; - } - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder> - getAdditionalInterfacesOrBuilderList() { - return additionalInterfaces_; - } - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getAdditionalInterfacesCount() { - return additionalInterfaces_.size(); - } - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface getAdditionalInterfaces( - int index) { - return additionalInterfaces_.get(index); - } - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder - getAdditionalInterfacesOrBuilder(int index) { - return additionalInterfaces_.get(index); - } - - public static final int PROVIDER_FIELD_NUMBER = 4; - private com.google.cloud.geminidataanalytics.v1beta.AgentProvider provider_; - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the provider field is set. - */ - @java.lang.Override - public boolean hasProvider() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The provider. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider getProvider() { - return provider_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance() - : provider_; - } - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder getProviderOrBuilder() { - return provider_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance() - : provider_; - } - - public static final int VERSION_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private volatile java.lang.Object version_ = ""; - - /** - * - * - *
        -   * Optional. The version of the agent.
        -   * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - @java.lang.Override - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The version of the agent.
        -   * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - @java.lang.Override - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DOCUMENTATION_URL_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private volatile java.lang.Object documentationUrl_ = ""; - - /** - * - * - *
        -   * Optional. A url to provide additional documentation about the agent.
        -   * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The documentationUrl. - */ - @java.lang.Override - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. A url to provide additional documentation about the agent.
        -   * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for documentationUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CAPABILITIES_FIELD_NUMBER = 7; - private com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities_; - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the capabilities field is set. - */ - @java.lang.Override - public boolean hasCapabilities() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The capabilities. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities getCapabilities() { - return capabilities_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance() - : capabilities_; - } - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder - getCapabilitiesOrBuilder() { - return capabilities_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance() - : capabilities_; - } - - public static final int SECURITY_SCHEMES_FIELD_NUMBER = 8; - - private static final class SecuritySchemesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_SecuritySchemesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme - .getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - securitySchemes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - internalGetSecuritySchemes() { - if (securitySchemes_ == null) { - return com.google.protobuf.MapField.emptyMapField( - SecuritySchemesDefaultEntryHolder.defaultEntry); - } - return securitySchemes_; - } - - public int getSecuritySchemesCount() { - return internalGetSecuritySchemes().getMap().size(); - } - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public boolean containsSecuritySchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetSecuritySchemes().getMap().containsKey(key); - } - - /** Use {@link #getSecuritySchemesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getSecuritySchemes() { - return getSecuritySchemesMap(); - } - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public java.util.Map - getSecuritySchemesMap() { - return internalGetSecuritySchemes().getMap(); - } - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.geminidataanalytics.v1beta.SecurityScheme - getSecuritySchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetSecuritySchemes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getSecuritySchemesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map - map = internalGetSecuritySchemes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public static final int SECURITY_FIELD_NUMBER = 9; - - @SuppressWarnings("serial") - private java.util.List security_; - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - @java.lang.Override - public java.util.List getSecurityList() { - return security_; - } - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - @java.lang.Override - public java.util.List - getSecurityOrBuilderList() { - return security_; - } - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - @java.lang.Override - public int getSecurityCount() { - return security_.size(); - } - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index) { - return security_.get(index); - } - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder( - int index) { - return security_.get(index); - } - - public static final int DEFAULT_INPUT_MODES_FIELD_NUMBER = 10; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList defaultInputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultInputModes. - */ - public com.google.protobuf.ProtocolStringList getDefaultInputModesList() { - return defaultInputModes_; - } - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultInputModes. - */ - public int getDefaultInputModesCount() { - return defaultInputModes_.size(); - } - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultInputModes at the given index. - */ - public java.lang.String getDefaultInputModes(int index) { - return defaultInputModes_.get(index); - } - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultInputModes at the given index. - */ - public com.google.protobuf.ByteString getDefaultInputModesBytes(int index) { - return defaultInputModes_.getByteString(index); - } - - public static final int DEFAULT_OUTPUT_MODES_FIELD_NUMBER = 11; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList defaultOutputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultOutputModes. - */ - public com.google.protobuf.ProtocolStringList getDefaultOutputModesList() { - return defaultOutputModes_; - } - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultOutputModes. - */ - public int getDefaultOutputModesCount() { - return defaultOutputModes_.size(); - } - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultOutputModes at the given index. - */ - public java.lang.String getDefaultOutputModes(int index) { - return defaultOutputModes_.get(index); - } - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultOutputModes at the given index. - */ - public com.google.protobuf.ByteString getDefaultOutputModesBytes(int index) { - return defaultOutputModes_.getByteString(index); - } - - public static final int SKILLS_FIELD_NUMBER = 12; - - @SuppressWarnings("serial") - private java.util.List skills_; - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List getSkillsList() { - return skills_; - } - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getSkillsOrBuilderList() { - return skills_; - } - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getSkillsCount() { - return skills_.size(); - } - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill getSkills(int index) { - return skills_.get(index); - } - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder getSkillsOrBuilder( - int index) { - return skills_.get(index); - } - - public static final int SUPPORTS_AUTHENTICATED_EXTENDED_CARD_FIELD_NUMBER = 13; - private boolean supportsAuthenticatedExtendedCard_ = false; - - /** - * - * - *
        -   * Optional. Whether the agent supports providing an extended agent card when
        -   * the user is authenticated.
        -   * 
        - * - * bool supports_authenticated_extended_card = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The supportsAuthenticatedExtendedCard. - */ - @java.lang.Override - public boolean getSupportsAuthenticatedExtendedCard() { - return supportsAuthenticatedExtendedCard_; - } - - public static final int SIGNATURES_FIELD_NUMBER = 17; - - @SuppressWarnings("serial") - private java.util.List - signatures_; - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List - getSignaturesList() { - return signatures_; - } - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder> - getSignaturesOrBuilderList() { - return signatures_; - } - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public int getSignaturesCount() { - return signatures_.size(); - } - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature getSignatures(int index) { - return signatures_.get(index); - } - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder - getSignaturesOrBuilder(int index) { - return signatures_.get(index); - } - - public static final int ICON_URL_FIELD_NUMBER = 18; - - @SuppressWarnings("serial") - private volatile java.lang.Object iconUrl_ = ""; - - /** - * - * - *
        -   * Optional. An optional URL to an icon for the agent.
        -   * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The iconUrl. - */ - @java.lang.Override - public java.lang.String getIconUrl() { - java.lang.Object ref = iconUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. An optional URL to an icon for the agent.
        -   * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for iconUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getIconUrlBytes() { - java.lang.Object ref = iconUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconUrl_ = 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.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, url_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getProvider()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, version_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, documentationUrl_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(7, getCapabilities()); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetSecuritySchemes(), SecuritySchemesDefaultEntryHolder.defaultEntry, 8); - for (int i = 0; i < security_.size(); i++) { - output.writeMessage(9, security_.get(i)); - } - for (int i = 0; i < defaultInputModes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 10, defaultInputModes_.getRaw(i)); - } - for (int i = 0; i < defaultOutputModes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 11, defaultOutputModes_.getRaw(i)); - } - for (int i = 0; i < skills_.size(); i++) { - output.writeMessage(12, skills_.get(i)); - } - if (supportsAuthenticatedExtendedCard_ != false) { - output.writeBool(13, supportsAuthenticatedExtendedCard_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preferredTransport_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 14, preferredTransport_); - } - for (int i = 0; i < additionalInterfaces_.size(); i++) { - output.writeMessage(15, additionalInterfaces_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 16, protocolVersion_); - } - for (int i = 0; i < signatures_.size(); i++) { - output.writeMessage(17, signatures_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 18, iconUrl_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, url_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getProvider()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(version_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(5, version_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(documentationUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(6, documentationUrl_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCapabilities()); - } - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - entry : internalGetSecuritySchemes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - securitySchemes__ = - SecuritySchemesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, securitySchemes__); - } - for (int i = 0; i < security_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, security_.get(i)); - } - { - int dataSize = 0; - for (int i = 0; i < defaultInputModes_.size(); i++) { - dataSize += computeStringSizeNoTag(defaultInputModes_.getRaw(i)); - } - size += dataSize; - size += 1 * getDefaultInputModesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < defaultOutputModes_.size(); i++) { - dataSize += computeStringSizeNoTag(defaultOutputModes_.getRaw(i)); - } - size += dataSize; - size += 1 * getDefaultOutputModesList().size(); - } - for (int i = 0; i < skills_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, skills_.get(i)); - } - if (supportsAuthenticatedExtendedCard_ != false) { - size += - com.google.protobuf.CodedOutputStream.computeBoolSize( - 13, supportsAuthenticatedExtendedCard_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(preferredTransport_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(14, preferredTransport_); - } - for (int i = 0; i < additionalInterfaces_.size(); i++) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 15, additionalInterfaces_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protocolVersion_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(16, protocolVersion_); - } - for (int i = 0; i < signatures_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(17, signatures_.get(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(iconUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(18, iconUrl_); - } - 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.geminidataanalytics.v1beta.AgentCard)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AgentCard other = - (com.google.cloud.geminidataanalytics.v1beta.AgentCard) obj; - - if (!getProtocolVersion().equals(other.getProtocolVersion())) return false; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getPreferredTransport().equals(other.getPreferredTransport())) return false; - if (!getAdditionalInterfacesList().equals(other.getAdditionalInterfacesList())) return false; - if (hasProvider() != other.hasProvider()) return false; - if (hasProvider()) { - if (!getProvider().equals(other.getProvider())) return false; - } - if (!getVersion().equals(other.getVersion())) return false; - if (!getDocumentationUrl().equals(other.getDocumentationUrl())) return false; - if (hasCapabilities() != other.hasCapabilities()) return false; - if (hasCapabilities()) { - if (!getCapabilities().equals(other.getCapabilities())) return false; - } - if (!internalGetSecuritySchemes().equals(other.internalGetSecuritySchemes())) return false; - if (!getSecurityList().equals(other.getSecurityList())) return false; - if (!getDefaultInputModesList().equals(other.getDefaultInputModesList())) return false; - if (!getDefaultOutputModesList().equals(other.getDefaultOutputModesList())) return false; - if (!getSkillsList().equals(other.getSkillsList())) return false; - if (getSupportsAuthenticatedExtendedCard() != other.getSupportsAuthenticatedExtendedCard()) - return false; - if (!getSignaturesList().equals(other.getSignaturesList())) return false; - if (!getIconUrl().equals(other.getIconUrl())) 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) + PROTOCOL_VERSION_FIELD_NUMBER; - hash = (53 * hash) + getProtocolVersion().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + PREFERRED_TRANSPORT_FIELD_NUMBER; - hash = (53 * hash) + getPreferredTransport().hashCode(); - if (getAdditionalInterfacesCount() > 0) { - hash = (37 * hash) + ADDITIONAL_INTERFACES_FIELD_NUMBER; - hash = (53 * hash) + getAdditionalInterfacesList().hashCode(); - } - if (hasProvider()) { - hash = (37 * hash) + PROVIDER_FIELD_NUMBER; - hash = (53 * hash) + getProvider().hashCode(); - } - hash = (37 * hash) + VERSION_FIELD_NUMBER; - hash = (53 * hash) + getVersion().hashCode(); - hash = (37 * hash) + DOCUMENTATION_URL_FIELD_NUMBER; - hash = (53 * hash) + getDocumentationUrl().hashCode(); - if (hasCapabilities()) { - hash = (37 * hash) + CAPABILITIES_FIELD_NUMBER; - hash = (53 * hash) + getCapabilities().hashCode(); - } - if (!internalGetSecuritySchemes().getMap().isEmpty()) { - hash = (37 * hash) + SECURITY_SCHEMES_FIELD_NUMBER; - hash = (53 * hash) + internalGetSecuritySchemes().hashCode(); - } - if (getSecurityCount() > 0) { - hash = (37 * hash) + SECURITY_FIELD_NUMBER; - hash = (53 * hash) + getSecurityList().hashCode(); - } - if (getDefaultInputModesCount() > 0) { - hash = (37 * hash) + DEFAULT_INPUT_MODES_FIELD_NUMBER; - hash = (53 * hash) + getDefaultInputModesList().hashCode(); - } - if (getDefaultOutputModesCount() > 0) { - hash = (37 * hash) + DEFAULT_OUTPUT_MODES_FIELD_NUMBER; - hash = (53 * hash) + getDefaultOutputModesList().hashCode(); - } - if (getSkillsCount() > 0) { - hash = (37 * hash) + SKILLS_FIELD_NUMBER; - hash = (53 * hash) + getSkillsList().hashCode(); - } - hash = (37 * hash) + SUPPORTS_AUTHENTICATED_EXTENDED_CARD_FIELD_NUMBER; - hash = - (53 * hash) - + com.google.protobuf.Internal.hashBoolean(getSupportsAuthenticatedExtendedCard()); - if (getSignaturesCount() > 0) { - hash = (37 * hash) + SIGNATURES_FIELD_NUMBER; - hash = (53 * hash) + getSignaturesList().hashCode(); - } - hash = (37 * hash) + ICON_URL_FIELD_NUMBER; - hash = (53 * hash) + getIconUrl().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard 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.geminidataanalytics.v1beta.AgentCard parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - 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.geminidataanalytics.v1beta.AgentCard parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AgentCard prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * AgentCard conveys key information about an agent.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCard} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentCard) - com.google.cloud.geminidataanalytics.v1beta.AgentCardOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 8: - return internalGetSecuritySchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 8: - return internalGetMutableSecuritySchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCard.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCard.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentCard.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAdditionalInterfacesFieldBuilder(); - internalGetProviderFieldBuilder(); - internalGetCapabilitiesFieldBuilder(); - internalGetSecurityFieldBuilder(); - internalGetSkillsFieldBuilder(); - internalGetSignaturesFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - protocolVersion_ = ""; - name_ = ""; - description_ = ""; - url_ = ""; - preferredTransport_ = ""; - if (additionalInterfacesBuilder_ == null) { - additionalInterfaces_ = java.util.Collections.emptyList(); - } else { - additionalInterfaces_ = null; - additionalInterfacesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000020); - provider_ = null; - if (providerBuilder_ != null) { - providerBuilder_.dispose(); - providerBuilder_ = null; - } - version_ = ""; - documentationUrl_ = ""; - capabilities_ = null; - if (capabilitiesBuilder_ != null) { - capabilitiesBuilder_.dispose(); - capabilitiesBuilder_ = null; - } - internalGetMutableSecuritySchemes().clear(); - if (securityBuilder_ == null) { - security_ = java.util.Collections.emptyList(); - } else { - security_ = null; - securityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000800); - defaultInputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - defaultOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (skillsBuilder_ == null) { - skills_ = java.util.Collections.emptyList(); - } else { - skills_ = null; - skillsBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00004000); - supportsAuthenticatedExtendedCard_ = false; - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - } else { - signatures_ = null; - signaturesBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00010000); - iconUrl_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCard getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentCard.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCard build() { - com.google.cloud.geminidataanalytics.v1beta.AgentCard result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCard buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentCard result = - new com.google.cloud.geminidataanalytics.v1beta.AgentCard(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.AgentCard result) { - if (additionalInterfacesBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0)) { - additionalInterfaces_ = java.util.Collections.unmodifiableList(additionalInterfaces_); - bitField0_ = (bitField0_ & ~0x00000020); - } - result.additionalInterfaces_ = additionalInterfaces_; - } else { - result.additionalInterfaces_ = additionalInterfacesBuilder_.build(); - } - if (securityBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0)) { - security_ = java.util.Collections.unmodifiableList(security_); - bitField0_ = (bitField0_ & ~0x00000800); - } - result.security_ = security_; - } else { - result.security_ = securityBuilder_.build(); - } - if (skillsBuilder_ == null) { - if (((bitField0_ & 0x00004000) != 0)) { - skills_ = java.util.Collections.unmodifiableList(skills_); - bitField0_ = (bitField0_ & ~0x00004000); - } - result.skills_ = skills_; - } else { - result.skills_ = skillsBuilder_.build(); - } - if (signaturesBuilder_ == null) { - if (((bitField0_ & 0x00010000) != 0)) { - signatures_ = java.util.Collections.unmodifiableList(signatures_); - bitField0_ = (bitField0_ & ~0x00010000); - } - result.signatures_ = signatures_; - } else { - result.signatures_ = signaturesBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.AgentCard result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.protocolVersion_ = protocolVersion_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.url_ = url_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.preferredTransport_ = preferredTransport_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000040) != 0)) { - result.provider_ = providerBuilder_ == null ? provider_ : providerBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000080) != 0)) { - result.version_ = version_; - } - if (((from_bitField0_ & 0x00000100) != 0)) { - result.documentationUrl_ = documentationUrl_; - } - if (((from_bitField0_ & 0x00000200) != 0)) { - result.capabilities_ = - capabilitiesBuilder_ == null ? capabilities_ : capabilitiesBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000400) != 0)) { - result.securitySchemes_ = - internalGetSecuritySchemes().build(SecuritySchemesDefaultEntryHolder.defaultEntry); - } - if (((from_bitField0_ & 0x00001000) != 0)) { - defaultInputModes_.makeImmutable(); - result.defaultInputModes_ = defaultInputModes_; - } - if (((from_bitField0_ & 0x00002000) != 0)) { - defaultOutputModes_.makeImmutable(); - result.defaultOutputModes_ = defaultOutputModes_; - } - if (((from_bitField0_ & 0x00008000) != 0)) { - result.supportsAuthenticatedExtendedCard_ = supportsAuthenticatedExtendedCard_; - } - if (((from_bitField0_ & 0x00020000) != 0)) { - result.iconUrl_ = iconUrl_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentCard) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentCard) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentCard other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.AgentCard.getDefaultInstance()) - return this; - if (!other.getProtocolVersion().isEmpty()) { - protocolVersion_ = other.protocolVersion_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - bitField0_ |= 0x00000008; - onChanged(); - } - if (!other.getPreferredTransport().isEmpty()) { - preferredTransport_ = other.preferredTransport_; - bitField0_ |= 0x00000010; - onChanged(); - } - if (additionalInterfacesBuilder_ == null) { - if (!other.additionalInterfaces_.isEmpty()) { - if (additionalInterfaces_.isEmpty()) { - additionalInterfaces_ = other.additionalInterfaces_; - bitField0_ = (bitField0_ & ~0x00000020); - } else { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.addAll(other.additionalInterfaces_); - } - onChanged(); - } - } else { - if (!other.additionalInterfaces_.isEmpty()) { - if (additionalInterfacesBuilder_.isEmpty()) { - additionalInterfacesBuilder_.dispose(); - additionalInterfacesBuilder_ = null; - additionalInterfaces_ = other.additionalInterfaces_; - bitField0_ = (bitField0_ & ~0x00000020); - additionalInterfacesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetAdditionalInterfacesFieldBuilder() - : null; - } else { - additionalInterfacesBuilder_.addAllMessages(other.additionalInterfaces_); - } - } - } - if (other.hasProvider()) { - mergeProvider(other.getProvider()); - } - if (!other.getVersion().isEmpty()) { - version_ = other.version_; - bitField0_ |= 0x00000080; - onChanged(); - } - if (!other.getDocumentationUrl().isEmpty()) { - documentationUrl_ = other.documentationUrl_; - bitField0_ |= 0x00000100; - onChanged(); - } - if (other.hasCapabilities()) { - mergeCapabilities(other.getCapabilities()); - } - internalGetMutableSecuritySchemes().mergeFrom(other.internalGetSecuritySchemes()); - bitField0_ |= 0x00000400; - if (securityBuilder_ == null) { - if (!other.security_.isEmpty()) { - if (security_.isEmpty()) { - security_ = other.security_; - bitField0_ = (bitField0_ & ~0x00000800); - } else { - ensureSecurityIsMutable(); - security_.addAll(other.security_); - } - onChanged(); - } - } else { - if (!other.security_.isEmpty()) { - if (securityBuilder_.isEmpty()) { - securityBuilder_.dispose(); - securityBuilder_ = null; - security_ = other.security_; - bitField0_ = (bitField0_ & ~0x00000800); - securityBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSecurityFieldBuilder() - : null; - } else { - securityBuilder_.addAllMessages(other.security_); - } - } - } - if (!other.defaultInputModes_.isEmpty()) { - if (defaultInputModes_.isEmpty()) { - defaultInputModes_ = other.defaultInputModes_; - bitField0_ |= 0x00001000; - } else { - ensureDefaultInputModesIsMutable(); - defaultInputModes_.addAll(other.defaultInputModes_); - } - onChanged(); - } - if (!other.defaultOutputModes_.isEmpty()) { - if (defaultOutputModes_.isEmpty()) { - defaultOutputModes_ = other.defaultOutputModes_; - bitField0_ |= 0x00002000; - } else { - ensureDefaultOutputModesIsMutable(); - defaultOutputModes_.addAll(other.defaultOutputModes_); - } - onChanged(); - } - if (skillsBuilder_ == null) { - if (!other.skills_.isEmpty()) { - if (skills_.isEmpty()) { - skills_ = other.skills_; - bitField0_ = (bitField0_ & ~0x00004000); - } else { - ensureSkillsIsMutable(); - skills_.addAll(other.skills_); - } - onChanged(); - } - } else { - if (!other.skills_.isEmpty()) { - if (skillsBuilder_.isEmpty()) { - skillsBuilder_.dispose(); - skillsBuilder_ = null; - skills_ = other.skills_; - bitField0_ = (bitField0_ & ~0x00004000); - skillsBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSkillsFieldBuilder() - : null; - } else { - skillsBuilder_.addAllMessages(other.skills_); - } - } - } - if (other.getSupportsAuthenticatedExtendedCard() != false) { - setSupportsAuthenticatedExtendedCard(other.getSupportsAuthenticatedExtendedCard()); - } - if (signaturesBuilder_ == null) { - if (!other.signatures_.isEmpty()) { - if (signatures_.isEmpty()) { - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00010000); - } else { - ensureSignaturesIsMutable(); - signatures_.addAll(other.signatures_); - } - onChanged(); - } - } else { - if (!other.signatures_.isEmpty()) { - if (signaturesBuilder_.isEmpty()) { - signaturesBuilder_.dispose(); - signaturesBuilder_ = null; - signatures_ = other.signatures_; - bitField0_ = (bitField0_ & ~0x00010000); - signaturesBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSignaturesFieldBuilder() - : null; - } else { - signaturesBuilder_.addAllMessages(other.signatures_); - } - } - } - if (!other.getIconUrl().isEmpty()) { - iconUrl_ = other.iconUrl_; - bitField0_ |= 0x00020000; - 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_ |= 0x00000002; - break; - } // case 10 - case 18: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 18 - case 26: - { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetProviderFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000040; - break; - } // case 34 - case 42: - { - version_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; - break; - } // case 42 - case 50: - { - documentationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; - break; - } // case 50 - case 58: - { - input.readMessage( - internalGetCapabilitiesFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000200; - break; - } // case 58 - case 66: - { - com.google.protobuf.MapEntry< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - securitySchemes__ = - input.readMessage( - SecuritySchemesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableSecuritySchemes() - .ensureBuilderMap() - .put(securitySchemes__.getKey(), securitySchemes__.getValue()); - bitField0_ |= 0x00000400; - break; - } // case 66 - case 74: - { - com.google.cloud.geminidataanalytics.v1beta.Security m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.Security.parser(), - extensionRegistry); - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(m); - } else { - securityBuilder_.addMessage(m); - } - break; - } // case 74 - case 82: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDefaultInputModesIsMutable(); - defaultInputModes_.add(s); - break; - } // case 82 - case 90: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureDefaultOutputModesIsMutable(); - defaultOutputModes_.add(s); - break; - } // case 90 - case 98: - { - com.google.cloud.geminidataanalytics.v1beta.AgentSkill m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.parser(), - extensionRegistry); - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.add(m); - } else { - skillsBuilder_.addMessage(m); - } - break; - } // case 98 - case 104: - { - supportsAuthenticatedExtendedCard_ = input.readBool(); - bitField0_ |= 0x00008000; - break; - } // case 104 - case 114: - { - preferredTransport_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000010; - break; - } // case 114 - case 122: - { - com.google.cloud.geminidataanalytics.v1beta.AgentInterface m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.parser(), - extensionRegistry); - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.add(m); - } else { - additionalInterfacesBuilder_.addMessage(m); - } - break; - } // case 122 - case 130: - { - protocolVersion_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 130 - case 138: - { - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.parser(), - extensionRegistry); - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(m); - } else { - signaturesBuilder_.addMessage(m); - } - break; - } // case 138 - case 146: - { - iconUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; - break; - } // case 146 - default: - { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // 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 protocolVersion_ = ""; - - /** - * - * - *
        -     * Optional. The version of the A2A protocol this agent supports.
        -     * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The protocolVersion. - */ - public java.lang.String getProtocolVersion() { - java.lang.Object ref = protocolVersion_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protocolVersion_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The version of the A2A protocol this agent supports.
        -     * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for protocolVersion. - */ - public com.google.protobuf.ByteString getProtocolVersionBytes() { - java.lang.Object ref = protocolVersion_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - protocolVersion_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The version of the A2A protocol this agent supports.
        -     * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - protocolVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The version of the A2A protocol this agent supports.
        -     * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearProtocolVersion() { - protocolVersion_ = getDefaultInstance().getProtocolVersion(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The version of the A2A protocol this agent supports.
        -     * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for protocolVersion to set. - * @return This builder for chaining. - */ - public Builder setProtocolVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - protocolVersion_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - - /** - * - * - *
        -     * Optional. A human readable name for the agent.
        -     * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the agent.
        -     * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the agent.
        -     * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - /** - * - * - *
        -     * Optional. A human readable name for the agent.
        -     * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable name for the agent.
        -     * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 java.lang.Object description_ = ""; - - /** - * - * - *
        -     * Optional. A description of the agent's domain of action/solution space.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A description of the agent's domain of action/solution space.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A description of the agent's domain of action/solution space.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A description of the agent's domain of action/solution space.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A description of the agent's domain of action/solution space.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object url_ = ""; - - /** - * - * - *
        -     * Optional. A URL to the address the agent is hosted at.
        -     * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. A URL to the address the agent is hosted at.
        -     * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. A URL to the address the agent is hosted at.
        -     * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - url_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A URL to the address the agent is hosted at.
        -     * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A URL to the address the agent is hosted at.
        -     * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private java.lang.Object preferredTransport_ = ""; - - /** - * - * - *
        -     * Optional. The transport of the preferred endpoint. If empty, defaults to
        -     * JSONRPC.
        -     * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preferredTransport. - */ - public java.lang.String getPreferredTransport() { - java.lang.Object ref = preferredTransport_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - preferredTransport_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The transport of the preferred endpoint. If empty, defaults to
        -     * JSONRPC.
        -     * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for preferredTransport. - */ - public com.google.protobuf.ByteString getPreferredTransportBytes() { - java.lang.Object ref = preferredTransport_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - preferredTransport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The transport of the preferred endpoint. If empty, defaults to
        -     * JSONRPC.
        -     * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The preferredTransport to set. - * @return This builder for chaining. - */ - public Builder setPreferredTransport(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - preferredTransport_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The transport of the preferred endpoint. If empty, defaults to
        -     * JSONRPC.
        -     * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearPreferredTransport() { - preferredTransport_ = getDefaultInstance().getPreferredTransport(); - bitField0_ = (bitField0_ & ~0x00000010); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The transport of the preferred endpoint. If empty, defaults to
        -     * JSONRPC.
        -     * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for preferredTransport to set. - * @return This builder for chaining. - */ - public Builder setPreferredTransportBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - preferredTransport_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private java.util.List - additionalInterfaces_ = java.util.Collections.emptyList(); - - private void ensureAdditionalInterfacesIsMutable() { - if (!((bitField0_ & 0x00000020) != 0)) { - additionalInterfaces_ = - new java.util.ArrayList( - additionalInterfaces_); - bitField0_ |= 0x00000020; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentInterface, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder> - additionalInterfacesBuilder_; - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAdditionalInterfacesList() { - if (additionalInterfacesBuilder_ == null) { - return java.util.Collections.unmodifiableList(additionalInterfaces_); - } else { - return additionalInterfacesBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getAdditionalInterfacesCount() { - if (additionalInterfacesBuilder_ == null) { - return additionalInterfaces_.size(); - } else { - return additionalInterfacesBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface getAdditionalInterfaces( - int index) { - if (additionalInterfacesBuilder_ == null) { - return additionalInterfaces_.get(index); - } else { - return additionalInterfacesBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAdditionalInterfaces( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentInterface value) { - if (additionalInterfacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.set(index, value); - onChanged(); - } else { - additionalInterfacesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAdditionalInterfaces( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder builderForValue) { - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.set(index, builderForValue.build()); - onChanged(); - } else { - additionalInterfacesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAdditionalInterfaces( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface value) { - if (additionalInterfacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.add(value); - onChanged(); - } else { - additionalInterfacesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAdditionalInterfaces( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentInterface value) { - if (additionalInterfacesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.add(index, value); - onChanged(); - } else { - additionalInterfacesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAdditionalInterfaces( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder builderForValue) { - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.add(builderForValue.build()); - onChanged(); - } else { - additionalInterfacesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAdditionalInterfaces( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder builderForValue) { - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.add(index, builderForValue.build()); - onChanged(); - } else { - additionalInterfacesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllAdditionalInterfaces( - java.lang.Iterable - values) { - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, additionalInterfaces_); - onChanged(); - } else { - additionalInterfacesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAdditionalInterfaces() { - if (additionalInterfacesBuilder_ == null) { - additionalInterfaces_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - onChanged(); - } else { - additionalInterfacesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeAdditionalInterfaces(int index) { - if (additionalInterfacesBuilder_ == null) { - ensureAdditionalInterfacesIsMutable(); - additionalInterfaces_.remove(index); - onChanged(); - } else { - additionalInterfacesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder - getAdditionalInterfacesBuilder(int index) { - return internalGetAdditionalInterfacesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder - getAdditionalInterfacesOrBuilder(int index) { - if (additionalInterfacesBuilder_ == null) { - return additionalInterfaces_.get(index); - } else { - return additionalInterfacesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder> - getAdditionalInterfacesOrBuilderList() { - if (additionalInterfacesBuilder_ != null) { - return additionalInterfacesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(additionalInterfaces_); - } - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder - addAdditionalInterfacesBuilder() { - return internalGetAdditionalInterfacesFieldBuilder() - .addBuilder( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder - addAdditionalInterfacesBuilder(int index) { - return internalGetAdditionalInterfacesFieldBuilder() - .addBuilder( - index, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Announcement of additional supported transports.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getAdditionalInterfacesBuilderList() { - return internalGetAdditionalInterfacesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentInterface, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder> - internalGetAdditionalInterfacesFieldBuilder() { - if (additionalInterfacesBuilder_ == null) { - additionalInterfacesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentInterface, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder>( - additionalInterfaces_, - ((bitField0_ & 0x00000020) != 0), - getParentForChildren(), - isClean()); - additionalInterfaces_ = null; - } - return additionalInterfacesBuilder_; - } - - private com.google.cloud.geminidataanalytics.v1beta.AgentProvider provider_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentProvider, - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder> - providerBuilder_; - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the provider field is set. - */ - public boolean hasProvider() { - return ((bitField0_ & 0x00000040) != 0); - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The provider. - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider getProvider() { - if (providerBuilder_ == null) { - return provider_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance() - : provider_; - } else { - return providerBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setProvider(com.google.cloud.geminidataanalytics.v1beta.AgentProvider value) { - if (providerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - provider_ = value; - } else { - providerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setProvider( - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder builderForValue) { - if (providerBuilder_ == null) { - provider_ = builderForValue.build(); - } else { - providerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeProvider(com.google.cloud.geminidataanalytics.v1beta.AgentProvider value) { - if (providerBuilder_ == null) { - if (((bitField0_ & 0x00000040) != 0) - && provider_ != null - && provider_ - != com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance()) { - getProviderBuilder().mergeFrom(value); - } else { - provider_ = value; - } - } else { - providerBuilder_.mergeFrom(value); - } - if (provider_ != null) { - bitField0_ |= 0x00000040; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearProvider() { - bitField0_ = (bitField0_ & ~0x00000040); - provider_ = null; - if (providerBuilder_ != null) { - providerBuilder_.dispose(); - providerBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder getProviderBuilder() { - bitField0_ |= 0x00000040; - onChanged(); - return internalGetProviderFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder - getProviderOrBuilder() { - if (providerBuilder_ != null) { - return providerBuilder_.getMessageOrBuilder(); - } else { - return provider_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentProvider.getDefaultInstance() - : provider_; - } - } - - /** - * - * - *
        -     * Optional. The service provider of the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentProvider, - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder> - internalGetProviderFieldBuilder() { - if (providerBuilder_ == null) { - providerBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentProvider, - com.google.cloud.geminidataanalytics.v1beta.AgentProvider.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder>( - getProvider(), getParentForChildren(), isClean()); - provider_ = null; - } - return providerBuilder_; - } - - private java.lang.Object version_ = ""; - - /** - * - * - *
        -     * Optional. The version of the agent.
        -     * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - public java.lang.String getVersion() { - java.lang.Object ref = version_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - version_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The version of the agent.
        -     * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - public com.google.protobuf.ByteString getVersionBytes() { - java.lang.Object ref = version_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - version_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The version of the agent.
        -     * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The version to set. - * @return This builder for chaining. - */ - public Builder setVersion(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - version_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The version of the agent.
        -     * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearVersion() { - version_ = getDefaultInstance().getVersion(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The version of the agent.
        -     * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for version to set. - * @return This builder for chaining. - */ - public Builder setVersionBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - version_ = value; - bitField0_ |= 0x00000080; - onChanged(); - return this; - } - - private java.lang.Object documentationUrl_ = ""; - - /** - * - * - *
        -     * Optional. A url to provide additional documentation about the agent.
        -     * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The documentationUrl. - */ - public java.lang.String getDocumentationUrl() { - java.lang.Object ref = documentationUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - documentationUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. A url to provide additional documentation about the agent.
        -     * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for documentationUrl. - */ - public com.google.protobuf.ByteString getDocumentationUrlBytes() { - java.lang.Object ref = documentationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - documentationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. A url to provide additional documentation about the agent.
        -     * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - documentationUrl_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A url to provide additional documentation about the agent.
        -     * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDocumentationUrl() { - documentationUrl_ = getDefaultInstance().getDocumentationUrl(); - bitField0_ = (bitField0_ & ~0x00000100); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A url to provide additional documentation about the agent.
        -     * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for documentationUrl to set. - * @return This builder for chaining. - */ - public Builder setDocumentationUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - documentationUrl_ = value; - bitField0_ |= 0x00000100; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder> - capabilitiesBuilder_; - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the capabilities field is set. - */ - public boolean hasCapabilities() { - return ((bitField0_ & 0x00000200) != 0); - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The capabilities. - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities getCapabilities() { - if (capabilitiesBuilder_ == null) { - return capabilities_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance() - : capabilities_; - } else { - return capabilitiesBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCapabilities( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities value) { - if (capabilitiesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - capabilities_ = value; - } else { - capabilitiesBuilder_.setMessage(value); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setCapabilities( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder builderForValue) { - if (capabilitiesBuilder_ == null) { - capabilities_ = builderForValue.build(); - } else { - capabilitiesBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000200; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeCapabilities( - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities value) { - if (capabilitiesBuilder_ == null) { - if (((bitField0_ & 0x00000200) != 0) - && capabilities_ != null - && capabilities_ - != com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities - .getDefaultInstance()) { - getCapabilitiesBuilder().mergeFrom(value); - } else { - capabilities_ = value; - } - } else { - capabilitiesBuilder_.mergeFrom(value); - } - if (capabilities_ != null) { - bitField0_ |= 0x00000200; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearCapabilities() { - bitField0_ = (bitField0_ & ~0x00000200); - capabilities_ = null; - if (capabilitiesBuilder_ != null) { - capabilitiesBuilder_.dispose(); - capabilitiesBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder - getCapabilitiesBuilder() { - bitField0_ |= 0x00000200; - onChanged(); - return internalGetCapabilitiesFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder - getCapabilitiesOrBuilder() { - if (capabilitiesBuilder_ != null) { - return capabilitiesBuilder_.getMessageOrBuilder(); - } else { - return capabilities_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.getDefaultInstance() - : capabilities_; - } - } - - /** - * - * - *
        -     * Optional. A2A Capability set supported by the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder> - internalGetCapabilitiesFieldBuilder() { - if (capabilitiesBuilder_ == null) { - capabilitiesBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder>( - getCapabilities(), getParentForChildren(), isClean()); - capabilities_ = null; - } - return capabilitiesBuilder_; - } - - private static final class SecuritySchemesConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> { - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme build( - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder val) { - if (val instanceof com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) { - return (com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) val; - } - return ((com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - defaultEntry() { - return SecuritySchemesDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final SecuritySchemesConverter securitySchemesConverter = - new SecuritySchemesConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder> - securitySchemes_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder> - internalGetSecuritySchemes() { - if (securitySchemes_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(securitySchemesConverter); - } - return securitySchemes_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder> - internalGetMutableSecuritySchemes() { - if (securitySchemes_ == null) { - securitySchemes_ = new com.google.protobuf.MapFieldBuilder<>(securitySchemesConverter); - } - bitField0_ |= 0x00000400; - onChanged(); - return securitySchemes_; - } - - public int getSecuritySchemesCount() { - return internalGetSecuritySchemes().ensureBuilderMap().size(); - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public boolean containsSecuritySchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetSecuritySchemes().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getSecuritySchemesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - getSecuritySchemes() { - return getSecuritySchemesMap(); - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - getSecuritySchemesMap() { - return internalGetSecuritySchemes().getImmutableMap(); - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.geminidataanalytics.v1beta.SecurityScheme - getSecuritySchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder> - map = internalGetMutableSecuritySchemes().ensureBuilderMap(); - return map.containsKey(key) ? securitySchemesConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getSecuritySchemesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder> - map = internalGetMutableSecuritySchemes().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return securitySchemesConverter.build(map.get(key)); - } - - public Builder clearSecuritySchemes() { - bitField0_ = (bitField0_ & ~0x00000400); - internalGetMutableSecuritySchemes().clear(); - return this; - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - public Builder removeSecuritySchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableSecuritySchemes().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - getMutableSecuritySchemes() { - bitField0_ |= 0x00000400; - return internalGetMutableSecuritySchemes().ensureMessageMap(); - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - public Builder putSecuritySchemes( - java.lang.String key, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableSecuritySchemes().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000400; - return this; - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - public Builder putAllSecuritySchemes( - java.util.Map - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecurityScheme> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableSecuritySchemes().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000400; - return this; - } - - /** - * - * - *
        -     * The security scheme details used for authenticating with this agent.
        -     * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder - putSecuritySchemesBuilderIfAbsent(java.lang.String key) { - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder> - builderMap = internalGetMutableSecuritySchemes().ensureBuilderMap(); - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder entry = - builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) { - entry = ((com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder) entry; - } - - private java.util.List security_ = - java.util.Collections.emptyList(); - - private void ensureSecurityIsMutable() { - if (!((bitField0_ & 0x00000800) != 0)) { - security_ = - new java.util.ArrayList( - security_); - bitField0_ |= 0x00000800; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder> - securityBuilder_; - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public java.util.List getSecurityList() { - if (securityBuilder_ == null) { - return java.util.Collections.unmodifiableList(security_); - } else { - return securityBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public int getSecurityCount() { - if (securityBuilder_ == null) { - return security_.size(); - } else { - return securityBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index) { - if (securityBuilder_ == null) { - return security_.get(index); - } else { - return securityBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder setSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.set(index, value); - onChanged(); - } else { - securityBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder setSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.set(index, builderForValue.build()); - onChanged(); - } else { - securityBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder addSecurity(com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.add(value); - onChanged(); - } else { - securityBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder addSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.add(index, value); - onChanged(); - } else { - securityBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder addSecurity( - com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(builderForValue.build()); - onChanged(); - } else { - securityBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder addSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(index, builderForValue.build()); - onChanged(); - } else { - securityBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder addAllSecurity( - java.lang.Iterable values) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, security_); - onChanged(); - } else { - securityBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder clearSecurity() { - if (securityBuilder_ == null) { - security_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000800); - onChanged(); - } else { - securityBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public Builder removeSecurity(int index) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.remove(index); - onChanged(); - } else { - securityBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder getSecurityBuilder( - int index) { - return internalGetSecurityFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder( - int index) { - if (securityBuilder_ == null) { - return security_.get(index); - } else { - return securityBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public java.util.List - getSecurityOrBuilderList() { - if (securityBuilder_ != null) { - return securityBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(security_); - } - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder addSecurityBuilder() { - return internalGetSecurityFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance()); - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder addSecurityBuilder( - int index) { - return internalGetSecurityFieldBuilder() - .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance()); - } - - /** - * - * - *
        -     * Security requirements for contacting the agent.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - public java.util.List - getSecurityBuilderList() { - return internalGetSecurityFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder> - internalGetSecurityFieldBuilder() { - if (securityBuilder_ == null) { - securityBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder>( - security_, ((bitField0_ & 0x00000800) != 0), getParentForChildren(), isClean()); - security_ = null; - } - return securityBuilder_; - } - - private com.google.protobuf.LazyStringArrayList defaultInputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDefaultInputModesIsMutable() { - if (!defaultInputModes_.isModifiable()) { - defaultInputModes_ = new com.google.protobuf.LazyStringArrayList(defaultInputModes_); - } - bitField0_ |= 0x00001000; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultInputModes. - */ - public com.google.protobuf.ProtocolStringList getDefaultInputModesList() { - defaultInputModes_.makeImmutable(); - return defaultInputModes_; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultInputModes. - */ - public int getDefaultInputModesCount() { - return defaultInputModes_.size(); - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultInputModes at the given index. - */ - public java.lang.String getDefaultInputModes(int index) { - return defaultInputModes_.get(index); - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultInputModes at the given index. - */ - public com.google.protobuf.ByteString getDefaultInputModesBytes(int index) { - return defaultInputModes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The defaultInputModes to set. - * @return This builder for chaining. - */ - public Builder setDefaultInputModes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultInputModesIsMutable(); - defaultInputModes_.set(index, value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The defaultInputModes to add. - * @return This builder for chaining. - */ - public Builder addDefaultInputModes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultInputModesIsMutable(); - defaultInputModes_.add(value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The defaultInputModes to add. - * @return This builder for chaining. - */ - public Builder addAllDefaultInputModes(java.lang.Iterable values) { - ensureDefaultInputModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defaultInputModes_); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearDefaultInputModes() { - defaultInputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00001000); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The set of interaction modes that the agent supports across all
        -     * skills.
        -     * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the defaultInputModes to add. - * @return This builder for chaining. - */ - public Builder addDefaultInputModesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDefaultInputModesIsMutable(); - defaultInputModes_.add(value); - bitField0_ |= 0x00001000; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList defaultOutputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureDefaultOutputModesIsMutable() { - if (!defaultOutputModes_.isModifiable()) { - defaultOutputModes_ = new com.google.protobuf.LazyStringArrayList(defaultOutputModes_); - } - bitField0_ |= 0x00002000; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultOutputModes. - */ - public com.google.protobuf.ProtocolStringList getDefaultOutputModesList() { - defaultOutputModes_.makeImmutable(); - return defaultOutputModes_; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultOutputModes. - */ - public int getDefaultOutputModesCount() { - return defaultOutputModes_.size(); - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultOutputModes at the given index. - */ - public java.lang.String getDefaultOutputModes(int index) { - return defaultOutputModes_.get(index); - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultOutputModes at the given index. - */ - public com.google.protobuf.ByteString getDefaultOutputModesBytes(int index) { - return defaultOutputModes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The defaultOutputModes to set. - * @return This builder for chaining. - */ - public Builder setDefaultOutputModes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultOutputModesIsMutable(); - defaultOutputModes_.set(index, value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The defaultOutputModes to add. - * @return This builder for chaining. - */ - public Builder addDefaultOutputModes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureDefaultOutputModesIsMutable(); - defaultOutputModes_.add(value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The defaultOutputModes to add. - * @return This builder for chaining. - */ - public Builder addAllDefaultOutputModes(java.lang.Iterable values) { - ensureDefaultOutputModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, defaultOutputModes_); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearDefaultOutputModes() { - defaultOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00002000); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The mime types supported as outputs from this agent.
        -     * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the defaultOutputModes to add. - * @return This builder for chaining. - */ - public Builder addDefaultOutputModesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureDefaultOutputModesIsMutable(); - defaultOutputModes_.add(value); - bitField0_ |= 0x00002000; - onChanged(); - return this; - } - - private java.util.List skills_ = - java.util.Collections.emptyList(); - - private void ensureSkillsIsMutable() { - if (!((bitField0_ & 0x00004000) != 0)) { - skills_ = - new java.util.ArrayList( - skills_); - bitField0_ |= 0x00004000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentSkill, - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder> - skillsBuilder_; - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List getSkillsList() { - if (skillsBuilder_ == null) { - return java.util.Collections.unmodifiableList(skills_); - } else { - return skillsBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getSkillsCount() { - if (skillsBuilder_ == null) { - return skills_.size(); - } else { - return skillsBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill getSkills(int index) { - if (skillsBuilder_ == null) { - return skills_.get(index); - } else { - return skillsBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSkills( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentSkill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.set(index, value); - onChanged(); - } else { - skillsBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSkills( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.set(index, builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSkills(com.google.cloud.geminidataanalytics.v1beta.AgentSkill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.add(value); - onChanged(); - } else { - skillsBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSkills( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentSkill value) { - if (skillsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSkillsIsMutable(); - skills_.add(index, value); - onChanged(); - } else { - skillsBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSkills( - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.add(builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSkills( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder builderForValue) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.add(index, builderForValue.build()); - onChanged(); - } else { - skillsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllSkills( - java.lang.Iterable - values) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, skills_); - onChanged(); - } else { - skillsBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSkills() { - if (skillsBuilder_ == null) { - skills_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00004000); - onChanged(); - } else { - skillsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeSkills(int index) { - if (skillsBuilder_ == null) { - ensureSkillsIsMutable(); - skills_.remove(index); - onChanged(); - } else { - skillsBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder getSkillsBuilder( - int index) { - return internalGetSkillsFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder getSkillsOrBuilder( - int index) { - if (skillsBuilder_ == null) { - return skills_.get(index); - } else { - return skillsBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSkillsOrBuilderList() { - if (skillsBuilder_ != null) { - return skillsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(skills_); - } - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder addSkillsBuilder() { - return internalGetSkillsFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.AgentSkill.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder addSkillsBuilder( - int index) { - return internalGetSkillsFieldBuilder() - .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.AgentSkill.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. Skills represent a unit of ability an agent can perform.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSkillsBuilderList() { - return internalGetSkillsFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentSkill, - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder> - internalGetSkillsFieldBuilder() { - if (skillsBuilder_ == null) { - skillsBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentSkill, - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder>( - skills_, ((bitField0_ & 0x00004000) != 0), getParentForChildren(), isClean()); - skills_ = null; - } - return skillsBuilder_; - } - - private boolean supportsAuthenticatedExtendedCard_; - - /** - * - * - *
        -     * Optional. Whether the agent supports providing an extended agent card when
        -     * the user is authenticated.
        -     * 
        - * - * - * bool supports_authenticated_extended_card = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The supportsAuthenticatedExtendedCard. - */ - @java.lang.Override - public boolean getSupportsAuthenticatedExtendedCard() { - return supportsAuthenticatedExtendedCard_; - } - - /** - * - * - *
        -     * Optional. Whether the agent supports providing an extended agent card when
        -     * the user is authenticated.
        -     * 
        - * - * - * bool supports_authenticated_extended_card = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The supportsAuthenticatedExtendedCard to set. - * @return This builder for chaining. - */ - public Builder setSupportsAuthenticatedExtendedCard(boolean value) { - - supportsAuthenticatedExtendedCard_ = value; - bitField0_ |= 0x00008000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Whether the agent supports providing an extended agent card when
        -     * the user is authenticated.
        -     * 
        - * - * - * bool supports_authenticated_extended_card = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearSupportsAuthenticatedExtendedCard() { - bitField0_ = (bitField0_ & ~0x00008000); - supportsAuthenticatedExtendedCard_ = false; - onChanged(); - return this; - } - - private java.util.List - signatures_ = java.util.Collections.emptyList(); - - private void ensureSignaturesIsMutable() { - if (!((bitField0_ & 0x00010000) != 0)) { - signatures_ = - new java.util.ArrayList( - signatures_); - bitField0_ |= 0x00010000; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder> - signaturesBuilder_; - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSignaturesList() { - if (signaturesBuilder_ == null) { - return java.util.Collections.unmodifiableList(signatures_); - } else { - return signaturesBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public int getSignaturesCount() { - if (signaturesBuilder_ == null) { - return signatures_.size(); - } else { - return signaturesBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature getSignatures(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSignatures( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.set(index, value); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setSignatures( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.set(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSignatures( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(value); - onChanged(); - } else { - signaturesBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSignatures( - int index, com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature value) { - if (signaturesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSignaturesIsMutable(); - signatures_.add(index, value); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSignatures( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addSignatures( - int index, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder builderForValue) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.add(index, builderForValue.build()); - onChanged(); - } else { - signaturesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder addAllSignatures( - java.lang.Iterable - values) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, signatures_); - onChanged(); - } else { - signaturesBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearSignatures() { - if (signaturesBuilder_ == null) { - signatures_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00010000); - onChanged(); - } else { - signaturesBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder removeSignatures(int index) { - if (signaturesBuilder_ == null) { - ensureSignaturesIsMutable(); - signatures_.remove(index); - onChanged(); - } else { - signaturesBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder - getSignaturesBuilder(int index) { - return internalGetSignaturesFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder - getSignaturesOrBuilder(int index) { - if (signaturesBuilder_ == null) { - return signatures_.get(index); - } else { - return signaturesBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List< - ? extends com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder> - getSignaturesOrBuilderList() { - if (signaturesBuilder_ != null) { - return signaturesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(signatures_); - } - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder - addSignaturesBuilder() { - return internalGetSignaturesFieldBuilder() - .addBuilder( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder - addSignaturesBuilder(int index) { - return internalGetSignaturesFieldBuilder() - .addBuilder( - index, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.getDefaultInstance()); - } - - /** - * - * - *
        -     * Optional. JSON Web Signatures computed for this AgentCard.
        -     * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public java.util.List - getSignaturesBuilderList() { - return internalGetSignaturesFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder> - internalGetSignaturesFieldBuilder() { - if (signaturesBuilder_ == null) { - signaturesBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder>( - signatures_, ((bitField0_ & 0x00010000) != 0), getParentForChildren(), isClean()); - signatures_ = null; - } - return signaturesBuilder_; - } - - private java.lang.Object iconUrl_ = ""; - - /** - * - * - *
        -     * Optional. An optional URL to an icon for the agent.
        -     * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The iconUrl. - */ - public java.lang.String getIconUrl() { - java.lang.Object ref = iconUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - iconUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. An optional URL to an icon for the agent.
        -     * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for iconUrl. - */ - public com.google.protobuf.ByteString getIconUrlBytes() { - java.lang.Object ref = iconUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - iconUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. An optional URL to an icon for the agent.
        -     * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The iconUrl to set. - * @return This builder for chaining. - */ - public Builder setIconUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - iconUrl_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. An optional URL to an icon for the agent.
        -     * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearIconUrl() { - iconUrl_ = getDefaultInstance().getIconUrl(); - bitField0_ = (bitField0_ & ~0x00020000); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. An optional URL to an icon for the agent.
        -     * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for iconUrl to set. - * @return This builder for chaining. - */ - public Builder setIconUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - iconUrl_ = value; - bitField0_ |= 0x00020000; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentCard) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentCard) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentCard DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentCard(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCard getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentCard parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AgentCard getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardOrBuilder.java deleted file mode 100644 index 84d4479d06fd..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardOrBuilder.java +++ /dev/null @@ -1,793 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentCardOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentCard) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The version of the A2A protocol this agent supports.
        -   * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The protocolVersion. - */ - java.lang.String getProtocolVersion(); - - /** - * - * - *
        -   * Optional. The version of the A2A protocol this agent supports.
        -   * 
        - * - * string protocol_version = 16 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for protocolVersion. - */ - com.google.protobuf.ByteString getProtocolVersionBytes(); - - /** - * - * - *
        -   * Optional. A human readable name for the agent.
        -   * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
        -   * Optional. A human readable name for the agent.
        -   * 
        - * - * string name = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
        -   * Optional. A description of the agent's domain of action/solution space.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. A description of the agent's domain of action/solution space.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. A URL to the address the agent is hosted at.
        -   * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - java.lang.String getUrl(); - - /** - * - * - *
        -   * Optional. A URL to the address the agent is hosted at.
        -   * 
        - * - * string url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
        -   * Optional. The transport of the preferred endpoint. If empty, defaults to
        -   * JSONRPC.
        -   * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The preferredTransport. - */ - java.lang.String getPreferredTransport(); - - /** - * - * - *
        -   * Optional. The transport of the preferred endpoint. If empty, defaults to
        -   * JSONRPC.
        -   * 
        - * - * string preferred_transport = 14 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for preferredTransport. - */ - com.google.protobuf.ByteString getPreferredTransportBytes(); - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAdditionalInterfacesList(); - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentInterface getAdditionalInterfaces(int index); - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getAdditionalInterfacesCount(); - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getAdditionalInterfacesOrBuilderList(); - - /** - * - * - *
        -   * Optional. Announcement of additional supported transports.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentInterface additional_interfaces = 15 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder - getAdditionalInterfacesOrBuilder(int index); - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the provider field is set. - */ - boolean hasProvider(); - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The provider. - */ - com.google.cloud.geminidataanalytics.v1beta.AgentProvider getProvider(); - - /** - * - * - *
        -   * Optional. The service provider of the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentProvider provider = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentProviderOrBuilder getProviderOrBuilder(); - - /** - * - * - *
        -   * Optional. The version of the agent.
        -   * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The version. - */ - java.lang.String getVersion(); - - /** - * - * - *
        -   * Optional. The version of the agent.
        -   * 
        - * - * string version = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for version. - */ - com.google.protobuf.ByteString getVersionBytes(); - - /** - * - * - *
        -   * Optional. A url to provide additional documentation about the agent.
        -   * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The documentationUrl. - */ - java.lang.String getDocumentationUrl(); - - /** - * - * - *
        -   * Optional. A url to provide additional documentation about the agent.
        -   * 
        - * - * string documentation_url = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for documentationUrl. - */ - com.google.protobuf.ByteString getDocumentationUrlBytes(); - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the capabilities field is set. - */ - boolean hasCapabilities(); - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The capabilities. - */ - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilities getCapabilities(); - - /** - * - * - *
        -   * Optional. A2A Capability set supported by the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AgentCapabilities capabilities = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesOrBuilder getCapabilitiesOrBuilder(); - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - int getSecuritySchemesCount(); - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - boolean containsSecuritySchemes(java.lang.String key); - - /** Use {@link #getSecuritySchemesMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getSecuritySchemes(); - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - java.util.Map - getSecuritySchemesMap(); - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getSecuritySchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme defaultValue); - - /** - * - * - *
        -   * The security scheme details used for authenticating with this agent.
        -   * 
        - * - * - * map<string, .google.cloud.geminidataanalytics.v1beta.SecurityScheme> security_schemes = 8; - * - */ - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getSecuritySchemesOrThrow( - java.lang.String key); - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - java.util.List getSecurityList(); - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index); - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - int getSecurityCount(); - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - java.util.List - getSecurityOrBuilderList(); - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 9; - */ - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder(int index); - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultInputModes. - */ - java.util.List getDefaultInputModesList(); - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultInputModes. - */ - int getDefaultInputModesCount(); - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultInputModes at the given index. - */ - java.lang.String getDefaultInputModes(int index); - - /** - * - * - *
        -   * Optional. The set of interaction modes that the agent supports across all
        -   * skills.
        -   * 
        - * - * repeated string default_input_modes = 10 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultInputModes at the given index. - */ - com.google.protobuf.ByteString getDefaultInputModesBytes(int index); - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the defaultOutputModes. - */ - java.util.List getDefaultOutputModesList(); - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of defaultOutputModes. - */ - int getDefaultOutputModesCount(); - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The defaultOutputModes at the given index. - */ - java.lang.String getDefaultOutputModes(int index); - - /** - * - * - *
        -   * Optional. The mime types supported as outputs from this agent.
        -   * 
        - * - * repeated string default_output_modes = 11 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the defaultOutputModes at the given index. - */ - com.google.protobuf.ByteString getDefaultOutputModesBytes(int index); - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List getSkillsList(); - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentSkill getSkills(int index); - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getSkillsCount(); - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getSkillsOrBuilderList(); - - /** - * - * - *
        -   * Optional. Skills represent a unit of ability an agent can perform.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentSkill skills = 12 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder getSkillsOrBuilder(int index); - - /** - * - * - *
        -   * Optional. Whether the agent supports providing an extended agent card when
        -   * the user is authenticated.
        -   * 
        - * - * bool supports_authenticated_extended_card = 13 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The supportsAuthenticatedExtendedCard. - */ - boolean getSupportsAuthenticatedExtendedCard(); - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getSignaturesList(); - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature getSignatures(int index); - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - int getSignaturesCount(); - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - java.util.List - getSignaturesOrBuilderList(); - - /** - * - * - *
        -   * Optional. JSON Web Signatures computed for this AgentCard.
        -   * 
        - * - * - * repeated .google.cloud.geminidataanalytics.v1beta.AgentCardSignature signatures = 17 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder getSignaturesOrBuilder( - int index); - - /** - * - * - *
        -   * Optional. An optional URL to an icon for the agent.
        -   * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The iconUrl. - */ - java.lang.String getIconUrl(); - - /** - * - * - *
        -   * Optional. An optional URL to an icon for the agent.
        -   * 
        - * - * string icon_url = 18 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for iconUrl. - */ - com.google.protobuf.ByteString getIconUrlBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignature.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignature.java deleted file mode 100644 index fc2bf3a28623..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignature.java +++ /dev/null @@ -1,1075 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * AgentCardSignature represents a JWS signature of an AgentCard.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCardSignature} - */ -@com.google.protobuf.Generated -public final class AgentCardSignature extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentCardSignature) - AgentCardSignatureOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentCardSignature"); - } - - // Use AgentCardSignature.newBuilder() to construct. - private AgentCardSignature(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentCardSignature() { - protected_ = ""; - signature_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder.class); - } - - private int bitField0_; - public static final int PROTECTED_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object protected_ = ""; - - /** - * - * - *
        -   * Required. The protected JWS header for the signature. Base64url-encoded.
        -   * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The protected. - */ - @java.lang.Override - public java.lang.String getProtected() { - java.lang.Object ref = protected_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protected_ = s; - return s; - } - } - - /** - * - * - *
        -   * Required. The protected JWS header for the signature. Base64url-encoded.
        -   * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for protected. - */ - @java.lang.Override - public com.google.protobuf.ByteString getProtectedBytes() { - java.lang.Object ref = protected_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - protected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object signature_ = ""; - - /** - * - * - *
        -   * Required. The computed signature, base64url-encoded.
        -   * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The signature. - */ - @java.lang.Override - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } - } - - /** - * - * - *
        -   * Required. The computed signature, base64url-encoded.
        -   * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for signature. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int HEADER_FIELD_NUMBER = 3; - private com.google.protobuf.Struct header_; - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the header field is set. - */ - @java.lang.Override - public boolean hasHeader() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The header. - */ - @java.lang.Override - public com.google.protobuf.Struct getHeader() { - return header_ == null ? com.google.protobuf.Struct.getDefaultInstance() : header_; - } - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getHeaderOrBuilder() { - return header_ == null ? com.google.protobuf.Struct.getDefaultInstance() : header_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(protected_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, protected_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signature_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, signature_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getHeader()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(protected_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, protected_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(signature_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, signature_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHeader()); - } - 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.geminidataanalytics.v1beta.AgentCardSignature)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature other = - (com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature) obj; - - if (!getProtected().equals(other.getProtected())) return false; - if (!getSignature().equals(other.getSignature())) return false; - if (hasHeader() != other.hasHeader()) return false; - if (hasHeader()) { - if (!getHeader().equals(other.getHeader())) 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) + PROTECTED_FIELD_NUMBER; - hash = (53 * hash) + getProtected().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - if (hasHeader()) { - hash = (37 * hash) + HEADER_FIELD_NUMBER; - hash = (53 * hash) + getHeader().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature 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.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - 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.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AgentCardSignature prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * AgentCardSignature represents a JWS signature of an AgentCard.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentCardSignature} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentCardSignature) - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignatureOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.class, - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetHeaderFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - protected_ = ""; - signature_ = ""; - header_ = null; - if (headerBuilder_ != null) { - headerBuilder_.dispose(); - headerBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature build() { - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature result = - new com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.protected_ = protected_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.signature_ = signature_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.header_ = headerBuilder_ == null ? header_ : headerBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature.getDefaultInstance()) - return this; - if (!other.getProtected().isEmpty()) { - protected_ = other.protected_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getSignature().isEmpty()) { - signature_ = other.signature_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasHeader()) { - mergeHeader(other.getHeader()); - } - 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: - { - protected_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - signature_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(internalGetHeaderFieldBuilder().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 protected_ = ""; - - /** - * - * - *
        -     * Required. The protected JWS header for the signature. Base64url-encoded.
        -     * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The protected. - */ - public java.lang.String getProtected() { - java.lang.Object ref = protected_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - protected_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Required. The protected JWS header for the signature. Base64url-encoded.
        -     * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for protected. - */ - public com.google.protobuf.ByteString getProtectedBytes() { - java.lang.Object ref = protected_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - protected_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Required. The protected JWS header for the signature. Base64url-encoded.
        -     * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The protected to set. - * @return This builder for chaining. - */ - public Builder setProtected(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - protected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The protected JWS header for the signature. Base64url-encoded.
        -     * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearProtected() { - protected_ = getDefaultInstance().getProtected(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The protected JWS header for the signature. Base64url-encoded.
        -     * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for protected to set. - * @return This builder for chaining. - */ - public Builder setProtectedBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - protected_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object signature_ = ""; - - /** - * - * - *
        -     * Required. The computed signature, base64url-encoded.
        -     * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The signature. - */ - public java.lang.String getSignature() { - java.lang.Object ref = signature_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signature_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Required. The computed signature, base64url-encoded.
        -     * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for signature. - */ - public com.google.protobuf.ByteString getSignatureBytes() { - java.lang.Object ref = signature_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - signature_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Required. The computed signature, base64url-encoded.
        -     * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The signature to set. - * @return This builder for chaining. - */ - public Builder setSignature(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - signature_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The computed signature, base64url-encoded.
        -     * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return This builder for chaining. - */ - public Builder clearSignature() { - signature_ = getDefaultInstance().getSignature(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The computed signature, base64url-encoded.
        -     * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @param value The bytes for signature to set. - * @return This builder for chaining. - */ - public Builder setSignatureBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - signature_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.Struct header_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - headerBuilder_; - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the header field is set. - */ - public boolean hasHeader() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The header. - */ - public com.google.protobuf.Struct getHeader() { - if (headerBuilder_ == null) { - return header_ == null ? com.google.protobuf.Struct.getDefaultInstance() : header_; - } else { - return headerBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setHeader(com.google.protobuf.Struct value) { - if (headerBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - header_ = value; - } else { - headerBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setHeader(com.google.protobuf.Struct.Builder builderForValue) { - if (headerBuilder_ == null) { - header_ = builderForValue.build(); - } else { - headerBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeHeader(com.google.protobuf.Struct value) { - if (headerBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && header_ != null - && header_ != com.google.protobuf.Struct.getDefaultInstance()) { - getHeaderBuilder().mergeFrom(value); - } else { - header_ = value; - } - } else { - headerBuilder_.mergeFrom(value); - } - if (header_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearHeader() { - bitField0_ = (bitField0_ & ~0x00000004); - header_ = null; - if (headerBuilder_ != null) { - headerBuilder_.dispose(); - headerBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getHeaderBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetHeaderFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getHeaderOrBuilder() { - if (headerBuilder_ != null) { - return headerBuilder_.getMessageOrBuilder(); - } else { - return header_ == null ? com.google.protobuf.Struct.getDefaultInstance() : header_; - } - } - - /** - * - * - *
        -     * Optional. The unprotected JWS header values.
        -     * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetHeaderFieldBuilder() { - if (headerBuilder_ == null) { - headerBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getHeader(), getParentForChildren(), isClean()); - header_ = null; - } - return headerBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentCardSignature) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentCardSignature) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentCardSignature - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentCardSignature parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AgentCardSignature - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignatureOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignatureOrBuilder.java deleted file mode 100644 index bdbee464b31c..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentCardSignatureOrBuilder.java +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentCardSignatureOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentCardSignature) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Required. The protected JWS header for the signature. Base64url-encoded.
        -   * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The protected. - */ - java.lang.String getProtected(); - - /** - * - * - *
        -   * Required. The protected JWS header for the signature. Base64url-encoded.
        -   * 
        - * - * string protected = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for protected. - */ - com.google.protobuf.ByteString getProtectedBytes(); - - /** - * - * - *
        -   * Required. The computed signature, base64url-encoded.
        -   * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The signature. - */ - java.lang.String getSignature(); - - /** - * - * - *
        -   * Required. The computed signature, base64url-encoded.
        -   * 
        - * - * string signature = 2 [(.google.api.field_behavior) = REQUIRED]; - * - * @return The bytes for signature. - */ - com.google.protobuf.ByteString getSignatureBytes(); - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the header field is set. - */ - boolean hasHeader(); - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The header. - */ - com.google.protobuf.Struct getHeader(); - - /** - * - * - *
        -   * Optional. The unprotected JWS header values.
        -   * 
        - * - * .google.protobuf.Struct header = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getHeaderOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtension.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtension.java deleted file mode 100644 index 405ee992e4a1..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtension.java +++ /dev/null @@ -1,1170 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * A declaration of an extension supported by an Agent.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentExtension} - */ -@com.google.protobuf.Generated -public final class AgentExtension extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentExtension) - AgentExtensionOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentExtension"); - } - - // Use AgentExtension.newBuilder() to construct. - private AgentExtension(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentExtension() { - uri_ = ""; - description_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.class, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder.class); - } - - private int bitField0_; - public static final int URI_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object uri_ = ""; - - /** - * - * - *
        -   * Optional. The URI of the extension.
        -   * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. The URI of the extension.
        -   * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DESCRIPTION_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. A description of how this agent uses this extension.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A description of how this agent uses this extension.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int REQUIRED_FIELD_NUMBER = 3; - private boolean required_ = false; - - /** - * - * - *
        -   * Optional. Whether the client must follow specific requirements of the
        -   * extension.
        -   * 
        - * - * bool required = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - - public static final int PARAMS_FIELD_NUMBER = 4; - private com.google.protobuf.Struct params_; - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the params field is set. - */ - @java.lang.Override - public boolean hasParams() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The params. - */ - @java.lang.Override - public com.google.protobuf.Struct getParams() { - return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; - } - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { - return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(uri_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, description_); - } - if (required_ != false) { - output.writeBool(3, required_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getParams()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uri_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, uri_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, description_); - } - if (required_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, required_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getParams()); - } - 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.geminidataanalytics.v1beta.AgentExtension)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AgentExtension other = - (com.google.cloud.geminidataanalytics.v1beta.AgentExtension) obj; - - if (!getUri().equals(other.getUri())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (getRequired() != other.getRequired()) return false; - if (hasParams() != other.hasParams()) return false; - if (hasParams()) { - if (!getParams().equals(other.getParams())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + REQUIRED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getRequired()); - if (hasParams()) { - hash = (37 * hash) + PARAMS_FIELD_NUMBER; - hash = (53 * hash) + getParams().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension 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.geminidataanalytics.v1beta.AgentExtension parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - 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.geminidataanalytics.v1beta.AgentExtension parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AgentExtension prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * A declaration of an extension supported by an Agent.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentExtension} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentExtension) - com.google.cloud.geminidataanalytics.v1beta.AgentExtensionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.class, - com.google.cloud.geminidataanalytics.v1beta.AgentExtension.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentExtension.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetParamsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - uri_ = ""; - description_ = ""; - required_ = false; - params_ = null; - if (paramsBuilder_ != null) { - paramsBuilder_.dispose(); - paramsBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentExtension.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension build() { - com.google.cloud.geminidataanalytics.v1beta.AgentExtension result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentExtension buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentExtension result = - new com.google.cloud.geminidataanalytics.v1beta.AgentExtension(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.AgentExtension result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.uri_ = uri_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.required_ = required_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.params_ = paramsBuilder_ == null ? params_ : paramsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentExtension) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentExtension) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentExtension other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.AgentExtension.getDefaultInstance()) - return this; - if (!other.getUri().isEmpty()) { - uri_ = other.uri_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.getRequired() != false) { - setRequired(other.getRequired()); - } - if (other.hasParams()) { - mergeParams(other.getParams()); - } - 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: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - required_ = input.readBool(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 34: - { - input.readMessage(internalGetParamsFieldBuilder().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 java.lang.Object uri_ = ""; - - /** - * - * - *
        -     * Optional. The URI of the extension.
        -     * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. The URI of the extension.
        -     * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. The URI of the extension.
        -     * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - /** - * - * - *
        -     * Optional. The URI of the extension.
        -     * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearUri() { - uri_ = getDefaultInstance().getUri(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URI of the extension.
        -     * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 description_ = ""; - - /** - * - * - *
        -     * Optional. A description of how this agent uses this extension.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A description of how this agent uses this extension.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A description of how this agent uses this extension.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A description of how this agent uses this extension.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A description of how this agent uses this extension.
        -     * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000002; - onChanged(); - return this; - } - - private boolean required_; - - /** - * - * - *
        -     * Optional. Whether the client must follow specific requirements of the
        -     * extension.
        -     * 
        - * - * bool required = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The required. - */ - @java.lang.Override - public boolean getRequired() { - return required_; - } - - /** - * - * - *
        -     * Optional. Whether the client must follow specific requirements of the
        -     * extension.
        -     * 
        - * - * bool required = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The required to set. - * @return This builder for chaining. - */ - public Builder setRequired(boolean value) { - - required_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Whether the client must follow specific requirements of the
        -     * extension.
        -     * 
        - * - * bool required = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRequired() { - bitField0_ = (bitField0_ & ~0x00000004); - required_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Struct params_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - paramsBuilder_; - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the params field is set. - */ - public boolean hasParams() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The params. - */ - public com.google.protobuf.Struct getParams() { - if (paramsBuilder_ == null) { - return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; - } else { - return paramsBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setParams(com.google.protobuf.Struct value) { - if (paramsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - params_ = value; - } else { - paramsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setParams(com.google.protobuf.Struct.Builder builderForValue) { - if (paramsBuilder_ == null) { - params_ = builderForValue.build(); - } else { - paramsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeParams(com.google.protobuf.Struct value) { - if (paramsBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && params_ != null - && params_ != com.google.protobuf.Struct.getDefaultInstance()) { - getParamsBuilder().mergeFrom(value); - } else { - params_ = value; - } - } else { - paramsBuilder_.mergeFrom(value); - } - if (params_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearParams() { - bitField0_ = (bitField0_ & ~0x00000008); - params_ = null; - if (paramsBuilder_ != null) { - paramsBuilder_.dispose(); - paramsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getParamsBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetParamsFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getParamsOrBuilder() { - if (paramsBuilder_ != null) { - return paramsBuilder_.getMessageOrBuilder(); - } else { - return params_ == null ? com.google.protobuf.Struct.getDefaultInstance() : params_; - } - } - - /** - * - * - *
        -     * Optional. Optional configuration for the extension.
        -     * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetParamsFieldBuilder() { - if (paramsBuilder_ == null) { - paramsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getParams(), getParentForChildren(), isClean()); - params_ = null; - } - return paramsBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentExtension) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentExtension) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentExtension DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentExtension(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentExtension getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentExtension parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AgentExtension getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtensionOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtensionOrBuilder.java deleted file mode 100644 index 2a09540b46b7..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentExtensionOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentExtensionOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentExtension) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The URI of the extension.
        -   * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The uri. - */ - java.lang.String getUri(); - - /** - * - * - *
        -   * Optional. The URI of the extension.
        -   * 
        - * - * string uri = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for uri. - */ - com.google.protobuf.ByteString getUriBytes(); - - /** - * - * - *
        -   * Optional. A description of how this agent uses this extension.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. A description of how this agent uses this extension.
        -   * 
        - * - * string description = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. Whether the client must follow specific requirements of the
        -   * extension.
        -   * 
        - * - * bool required = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The required. - */ - boolean getRequired(); - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the params field is set. - */ - boolean hasParams(); - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The params. - */ - com.google.protobuf.Struct getParams(); - - /** - * - * - *
        -   * Optional. Optional configuration for the extension.
        -   * 
        - * - * .google.protobuf.Struct params = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getParamsOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterfaceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterfaceOrBuilder.java deleted file mode 100644 index fc2d6ebab57b..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterfaceOrBuilder.java +++ /dev/null @@ -1,106 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentInterfaceOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentInterface) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The url this interface is found at.
        -   * 
        - * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - java.lang.String getUrl(); - - /** - * - * - *
        -   * Optional. The url this interface is found at.
        -   * 
        - * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
        -   * Optional. The transport supported at this url.
        -   * 
        - * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The transport. - */ - java.lang.String getTransport(); - - /** - * - * - *
        -   * Optional. The transport supported at this url.
        -   * 
        - * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for transport. - */ - com.google.protobuf.ByteString getTransportBytes(); - - /** - * - * - *
        -   * Optional. Tenant to be set in the request when calling the agent.
        -   * 
        - * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tenant. - */ - java.lang.String getTenant(); - - /** - * - * - *
        -   * Optional. Tenant to be set in the request when calling the agent.
        -   * 
        - * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tenant. - */ - com.google.protobuf.ByteString getTenantBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkill.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkill.java deleted file mode 100644 index bbac7764956b..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkill.java +++ /dev/null @@ -1,2674 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * AgentSkill represents a unit of action/solution that the agent can perform.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentSkill} - */ -@com.google.protobuf.Generated -public final class AgentSkill extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentSkill) - AgentSkillOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AgentSkill"); - } - - // Use AgentSkill.newBuilder() to construct. - private AgentSkill(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AgentSkill() { - id_ = ""; - name_ = ""; - description_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); - inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - security_ = java.util.Collections.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.class, - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder.class); - } - - public static final int ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - - /** - * - * - *
        -   * Optional. Unique identifier of the skill within this agent.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. Unique identifier of the skill within this agent.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 NAME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
        -   * Optional. A human readable name for the skill.
        -   * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A human readable name for the skill.
        -   * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 DESCRIPTION_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. A human readable description of the skill details and behaviors.
        -   * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A human readable description of the skill details and behaviors.
        -   * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int TAGS_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - return tags_; - } - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - public static final int EXAMPLES_FIELD_NUMBER = 5; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList examples_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the examples. - */ - public com.google.protobuf.ProtocolStringList getExamplesList() { - return examples_; - } - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of examples. - */ - public int getExamplesCount() { - return examples_.size(); - } - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The examples at the given index. - */ - public java.lang.String getExamples(int index) { - return examples_.get(index); - } - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the examples at the given index. - */ - public com.google.protobuf.ByteString getExamplesBytes(int index) { - return examples_.getByteString(index); - } - - public static final int INPUT_MODES_FIELD_NUMBER = 6; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList inputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the inputModes. - */ - public com.google.protobuf.ProtocolStringList getInputModesList() { - return inputModes_; - } - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of inputModes. - */ - public int getInputModesCount() { - return inputModes_.size(); - } - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The inputModes at the given index. - */ - public java.lang.String getInputModes(int index) { - return inputModes_.get(index); - } - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the inputModes at the given index. - */ - public com.google.protobuf.ByteString getInputModesBytes(int index) { - return inputModes_.getByteString(index); - } - - public static final int OUTPUT_MODES_FIELD_NUMBER = 7; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList outputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the outputModes. - */ - public com.google.protobuf.ProtocolStringList getOutputModesList() { - return outputModes_; - } - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of outputModes. - */ - public int getOutputModesCount() { - return outputModes_.size(); - } - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The outputModes at the given index. - */ - public java.lang.String getOutputModes(int index) { - return outputModes_.get(index); - } - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the outputModes at the given index. - */ - public com.google.protobuf.ByteString getOutputModesBytes(int index) { - return outputModes_.getByteString(index); - } - - public static final int SECURITY_FIELD_NUMBER = 8; - - @SuppressWarnings("serial") - private java.util.List security_; - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - @java.lang.Override - public java.util.List getSecurityList() { - return security_; - } - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - @java.lang.Override - public java.util.List - getSecurityOrBuilderList() { - return security_; - } - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - @java.lang.Override - public int getSecurityCount() { - return security_.size(); - } - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index) { - return security_.get(index); - } - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder( - int index) { - return security_.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.GeneratedMessage.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); - } - for (int i = 0; i < tags_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, tags_.getRaw(i)); - } - for (int i = 0; i < examples_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 5, examples_.getRaw(i)); - } - for (int i = 0; i < inputModes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 6, inputModes_.getRaw(i)); - } - for (int i = 0; i < outputModes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 7, outputModes_.getRaw(i)); - } - for (int i = 0; i < security_.size(); i++) { - output.writeMessage(8, security_.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.GeneratedMessage.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, name_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); - } - { - int dataSize = 0; - for (int i = 0; i < tags_.size(); i++) { - dataSize += computeStringSizeNoTag(tags_.getRaw(i)); - } - size += dataSize; - size += 1 * getTagsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < examples_.size(); i++) { - dataSize += computeStringSizeNoTag(examples_.getRaw(i)); - } - size += dataSize; - size += 1 * getExamplesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < inputModes_.size(); i++) { - dataSize += computeStringSizeNoTag(inputModes_.getRaw(i)); - } - size += dataSize; - size += 1 * getInputModesList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < outputModes_.size(); i++) { - dataSize += computeStringSizeNoTag(outputModes_.getRaw(i)); - } - size += dataSize; - size += 1 * getOutputModesList().size(); - } - for (int i = 0; i < security_.size(); i++) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, security_.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.geminidataanalytics.v1beta.AgentSkill)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AgentSkill other = - (com.google.cloud.geminidataanalytics.v1beta.AgentSkill) obj; - - if (!getId().equals(other.getId())) return false; - if (!getName().equals(other.getName())) return false; - if (!getDescription().equals(other.getDescription())) return false; - if (!getTagsList().equals(other.getTagsList())) return false; - if (!getExamplesList().equals(other.getExamplesList())) return false; - if (!getInputModesList().equals(other.getInputModesList())) return false; - if (!getOutputModesList().equals(other.getOutputModesList())) return false; - if (!getSecurityList().equals(other.getSecurityList())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getTagsCount() > 0) { - hash = (37 * hash) + TAGS_FIELD_NUMBER; - hash = (53 * hash) + getTagsList().hashCode(); - } - if (getExamplesCount() > 0) { - hash = (37 * hash) + EXAMPLES_FIELD_NUMBER; - hash = (53 * hash) + getExamplesList().hashCode(); - } - if (getInputModesCount() > 0) { - hash = (37 * hash) + INPUT_MODES_FIELD_NUMBER; - hash = (53 * hash) + getInputModesList().hashCode(); - } - if (getOutputModesCount() > 0) { - hash = (37 * hash) + OUTPUT_MODES_FIELD_NUMBER; - hash = (53 * hash) + getOutputModesList().hashCode(); - } - if (getSecurityCount() > 0) { - hash = (37 * hash) + SECURITY_FIELD_NUMBER; - hash = (53 * hash) + getSecurityList().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill 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.geminidataanalytics.v1beta.AgentSkill parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - 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.geminidataanalytics.v1beta.AgentSkill parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AgentSkill prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * AgentSkill represents a unit of action/solution that the agent can perform.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentSkill} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentSkill) - com.google.cloud.geminidataanalytics.v1beta.AgentSkillOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.class, - com.google.cloud.geminidataanalytics.v1beta.AgentSkill.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentSkill.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - name_ = ""; - description_ = ""; - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); - inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - if (securityBuilder_ == null) { - security_ = java.util.Collections.emptyList(); - } else { - security_ = null; - securityBuilder_.clear(); - } - bitField0_ = (bitField0_ & ~0x00000080); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentSkill.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill build() { - com.google.cloud.geminidataanalytics.v1beta.AgentSkill result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentSkill buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentSkill result = - new com.google.cloud.geminidataanalytics.v1beta.AgentSkill(this); - buildPartialRepeatedFields(result); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartialRepeatedFields( - com.google.cloud.geminidataanalytics.v1beta.AgentSkill result) { - if (securityBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0)) { - security_ = java.util.Collections.unmodifiableList(security_); - bitField0_ = (bitField0_ & ~0x00000080); - } - result.security_ = security_; - } else { - result.security_ = securityBuilder_.build(); - } - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.AgentSkill result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.name_ = name_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - tags_.makeImmutable(); - result.tags_ = tags_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - examples_.makeImmutable(); - result.examples_ = examples_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - inputModes_.makeImmutable(); - result.inputModes_ = inputModes_; - } - if (((from_bitField0_ & 0x00000040) != 0)) { - outputModes_.makeImmutable(); - result.outputModes_ = outputModes_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentSkill) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentSkill) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentSkill other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.AgentSkill.getDefaultInstance()) - return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.tags_.isEmpty()) { - if (tags_.isEmpty()) { - tags_ = other.tags_; - bitField0_ |= 0x00000008; - } else { - ensureTagsIsMutable(); - tags_.addAll(other.tags_); - } - onChanged(); - } - if (!other.examples_.isEmpty()) { - if (examples_.isEmpty()) { - examples_ = other.examples_; - bitField0_ |= 0x00000010; - } else { - ensureExamplesIsMutable(); - examples_.addAll(other.examples_); - } - onChanged(); - } - if (!other.inputModes_.isEmpty()) { - if (inputModes_.isEmpty()) { - inputModes_ = other.inputModes_; - bitField0_ |= 0x00000020; - } else { - ensureInputModesIsMutable(); - inputModes_.addAll(other.inputModes_); - } - onChanged(); - } - if (!other.outputModes_.isEmpty()) { - if (outputModes_.isEmpty()) { - outputModes_ = other.outputModes_; - bitField0_ |= 0x00000040; - } else { - ensureOutputModesIsMutable(); - outputModes_.addAll(other.outputModes_); - } - onChanged(); - } - if (securityBuilder_ == null) { - if (!other.security_.isEmpty()) { - if (security_.isEmpty()) { - security_ = other.security_; - bitField0_ = (bitField0_ & ~0x00000080); - } else { - ensureSecurityIsMutable(); - security_.addAll(other.security_); - } - onChanged(); - } - } else { - if (!other.security_.isEmpty()) { - if (securityBuilder_.isEmpty()) { - securityBuilder_.dispose(); - securityBuilder_ = null; - security_ = other.security_; - bitField0_ = (bitField0_ & ~0x00000080); - securityBuilder_ = - com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders - ? internalGetSecurityFieldBuilder() - : null; - } else { - securityBuilder_.addAllMessages(other.security_); - } - } - } - 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: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureTagsIsMutable(); - tags_.add(s); - break; - } // case 34 - case 42: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureExamplesIsMutable(); - examples_.add(s); - break; - } // case 42 - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureInputModesIsMutable(); - inputModes_.add(s); - break; - } // case 50 - case 58: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureOutputModesIsMutable(); - outputModes_.add(s); - break; - } // case 58 - case 66: - { - com.google.cloud.geminidataanalytics.v1beta.Security m = - input.readMessage( - com.google.cloud.geminidataanalytics.v1beta.Security.parser(), - extensionRegistry); - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(m); - } else { - securityBuilder_.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 id_ = ""; - - /** - * - * - *
        -     * Optional. Unique identifier of the skill within this agent.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier of the skill within this agent.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Unique identifier of the skill within this agent.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier of the skill within this agent.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Unique identifier of the skill within this agent.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - - /** - * - * - *
        -     * Optional. A human readable name for the skill.
        -     * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the skill.
        -     * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable name for the skill.
        -     * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - /** - * - * - *
        -     * Optional. A human readable name for the skill.
        -     * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable name for the skill.
        -     * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 java.lang.Object description_ = ""; - - /** - * - * - *
        -     * Optional. A human readable description of the skill details and behaviors.
        -     * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable description of the skill details and behaviors.
        -     * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A human readable description of the skill details and behaviors.
        -     * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable description of the skill details and behaviors.
        -     * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A human readable description of the skill details and behaviors.
        -     * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList tags_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureTagsIsMutable() { - if (!tags_.isModifiable()) { - tags_ = new com.google.protobuf.LazyStringArrayList(tags_); - } - bitField0_ |= 0x00000008; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - public com.google.protobuf.ProtocolStringList getTagsList() { - tags_.makeImmutable(); - return tags_; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - public int getTagsCount() { - return tags_.size(); - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - public java.lang.String getTags(int index) { - return tags_.get(index); - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - public com.google.protobuf.ByteString getTagsBytes(int index) { - return tags_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The tags to set. - * @return This builder for chaining. - */ - public Builder setTags(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.set(index, value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tags to add. - * @return This builder for chaining. - */ - public Builder addTags(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The tags to add. - * @return This builder for chaining. - */ - public Builder addAllTags(java.lang.Iterable values) { - ensureTagsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tags_); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTags() { - tags_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000008); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of tags for the skill to enhance
        -     * categorization/utilization.
        -     * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the tags to add. - * @return This builder for chaining. - */ - public Builder addTagsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureTagsIsMutable(); - tags_.add(value); - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList examples_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureExamplesIsMutable() { - if (!examples_.isModifiable()) { - examples_ = new com.google.protobuf.LazyStringArrayList(examples_); - } - bitField0_ |= 0x00000010; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the examples. - */ - public com.google.protobuf.ProtocolStringList getExamplesList() { - examples_.makeImmutable(); - return examples_; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of examples. - */ - public int getExamplesCount() { - return examples_.size(); - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The examples at the given index. - */ - public java.lang.String getExamples(int index) { - return examples_.get(index); - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the examples at the given index. - */ - public com.google.protobuf.ByteString getExamplesBytes(int index) { - return examples_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The examples to set. - * @return This builder for chaining. - */ - public Builder setExamples(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExamplesIsMutable(); - examples_.set(index, value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The examples to add. - * @return This builder for chaining. - */ - public Builder addExamples(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureExamplesIsMutable(); - examples_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The examples to add. - * @return This builder for chaining. - */ - public Builder addAllExamples(java.lang.Iterable values) { - ensureExamplesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, examples_); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearExamples() { - examples_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000010); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A set of example queries that this skill is designed to address.
        -     * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the examples to add. - * @return This builder for chaining. - */ - public Builder addExamplesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureExamplesIsMutable(); - examples_.add(value); - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList inputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureInputModesIsMutable() { - if (!inputModes_.isModifiable()) { - inputModes_ = new com.google.protobuf.LazyStringArrayList(inputModes_); - } - bitField0_ |= 0x00000020; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the inputModes. - */ - public com.google.protobuf.ProtocolStringList getInputModesList() { - inputModes_.makeImmutable(); - return inputModes_; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of inputModes. - */ - public int getInputModesCount() { - return inputModes_.size(); - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The inputModes at the given index. - */ - public java.lang.String getInputModes(int index) { - return inputModes_.get(index); - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the inputModes at the given index. - */ - public com.google.protobuf.ByteString getInputModesBytes(int index) { - return inputModes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The inputModes to set. - * @return This builder for chaining. - */ - public Builder setInputModes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputModesIsMutable(); - inputModes_.set(index, value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The inputModes to add. - * @return This builder for chaining. - */ - public Builder addInputModes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureInputModesIsMutable(); - inputModes_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The inputModes to add. - * @return This builder for chaining. - */ - public Builder addAllInputModes(java.lang.Iterable values) { - ensureInputModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, inputModes_); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearInputModes() { - inputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000020); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible input modalities supported.
        -     * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the inputModes to add. - * @return This builder for chaining. - */ - public Builder addInputModesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureInputModesIsMutable(); - inputModes_.add(value); - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringArrayList outputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureOutputModesIsMutable() { - if (!outputModes_.isModifiable()) { - outputModes_ = new com.google.protobuf.LazyStringArrayList(outputModes_); - } - bitField0_ |= 0x00000040; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the outputModes. - */ - public com.google.protobuf.ProtocolStringList getOutputModesList() { - outputModes_.makeImmutable(); - return outputModes_; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of outputModes. - */ - public int getOutputModesCount() { - return outputModes_.size(); - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The outputModes at the given index. - */ - public java.lang.String getOutputModes(int index) { - return outputModes_.get(index); - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the outputModes at the given index. - */ - public com.google.protobuf.ByteString getOutputModesBytes(int index) { - return outputModes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The outputModes to set. - * @return This builder for chaining. - */ - public Builder setOutputModes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputModesIsMutable(); - outputModes_.set(index, value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The outputModes to add. - * @return This builder for chaining. - */ - public Builder addOutputModes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureOutputModesIsMutable(); - outputModes_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The outputModes to add. - * @return This builder for chaining. - */ - public Builder addAllOutputModes(java.lang.Iterable values) { - ensureOutputModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, outputModes_); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOutputModes() { - outputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000040); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Possible output modalities produced.
        -     * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the outputModes to add. - * @return This builder for chaining. - */ - public Builder addOutputModesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureOutputModesIsMutable(); - outputModes_.add(value); - bitField0_ |= 0x00000040; - onChanged(); - return this; - } - - private java.util.List security_ = - java.util.Collections.emptyList(); - - private void ensureSecurityIsMutable() { - if (!((bitField0_ & 0x00000080) != 0)) { - security_ = - new java.util.ArrayList( - security_); - bitField0_ |= 0x00000080; - } - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder> - securityBuilder_; - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public java.util.List getSecurityList() { - if (securityBuilder_ == null) { - return java.util.Collections.unmodifiableList(security_); - } else { - return securityBuilder_.getMessageList(); - } - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public int getSecurityCount() { - if (securityBuilder_ == null) { - return security_.size(); - } else { - return securityBuilder_.getCount(); - } - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index) { - if (securityBuilder_ == null) { - return security_.get(index); - } else { - return securityBuilder_.getMessage(index); - } - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder setSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.set(index, value); - onChanged(); - } else { - securityBuilder_.setMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder setSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.set(index, builderForValue.build()); - onChanged(); - } else { - securityBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder addSecurity(com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.add(value); - onChanged(); - } else { - securityBuilder_.addMessage(value); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder addSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security value) { - if (securityBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureSecurityIsMutable(); - security_.add(index, value); - onChanged(); - } else { - securityBuilder_.addMessage(index, value); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder addSecurity( - com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(builderForValue.build()); - onChanged(); - } else { - securityBuilder_.addMessage(builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder addSecurity( - int index, com.google.cloud.geminidataanalytics.v1beta.Security.Builder builderForValue) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.add(index, builderForValue.build()); - onChanged(); - } else { - securityBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder addAllSecurity( - java.lang.Iterable values) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, security_); - onChanged(); - } else { - securityBuilder_.addAllMessages(values); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder clearSecurity() { - if (securityBuilder_ == null) { - security_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000080); - onChanged(); - } else { - securityBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public Builder removeSecurity(int index) { - if (securityBuilder_ == null) { - ensureSecurityIsMutable(); - security_.remove(index); - onChanged(); - } else { - securityBuilder_.remove(index); - } - return this; - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder getSecurityBuilder( - int index) { - return internalGetSecurityFieldBuilder().getBuilder(index); - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder( - int index) { - if (securityBuilder_ == null) { - return security_.get(index); - } else { - return securityBuilder_.getMessageOrBuilder(index); - } - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public java.util.List - getSecurityOrBuilderList() { - if (securityBuilder_ != null) { - return securityBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(security_); - } - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder addSecurityBuilder() { - return internalGetSecurityFieldBuilder() - .addBuilder(com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance()); - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public com.google.cloud.geminidataanalytics.v1beta.Security.Builder addSecurityBuilder( - int index) { - return internalGetSecurityFieldBuilder() - .addBuilder( - index, com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance()); - } - - /** - * - * - *
        -     * Security schemes necessary for the agent to leverage this skill.
        -     * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - public java.util.List - getSecurityBuilderList() { - return internalGetSecurityFieldBuilder().getBuilderList(); - } - - private com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder> - internalGetSecurityFieldBuilder() { - if (securityBuilder_ == null) { - securityBuilder_ = - new com.google.protobuf.RepeatedFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.Security, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder, - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder>( - security_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); - security_ = null; - } - return securityBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentSkill) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentSkill) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentSkill DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentSkill(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AgentSkill getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AgentSkill parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AgentSkill getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkillOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkillOrBuilder.java deleted file mode 100644 index 9e517a934390..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentSkillOrBuilder.java +++ /dev/null @@ -1,382 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AgentSkillOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentSkill) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Unique identifier of the skill within this agent.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The id. - */ - java.lang.String getId(); - - /** - * - * - *
        -   * Optional. Unique identifier of the skill within this agent.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
        -   * Optional. A human readable name for the skill.
        -   * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
        -   * Optional. A human readable name for the skill.
        -   * 
        - * - * string name = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - /** - * - * - *
        -   * Optional. A human readable description of the skill details and behaviors.
        -   * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. A human readable description of the skill details and behaviors.
        -   * 
        - * - * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the tags. - */ - java.util.List getTagsList(); - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of tags. - */ - int getTagsCount(); - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The tags at the given index. - */ - java.lang.String getTags(int index); - - /** - * - * - *
        -   * Optional. A set of tags for the skill to enhance
        -   * categorization/utilization.
        -   * 
        - * - * repeated string tags = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the tags at the given index. - */ - com.google.protobuf.ByteString getTagsBytes(int index); - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the examples. - */ - java.util.List getExamplesList(); - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of examples. - */ - int getExamplesCount(); - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The examples at the given index. - */ - java.lang.String getExamples(int index); - - /** - * - * - *
        -   * Optional. A set of example queries that this skill is designed to address.
        -   * 
        - * - * repeated string examples = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the examples at the given index. - */ - com.google.protobuf.ByteString getExamplesBytes(int index); - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the inputModes. - */ - java.util.List getInputModesList(); - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of inputModes. - */ - int getInputModesCount(); - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The inputModes at the given index. - */ - java.lang.String getInputModes(int index); - - /** - * - * - *
        -   * Optional. Possible input modalities supported.
        -   * 
        - * - * repeated string input_modes = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the inputModes at the given index. - */ - com.google.protobuf.ByteString getInputModesBytes(int index); - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the outputModes. - */ - java.util.List getOutputModesList(); - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of outputModes. - */ - int getOutputModesCount(); - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The outputModes at the given index. - */ - java.lang.String getOutputModes(int index); - - /** - * - * - *
        -   * Optional. Possible output modalities produced.
        -   * 
        - * - * repeated string output_modes = 7 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the outputModes at the given index. - */ - com.google.protobuf.ByteString getOutputModesBytes(int index); - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - java.util.List getSecurityList(); - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - com.google.cloud.geminidataanalytics.v1beta.Security getSecurity(int index); - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - int getSecurityCount(); - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - java.util.List - getSecurityOrBuilderList(); - - /** - * - * - *
        -   * Security schemes necessary for the agent to leverage this skill.
        -   * 
        - * - * repeated .google.cloud.geminidataanalytics.v1beta.Security security = 8; - */ - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder getSecurityOrBuilder(int index); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfo.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfo.java deleted file mode 100644 index 2b51e894ad94..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfo.java +++ /dev/null @@ -1,893 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Defines authentication details, used for push notifications.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AuthenticationInfo} - */ -@com.google.protobuf.Generated -public final class AuthenticationInfo extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) - AuthenticationInfoOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AuthenticationInfo"); - } - - // Use AuthenticationInfo.newBuilder() to construct. - private AuthenticationInfo(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AuthenticationInfo() { - schemes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - credentials_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.class, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder.class); - } - - public static final int SCHEMES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList schemes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the schemes. - */ - public com.google.protobuf.ProtocolStringList getSchemesList() { - return schemes_; - } - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of schemes. - */ - public int getSchemesCount() { - return schemes_.size(); - } - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The schemes at the given index. - */ - public java.lang.String getSchemes(int index) { - return schemes_.get(index); - } - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the schemes at the given index. - */ - public com.google.protobuf.ByteString getSchemesBytes(int index) { - return schemes_.getByteString(index); - } - - public static final int CREDENTIALS_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object credentials_ = ""; - - /** - * - * - *
        -   * Optional. Optional credentials.
        -   * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The credentials. - */ - @java.lang.Override - public java.lang.String getCredentials() { - java.lang.Object ref = credentials_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - credentials_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Optional credentials.
        -   * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for credentials. - */ - @java.lang.Override - public com.google.protobuf.ByteString getCredentialsBytes() { - java.lang.Object ref = credentials_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - credentials_ = 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 < schemes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, schemes_.getRaw(i)); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(credentials_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, credentials_); - } - 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 < schemes_.size(); i++) { - dataSize += computeStringSizeNoTag(schemes_.getRaw(i)); - } - size += dataSize; - size += 1 * getSchemesList().size(); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(credentials_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, credentials_); - } - 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.geminidataanalytics.v1beta.AuthenticationInfo)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo other = - (com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) obj; - - if (!getSchemesList().equals(other.getSchemesList())) return false; - if (!getCredentials().equals(other.getCredentials())) 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 (getSchemesCount() > 0) { - hash = (37 * hash) + SCHEMES_FIELD_NUMBER; - hash = (53 * hash) + getSchemesList().hashCode(); - } - hash = (37 * hash) + CREDENTIALS_FIELD_NUMBER; - hash = (53 * hash) + getCredentials().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo 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.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - 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.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AuthenticationInfo prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Defines authentication details, used for push notifications.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AuthenticationInfo} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.class, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - schemes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - credentials_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo build() { - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo result = - new com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - schemes_.makeImmutable(); - result.schemes_ = schemes_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.credentials_ = credentials_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance()) - return this; - if (!other.schemes_.isEmpty()) { - if (schemes_.isEmpty()) { - schemes_ = other.schemes_; - bitField0_ |= 0x00000001; - } else { - ensureSchemesIsMutable(); - schemes_.addAll(other.schemes_); - } - onChanged(); - } - if (!other.getCredentials().isEmpty()) { - credentials_ = other.credentials_; - 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: - { - java.lang.String s = input.readStringRequireUtf8(); - ensureSchemesIsMutable(); - schemes_.add(s); - break; - } // case 10 - case 18: - { - credentials_ = 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.protobuf.LazyStringArrayList schemes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureSchemesIsMutable() { - if (!schemes_.isModifiable()) { - schemes_ = new com.google.protobuf.LazyStringArrayList(schemes_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the schemes. - */ - public com.google.protobuf.ProtocolStringList getSchemesList() { - schemes_.makeImmutable(); - return schemes_; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of schemes. - */ - public int getSchemesCount() { - return schemes_.size(); - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The schemes at the given index. - */ - public java.lang.String getSchemes(int index) { - return schemes_.get(index); - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the schemes at the given index. - */ - public com.google.protobuf.ByteString getSchemesBytes(int index) { - return schemes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The schemes to set. - * @return This builder for chaining. - */ - public Builder setSchemes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchemesIsMutable(); - schemes_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The schemes to add. - * @return This builder for chaining. - */ - public Builder addSchemes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureSchemesIsMutable(); - schemes_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param values The schemes to add. - * @return This builder for chaining. - */ - public Builder addAllSchemes(java.lang.Iterable values) { - ensureSchemesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, schemes_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearSchemes() { - schemes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -     * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes of the schemes to add. - * @return This builder for chaining. - */ - public Builder addSchemesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureSchemesIsMutable(); - schemes_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object credentials_ = ""; - - /** - * - * - *
        -     * Optional. Optional credentials.
        -     * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The credentials. - */ - public java.lang.String getCredentials() { - java.lang.Object ref = credentials_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - credentials_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Optional credentials.
        -     * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for credentials. - */ - public com.google.protobuf.ByteString getCredentialsBytes() { - java.lang.Object ref = credentials_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - credentials_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Optional credentials.
        -     * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The credentials to set. - * @return This builder for chaining. - */ - public Builder setCredentials(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - credentials_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional credentials.
        -     * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearCredentials() { - credentials_ = getDefaultInstance().getCredentials(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional credentials.
        -     * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for credentials to set. - * @return This builder for chaining. - */ - public Builder setCredentialsBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - credentials_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) - private static final com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthenticationInfo parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AuthenticationInfo - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfoOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfoOrBuilder.java deleted file mode 100644 index 8b8987453a01..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthenticationInfoOrBuilder.java +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AuthenticationInfoOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AuthenticationInfo) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the schemes. - */ - java.util.List getSchemesList(); - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of schemes. - */ - int getSchemesCount(); - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The schemes at the given index. - */ - java.lang.String getSchemes(int index); - - /** - * - * - *
        -   * Optional. Supported authentication schemes - e.g. Basic, Bearer, etc.
        -   * 
        - * - * repeated string schemes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the schemes at the given index. - */ - com.google.protobuf.ByteString getSchemesBytes(int index); - - /** - * - * - *
        -   * Optional. Optional credentials.
        -   * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The credentials. - */ - java.lang.String getCredentials(); - - /** - * - * - *
        -   * Optional. Optional credentials.
        -   * 
        - * - * string credentials = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for credentials. - */ - com.google.protobuf.ByteString getCredentialsBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlow.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlow.java deleted file mode 100644 index a0e0682dccb9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlow.java +++ /dev/null @@ -1,1336 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * AuthorizationCodeOAuthFlow defines an authorization code OAuth flow.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow} - */ -@com.google.protobuf.Generated -public final class AuthorizationCodeOAuthFlow extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - AuthorizationCodeOAuthFlowOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "AuthorizationCodeOAuthFlow"); - } - - // Use AuthorizationCodeOAuthFlow.newBuilder() to construct. - private AuthorizationCodeOAuthFlow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private AuthorizationCodeOAuthFlow() { - authorizationUrl_ = ""; - tokenUrl_ = ""; - refreshUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder.class); - } - - public static final int AUTHORIZATION_URL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object authorizationUrl_ = ""; - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - @java.lang.Override - public java.lang.String getAuthorizationUrl() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationUrlBytes() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authorizationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOKEN_URL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object tokenUrl_ = ""; - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - @java.lang.Override - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REFRESH_URL_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - @java.lang.Override - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPES_FIELD_NUMBER = 4; - - private static final class ScopesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_ScopesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().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.GeneratedMessage.isStringEmpty(authorizationUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, authorizationUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, refreshUrl_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetScopes(), ScopesDefaultEntryHolder.defaultEntry, 4); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authorizationUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, refreshUrl_); - } - for (java.util.Map.Entry entry : - internalGetScopes().getMap().entrySet()) { - com.google.protobuf.MapEntry scopes__ = - ScopesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, scopes__); - } - 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.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow other = - (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) obj; - - if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false; - if (!getTokenUrl().equals(other.getTokenUrl())) return false; - if (!getRefreshUrl().equals(other.getRefreshUrl())) return false; - if (!internalGetScopes().equals(other.internalGetScopes())) 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) + AUTHORIZATION_URL_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationUrl().hashCode(); - hash = (37 * hash) + TOKEN_URL_FIELD_NUMBER; - hash = (53 * hash) + getTokenUrl().hashCode(); - hash = (37 * hash) + REFRESH_URL_FIELD_NUMBER; - hash = (53 * hash) + getRefreshUrl().hashCode(); - if (!internalGetScopes().getMap().isEmpty()) { - hash = (37 * hash) + SCOPES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScopes().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow 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.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - 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.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * AuthorizationCodeOAuthFlow defines an authorization code OAuth flow.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 4: - return internalGetMutableScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - authorizationUrl_ = ""; - tokenUrl_ = ""; - refreshUrl_ = ""; - internalGetMutableScopes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow build() { - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow result = - new com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.authorizationUrl_ = authorizationUrl_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.tokenUrl_ = tokenUrl_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.refreshUrl_ = refreshUrl_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.scopes_ = internalGetScopes(); - result.scopes_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance()) return this; - if (!other.getAuthorizationUrl().isEmpty()) { - authorizationUrl_ = other.authorizationUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getTokenUrl().isEmpty()) { - tokenUrl_ = other.tokenUrl_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getRefreshUrl().isEmpty()) { - refreshUrl_ = other.refreshUrl_; - bitField0_ |= 0x00000004; - onChanged(); - } - internalGetMutableScopes().mergeFrom(other.internalGetScopes()); - bitField0_ |= 0x00000008; - 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: - { - authorizationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - tokenUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - refreshUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - com.google.protobuf.MapEntry scopes__ = - input.readMessage( - ScopesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScopes() - .getMutableMap() - .put(scopes__.getKey(), scopes__.getValue()); - 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 authorizationUrl_ = ""; - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - public java.lang.String getAuthorizationUrl() { - java.lang.Object ref = authorizationUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - public com.google.protobuf.ByteString getAuthorizationUrlBytes() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authorizationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The authorizationUrl to set. - * @return This builder for chaining. - */ - public Builder setAuthorizationUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - authorizationUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearAuthorizationUrl() { - authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for authorizationUrl to set. - * @return This builder for chaining. - */ - public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - authorizationUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object tokenUrl_ = ""; - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tokenUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTokenUrl() { - tokenUrl_ = getDefaultInstance().getTokenUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tokenUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - refreshUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRefreshUrl() { - refreshUrl_ = getDefaultInstance().getRefreshUrl(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - refreshUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - private com.google.protobuf.MapField - internalGetMutableScopes() { - if (scopes_ == null) { - scopes_ = com.google.protobuf.MapField.newMapField(ScopesDefaultEntryHolder.defaultEntry); - } - if (!scopes_.isMutable()) { - scopes_ = scopes_.copy(); - } - bitField0_ |= 0x00000008; - onChanged(); - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScopes() { - bitField0_ = (bitField0_ & ~0x00000008); - internalGetMutableScopes().getMutableMap().clear(); - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - public Builder removeScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScopes().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScopes() { - bitField0_ |= 0x00000008; - return internalGetMutableScopes().getMutableMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - public Builder putScopes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableScopes().getMutableMap().put(key, value); - bitField0_ |= 0x00000008; - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 4; - */ - public Builder putAllScopes(java.util.Map values) { - internalGetMutableScopes().getMutableMap().putAll(values); - bitField0_ |= 0x00000008; - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - private static final com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuthorizationCodeOAuthFlow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlowOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlowOrBuilder.java deleted file mode 100644 index 20c950ad117f..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AuthorizationCodeOAuthFlowOrBuilder.java +++ /dev/null @@ -1,169 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface AuthorizationCodeOAuthFlowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - java.lang.String getAuthorizationUrl(); - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - com.google.protobuf.ByteString getAuthorizationUrlBytes(); - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - java.lang.String getTokenUrl(); - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - com.google.protobuf.ByteString getTokenUrlBytes(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - java.lang.String getRefreshUrl(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - com.google.protobuf.ByteString getRefreshUrlBytes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - int getScopesCount(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - boolean containsScopes(java.lang.String key); - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScopes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - java.util.Map getScopesMap(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - /* nullable */ - java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 4; - */ - java.lang.String getScopesOrThrow(java.lang.String key); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecurityScheme.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReference.java similarity index 58% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecurityScheme.java rename to java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReference.java index 93f3482dd760..cf41efe9eb4d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecurityScheme.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReference.java @@ -15,7 +15,7 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/geminidataanalytics/v1beta/datasource.proto // Protobuf Java Version: 4.33.6 package com.google.cloud.geminidataanalytics.v1beta; @@ -24,16 +24,16 @@ * * *
        - * OpenIdConnectSecurityScheme defines an OpenID Connect security scheme.
        + * Message representing a reference to a single BigQuery dataset.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme} + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference} */ @com.google.protobuf.Generated -public final class OpenIdConnectSecurityScheme extends com.google.protobuf.GeneratedMessage +public final class BigQueryDatasetReference extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) - OpenIdConnectSecuritySchemeOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) + BigQueryDatasetReferenceOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,59 +43,59 @@ public final class OpenIdConnectSecurityScheme extends com.google.protobuf.Gener /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "OpenIdConnectSecurityScheme"); + "BigQueryDatasetReference"); } - // Use OpenIdConnectSecurityScheme.newBuilder() to construct. - private OpenIdConnectSecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use BigQueryDatasetReference.newBuilder() to construct. + private BigQueryDatasetReference(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private OpenIdConnectSecurityScheme() { - description_ = ""; - openIdConnectUrl_ = ""; + private BigQueryDatasetReference() { + projectId_ = ""; + datasetId_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_descriptor; + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_fieldAccessorTable + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder.class); + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder.class); } - public static final int DESCRIPTION_FIELD_NUMBER = 1; + public static final int PROJECT_ID_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; + private volatile java.lang.Object projectId_ = ""; /** * * *
        -   * Optional. Description of this security scheme.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The description. + * @return The projectId. */ @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + projectId_ = s; return s; } } @@ -104,51 +104,51 @@ public java.lang.String getDescription() { * * *
        -   * Optional. Description of this security scheme.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for description. + * @return The bytes for projectId. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int OPEN_ID_CONNECT_URL_FIELD_NUMBER = 2; + public static final int DATASET_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object openIdConnectUrl_ = ""; + private volatile java.lang.Object datasetId_ = ""; /** * * *
        -   * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +   * Required. The dataset ID.
            * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The openIdConnectUrl. + * @return The datasetId. */ @java.lang.Override - public java.lang.String getOpenIdConnectUrl() { - java.lang.Object ref = openIdConnectUrl_; + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - openIdConnectUrl_ = s; + datasetId_ = s; return s; } } @@ -157,20 +157,20 @@ public java.lang.String getOpenIdConnectUrl() { * * *
        -   * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +   * Required. The dataset ID.
            * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for openIdConnectUrl. + * @return The bytes for datasetId. */ @java.lang.Override - public com.google.protobuf.ByteString getOpenIdConnectUrlBytes() { - java.lang.Object ref = openIdConnectUrl_; + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - openIdConnectUrl_ = b; + datasetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -191,11 +191,11 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, projectId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openIdConnectUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, openIdConnectUrl_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, datasetId_); } getUnknownFields().writeTo(output); } @@ -206,11 +206,11 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(projectId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, projectId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(openIdConnectUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, openIdConnectUrl_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(datasetId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, datasetId_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -222,14 +222,14 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme)) { + if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) obj; + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference other = + (com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) obj; - if (!getDescription().equals(other.getDescription())) return false; - if (!getOpenIdConnectUrl().equals(other.getOpenIdConnectUrl())) return false; + if (!getProjectId().equals(other.getProjectId())) return false; + if (!getDatasetId().equals(other.getDatasetId())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -241,68 +241,68 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + OPEN_ID_CONNECT_URL_FIELD_NUMBER; - hash = (53 * hash) + getOpenIdConnectUrl().hashCode(); + hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; + hash = (53 * hash) + getProjectId().hashCode(); + hash = (37 * hash) + DATASET_ID_FIELD_NUMBER; + hash = (53 * hash) + getDatasetId().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference 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.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( 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.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -310,12 +310,12 @@ public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityS PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme parseFrom( + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -333,7 +333,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme prototype) { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -352,33 +352,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * OpenIdConnectSecurityScheme defines an OpenID Connect security scheme.
        +   * Message representing a reference to a single BigQuery dataset.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme} + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_descriptor; + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_fieldAccessorTable + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder - .class); + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.class, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder.class); } // Construct using - // com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.newBuilder() + // com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -389,28 +388,27 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - description_ = ""; - openIdConnectUrl_ = ""; + projectId_ = ""; + datasetId_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_descriptor; + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + return com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference .getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme result = - buildPartial(); + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference build() { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -418,9 +416,9 @@ public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme b } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme(this); + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference result = + new com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -429,22 +427,21 @@ public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme b } private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme result) { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; + result.projectId_ = projectId_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.openIdConnectUrl_ = openIdConnectUrl_; + result.datasetId_ = datasetId_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other - instanceof com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) { return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) other); + (com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) other); } else { super.mergeFrom(other); return this; @@ -452,17 +449,17 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme other) { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference other) { if (other - == com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + == com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference .getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; + if (!other.getProjectId().isEmpty()) { + projectId_ = other.projectId_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getOpenIdConnectUrl().isEmpty()) { - openIdConnectUrl_ = other.openIdConnectUrl_; + if (!other.getDatasetId().isEmpty()) { + datasetId_ = other.datasetId_; bitField0_ |= 0x00000002; onChanged(); } @@ -494,13 +491,13 @@ public Builder mergeFrom( break; case 10: { - description_ = input.readStringRequireUtf8(); + projectId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - openIdConnectUrl_ = input.readStringRequireUtf8(); + datasetId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 @@ -523,25 +520,25 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object description_ = ""; + private java.lang.Object projectId_ = ""; /** * * *
        -     * Optional. Description of this security scheme.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The description. + * @return The projectId. */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + projectId_ = s; return s; } else { return (java.lang.String) ref; @@ -552,19 +549,19 @@ public java.lang.String getDescription() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for description. + * @return The bytes for projectId. */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + projectId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -575,19 +572,19 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The description to set. + * @param value The projectId to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setProjectId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -597,15 +594,15 @@ public Builder setDescription(java.lang.String value) { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + public Builder clearProjectId() { + projectId_ = getDefaultInstance().getProjectId(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -615,44 +612,44 @@ public Builder clearDescription() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. The project ID that the dataset belongs to.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for description to set. + * @param value The bytes for projectId to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setProjectIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + projectId_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object openIdConnectUrl_ = ""; + private java.lang.Object datasetId_ = ""; /** * * *
        -     * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +     * Required. The dataset ID.
              * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The openIdConnectUrl. + * @return The datasetId. */ - public java.lang.String getOpenIdConnectUrl() { - java.lang.Object ref = openIdConnectUrl_; + public java.lang.String getDatasetId() { + java.lang.Object ref = datasetId_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - openIdConnectUrl_ = s; + datasetId_ = s; return s; } else { return (java.lang.String) ref; @@ -663,19 +660,19 @@ public java.lang.String getOpenIdConnectUrl() { * * *
        -     * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +     * Required. The dataset ID.
              * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for openIdConnectUrl. + * @return The bytes for datasetId. */ - public com.google.protobuf.ByteString getOpenIdConnectUrlBytes() { - java.lang.Object ref = openIdConnectUrl_; + public com.google.protobuf.ByteString getDatasetIdBytes() { + java.lang.Object ref = datasetId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - openIdConnectUrl_ = b; + datasetId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -686,19 +683,19 @@ public com.google.protobuf.ByteString getOpenIdConnectUrlBytes() { * * *
        -     * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +     * Required. The dataset ID.
              * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The openIdConnectUrl to set. + * @param value The datasetId to set. * @return This builder for chaining. */ - public Builder setOpenIdConnectUrl(java.lang.String value) { + public Builder setDatasetId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - openIdConnectUrl_ = value; + datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -708,15 +705,15 @@ public Builder setOpenIdConnectUrl(java.lang.String value) { * * *
        -     * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +     * Required. The dataset ID.
              * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearOpenIdConnectUrl() { - openIdConnectUrl_ = getDefaultInstance().getOpenIdConnectUrl(); + public Builder clearDatasetId() { + datasetId_ = getDefaultInstance().getDatasetId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -726,46 +723,45 @@ public Builder clearOpenIdConnectUrl() { * * *
        -     * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        +     * Required. The dataset ID.
              * 
        * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes for openIdConnectUrl to set. + * @param value The bytes for datasetId to set. * @return This builder for chaining. */ - public Builder setOpenIdConnectUrlBytes(com.google.protobuf.ByteString value) { + public Builder setDatasetIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - openIdConnectUrl_ = value; + datasetId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) + private static final com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = - new com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme(); + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference(); } - public static com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + public static com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference 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 OpenIdConnectSecurityScheme parsePartialFrom( + public BigQueryDatasetReference parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -784,17 +780,17 @@ public OpenIdConnectSecurityScheme 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.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference getDefaultInstanceForType() { return DEFAULT_INSTANCE; } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProviderOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReferenceOrBuilder.java similarity index 53% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProviderOrBuilder.java rename to java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReferenceOrBuilder.java index 1faf0f95e351..92ba763816ca 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentProviderOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryDatasetReferenceOrBuilder.java @@ -15,66 +15,66 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/geminidataanalytics/v1beta/datasource.proto // Protobuf Java Version: 4.33.6 package com.google.cloud.geminidataanalytics.v1beta; @com.google.protobuf.Generated -public interface AgentProviderOrBuilder +public interface BigQueryDatasetReferenceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.AgentProvider) + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference) com.google.protobuf.MessageOrBuilder { /** * * *
        -   * Optional. The provider's reference url.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The url. + * @return The projectId. */ - java.lang.String getUrl(); + java.lang.String getProjectId(); /** * * *
        -   * Optional. The provider's reference url.
        +   * Required. The project ID that the dataset belongs to.
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string project_id = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for url. + * @return The bytes for projectId. */ - com.google.protobuf.ByteString getUrlBytes(); + com.google.protobuf.ByteString getProjectIdBytes(); /** * * *
        -   * Optional. The provider's organization name.
        +   * Required. The dataset ID.
            * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The organization. + * @return The datasetId. */ - java.lang.String getOrganization(); + java.lang.String getDatasetId(); /** * * *
        -   * Optional. The provider's organization name.
        +   * Required. The dataset ID.
            * 
        * - * string organization = 2 [(.google.api.field_behavior) = OPTIONAL]; + * string dataset_id = 2 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for organization. + * @return The bytes for datasetId. */ - com.google.protobuf.ByteString getOrganizationBytes(); + com.google.protobuf.ByteString getDatasetIdBytes(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferences.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferences.java index d0598f73d0b3..8244f3f450a9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferences.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferences.java @@ -277,6 +277,96 @@ public int getPropertyGraphReferencesCount() { return propertyGraphReferences_.get(index); } + public static final int SEARCH_SCOPE_FIELD_NUMBER = 3; + private com.google.cloud.geminidataanalytics.v1beta.SearchScope searchScope_; + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + @java.lang.Override + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SearchScope getSearchScope() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance() + : searchScope_; + } + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder + getSearchScopeOrBuilder() { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance() + : searchScope_; + } + public static final int AGENT_CONTEXT_REFERENCE_FIELD_NUMBER = 4; private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference agentContextReference_; @@ -295,7 +385,7 @@ public int getPropertyGraphReferencesCount() { */ @java.lang.Override public boolean hasAgentContextReference() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -359,6 +449,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(2, propertyGraphReferences_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSearchScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(4, getAgentContextReference()); } getUnknownFields().writeTo(output); @@ -379,6 +472,9 @@ public int getSerializedSize() { 2, propertyGraphReferences_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSearchScope()); + } + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAgentContextReference()); } @@ -401,6 +497,10 @@ public boolean equals(final java.lang.Object obj) { if (!getTableReferencesList().equals(other.getTableReferencesList())) return false; if (!getPropertyGraphReferencesList().equals(other.getPropertyGraphReferencesList())) return false; + if (hasSearchScope() != other.hasSearchScope()) return false; + if (hasSearchScope()) { + if (!getSearchScope().equals(other.getSearchScope())) return false; + } if (hasAgentContextReference() != other.hasAgentContextReference()) return false; if (hasAgentContextReference()) { if (!getAgentContextReference().equals(other.getAgentContextReference())) return false; @@ -424,6 +524,10 @@ public int hashCode() { hash = (37 * hash) + PROPERTY_GRAPH_REFERENCES_FIELD_NUMBER; hash = (53 * hash) + getPropertyGraphReferencesList().hashCode(); } + if (hasSearchScope()) { + hash = (37 * hash) + SEARCH_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getSearchScope().hashCode(); + } if (hasAgentContextReference()) { hash = (37 * hash) + AGENT_CONTEXT_REFERENCE_FIELD_NUMBER; hash = (53 * hash) + getAgentContextReference().hashCode(); @@ -576,6 +680,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetTableReferencesFieldBuilder(); internalGetPropertyGraphReferencesFieldBuilder(); + internalGetSearchScopeFieldBuilder(); internalGetAgentContextReferenceFieldBuilder(); } } @@ -598,6 +703,11 @@ public Builder clear() { propertyGraphReferencesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } agentContextReference_ = null; if (agentContextReferenceBuilder_ != null) { agentContextReferenceBuilder_.dispose(); @@ -668,11 +778,16 @@ private void buildPartial0( int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000004) != 0)) { + result.searchScope_ = + searchScopeBuilder_ == null ? searchScope_ : searchScopeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { result.agentContextReference_ = agentContextReferenceBuilder_ == null ? agentContextReference_ : agentContextReferenceBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -747,6 +862,9 @@ public Builder mergeFrom( } } } + if (other.hasSearchScope()) { + mergeSearchScope(other.getSearchScope()); + } if (other.hasAgentContextReference()) { mergeAgentContextReference(other.getAgentContextReference()); } @@ -805,11 +923,18 @@ public Builder mergeFrom( } break; } // case 18 + case 26: + { + input.readMessage( + internalGetSearchScopeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 case 34: { input.readMessage( internalGetAgentContextReferenceFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -1774,6 +1899,311 @@ public Builder removePropertyGraphReferences(int index) { return propertyGraphReferencesBuilder_; } + private com.google.cloud.geminidataanalytics.v1beta.SearchScope searchScope_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.SearchScope, + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder> + searchScopeBuilder_; + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + public boolean hasSearchScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + public com.google.cloud.geminidataanalytics.v1beta.SearchScope getSearchScope() { + if (searchScopeBuilder_ == null) { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance() + : searchScope_; + } else { + return searchScopeBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope(com.google.cloud.geminidataanalytics.v1beta.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + searchScope_ = value; + } else { + searchScopeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setSearchScope( + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder builderForValue) { + if (searchScopeBuilder_ == null) { + searchScope_ = builderForValue.build(); + } else { + searchScopeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeSearchScope(com.google.cloud.geminidataanalytics.v1beta.SearchScope value) { + if (searchScopeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && searchScope_ != null + && searchScope_ + != com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance()) { + getSearchScopeBuilder().mergeFrom(value); + } else { + searchScope_ = value; + } + } else { + searchScopeBuilder_.mergeFrom(value); + } + if (searchScope_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearSearchScope() { + bitField0_ = (bitField0_ & ~0x00000004); + searchScope_ = null; + if (searchScopeBuilder_ != null) { + searchScopeBuilder_.dispose(); + searchScopeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder getSearchScopeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSearchScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder + getSearchScopeOrBuilder() { + if (searchScopeBuilder_ != null) { + return searchScopeBuilder_.getMessageOrBuilder(); + } else { + return searchScope_ == null + ? com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance() + : searchScope_; + } + } + + /** + * + * + *
        +     * Optional. Search over BigQuery resources to discover most relevant tables
        +     * to the query.
        +     *
        +     * When set, at least one of `include_project_ids` or
        +     * `include_dataset_references` must be populated with non-blank identifiers.
        +     * Matches from the two fields are unioned (OR-ed).
        +     *
        +     * Note: `search_scope` is only supported for standalone conversations
        +     * (`ChatRequest.inline_context` or
        +     * `ClientManagedResourceContext.inline_context`) and is not supported in
        +     * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +     * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.SearchScope, + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder> + internalGetSearchScopeFieldBuilder() { + if (searchScopeBuilder_ == null) { + searchScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.SearchScope, + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder, + com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder>( + getSearchScope(), getParentForChildren(), isClean()); + searchScope_ = null; + } + return searchScopeBuilder_; + } + private com.google.cloud.geminidataanalytics.v1beta.AgentContextReference agentContextReference_; private com.google.protobuf.SingleFieldBuilder< @@ -1796,7 +2226,7 @@ public Builder removePropertyGraphReferences(int index) { * @return Whether the agentContextReference field is set. */ public boolean hasAgentContextReference() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1844,7 +2274,7 @@ public Builder setAgentContextReference( } else { agentContextReferenceBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1867,7 +2297,7 @@ public Builder setAgentContextReference( } else { agentContextReferenceBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1886,7 +2316,7 @@ public Builder setAgentContextReference( public Builder mergeAgentContextReference( com.google.cloud.geminidataanalytics.v1beta.AgentContextReference value) { if (agentContextReferenceBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && agentContextReference_ != null && agentContextReference_ != com.google.cloud.geminidataanalytics.v1beta.AgentContextReference @@ -1899,7 +2329,7 @@ public Builder mergeAgentContextReference( agentContextReferenceBuilder_.mergeFrom(value); } if (agentContextReference_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -1917,7 +2347,7 @@ public Builder mergeAgentContextReference( * */ public Builder clearAgentContextReference() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); agentContextReference_ = null; if (agentContextReferenceBuilder_ != null) { agentContextReferenceBuilder_.dispose(); @@ -1940,7 +2370,7 @@ public Builder clearAgentContextReference() { */ public com.google.cloud.geminidataanalytics.v1beta.AgentContextReference.Builder getAgentContextReferenceBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetAgentContextReferenceFieldBuilder().getBuilder(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferencesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferencesOrBuilder.java index 430f2a259ff7..f65e738dfeb3 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferencesOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/BigQueryTableReferencesOrBuilder.java @@ -186,6 +186,79 @@ public interface BigQueryTableReferencesOrBuilder com.google.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceOrBuilder getPropertyGraphReferencesOrBuilder(int index); + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the searchScope field is set. + */ + boolean hasSearchScope(); + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The searchScope. + */ + com.google.cloud.geminidataanalytics.v1beta.SearchScope getSearchScope(); + + /** + * + * + *
        +   * Optional. Search over BigQuery resources to discover most relevant tables
        +   * to the query.
        +   *
        +   * When set, at least one of `include_project_ids` or
        +   * `include_dataset_references` must be populated with non-blank identifiers.
        +   * Matches from the two fields are unioned (OR-ed).
        +   *
        +   * Note: `search_scope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * + * .google.cloud.geminidataanalytics.v1beta.SearchScope search_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder getSearchScopeOrBuilder(); + /** * * diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java index 6aabad32da5d..d5daea77a35d 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ChatRequest.java @@ -88,8 +88,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Unspecified thinking mode, agent will use THINKING mode by default except
        -     * for BigQuery user defaulting to FAST mode by default.
        +     * The default value. For BigQuery and Looker data sources, the agent uses
        +     * FAST. For all other data sources, the agent uses THINKING.
              * 
        * * THINKING_MODE_UNSPECIFIED = 0; @@ -132,8 +132,8 @@ public enum ThinkingMode implements com.google.protobuf.ProtocolMessageEnum { * * *
        -     * Unspecified thinking mode, agent will use THINKING mode by default except
        -     * for BigQuery user defaulting to FAST mode by default.
        +     * The default value. For BigQuery and Looker data sources, the agent uses
        +     * FAST. For all other data sources, the agent uses THINKING.
              * 
        * * THINKING_MODE_UNSPECIFIED = 0; diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlow.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlow.java deleted file mode 100644 index 03e9601e7a85..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlow.java +++ /dev/null @@ -1,1147 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * ClientCredentialsOAuthFlow defines a client credentials OAuth flow.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow} - */ -@com.google.protobuf.Generated -public final class ClientCredentialsOAuthFlow extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - ClientCredentialsOAuthFlowOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ClientCredentialsOAuthFlow"); - } - - // Use ClientCredentialsOAuthFlow.newBuilder() to construct. - private ClientCredentialsOAuthFlow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ClientCredentialsOAuthFlow() { - tokenUrl_ = ""; - refreshUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder.class); - } - - public static final int TOKEN_URL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object tokenUrl_ = ""; - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - @java.lang.Override - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REFRESH_URL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - @java.lang.Override - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPES_FIELD_NUMBER = 3; - - private static final class ScopesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_ScopesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().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.GeneratedMessage.isStringEmpty(tokenUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, refreshUrl_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetScopes(), ScopesDefaultEntryHolder.defaultEntry, 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, refreshUrl_); - } - for (java.util.Map.Entry entry : - internalGetScopes().getMap().entrySet()) { - com.google.protobuf.MapEntry scopes__ = - ScopesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scopes__); - } - 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.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow other = - (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) obj; - - if (!getTokenUrl().equals(other.getTokenUrl())) return false; - if (!getRefreshUrl().equals(other.getRefreshUrl())) return false; - if (!internalGetScopes().equals(other.internalGetScopes())) 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) + TOKEN_URL_FIELD_NUMBER; - hash = (53 * hash) + getTokenUrl().hashCode(); - hash = (37 * hash) + REFRESH_URL_FIELD_NUMBER; - hash = (53 * hash) + getRefreshUrl().hashCode(); - if (!internalGetScopes().getMap().isEmpty()) { - hash = (37 * hash) + SCOPES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScopes().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow 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.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - 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.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * ClientCredentialsOAuthFlow defines a client credentials OAuth flow.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tokenUrl_ = ""; - refreshUrl_ = ""; - internalGetMutableScopes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow build() { - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow result = - buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow result = - new com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tokenUrl_ = tokenUrl_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.refreshUrl_ = refreshUrl_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.scopes_ = internalGetScopes(); - result.scopes_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance()) return this; - if (!other.getTokenUrl().isEmpty()) { - tokenUrl_ = other.tokenUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRefreshUrl().isEmpty()) { - refreshUrl_ = other.refreshUrl_; - bitField0_ |= 0x00000002; - onChanged(); - } - internalGetMutableScopes().mergeFrom(other.internalGetScopes()); - bitField0_ |= 0x00000004; - 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: - { - tokenUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - refreshUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry scopes__ = - input.readMessage( - ScopesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScopes() - .getMutableMap() - .put(scopes__.getKey(), scopes__.getValue()); - 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 tokenUrl_ = ""; - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tokenUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTokenUrl() { - tokenUrl_ = getDefaultInstance().getTokenUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tokenUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRefreshUrl() { - refreshUrl_ = getDefaultInstance().getRefreshUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - private com.google.protobuf.MapField - internalGetMutableScopes() { - if (scopes_ == null) { - scopes_ = com.google.protobuf.MapField.newMapField(ScopesDefaultEntryHolder.defaultEntry); - } - if (!scopes_.isMutable()) { - scopes_ = scopes_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScopes() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableScopes().getMutableMap().clear(); - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder removeScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScopes().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScopes() { - bitField0_ |= 0x00000004; - return internalGetMutableScopes().getMutableMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putScopes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableScopes().getMutableMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putAllScopes(java.util.Map values) { - internalGetMutableScopes().getMutableMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - private static final com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ClientCredentialsOAuthFlow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlowOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlowOrBuilder.java deleted file mode 100644 index e27861285f19..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ClientCredentialsOAuthFlowOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface ClientCredentialsOAuthFlowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - java.lang.String getTokenUrl(); - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - com.google.protobuf.ByteString getTokenUrlBytes(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - java.lang.String getRefreshUrl(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - com.google.protobuf.ByteString getRefreshUrlBytes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - int getScopesCount(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - boolean containsScopes(java.lang.String key); - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScopes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.util.Map getScopesMap(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - /* nullable */ - java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.lang.String getScopesOrThrow(java.lang.String key); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceProto.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceProto.java deleted file mode 100644 index eca786aa09e3..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/DataA2AServiceProto.java +++ /dev/null @@ -1,922 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public final class DataA2AServiceProto extends com.google.protobuf.GeneratedFile { - private DataA2AServiceProto() {} - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "DataA2AServiceProto"); - } - - 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_geminidataanalytics_v1beta_SendMessageConfiguration_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_A2ATask_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_Part_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_Part_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_DataPart_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_A2AMessage_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_A2AArtifact_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AuthenticationInfo_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_SecuritySchemesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCard_SecuritySchemesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentProvider_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCapabilities_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentExtension_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentSkill_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AgentCardSignature_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_StringList_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_StringList_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_Security_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_Security_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_Security_SchemesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_Security_SchemesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_OpenIdConnectSecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_MutualTlsSecurityScheme_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_ScopesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_AuthorizationCodeOAuthFlow_ScopesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_ScopesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_ClientCredentialsOAuthFlow_ScopesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_ScopesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_ScopesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_ScopesEntry_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_ScopesEntry_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_descriptor; - static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_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/geminidataanalytics/v1beta/data_a2a_service.proto\022\'google.cloud.g" - + "eminidataanalytics.v1beta\032\034google/api/an" - + "notations.proto\032\027google/api/client.proto" - + "\032\037google/api/field_behavior.proto\032\034googl" - + "e/protobuf/struct.proto\032\037google/protobuf/timestamp.proto\"\327\001\n" - + "\030SendMessageConfiguration\022#\n" - + "\025accepted_output_modes\030\001 \003(\tB\004\342A\001\001\022`\n" - + "\021push_notification\030\002 \001(\0132?.google.c" - + "loud.geminidataanalytics.v1beta.PushNotificationConfigB\004\342A\001\001\022\034\n" - + "\016history_length\030\003 \001(\005B\004\342A\001\001\022\026\n" - + "\010blocking\030\004 \001(\010B\004\342A\001\001\"\314\002\n" - + "\007A2ATask\022\020\n" - + "\002id\030\001 \001(\tB\004\342A\001\001\022\030\n\n" - + "context_id\030\002 \001(\tB\004\342A\001\001\022I\n" - + "\006status\030\003 \001(\01323.google.clou" - + "d.geminidataanalytics.v1beta.TaskStatusB\004\342A\001\001\022M\n" - + "\tartifacts\030\004 \003(\01324.google.cloud." - + "geminidataanalytics.v1beta.A2AArtifactB\004\342A\001\001\022J\n" - + "\007history\030\005 \003(\01323.google.cloud.gem" - + "inidataanalytics.v1beta.A2AMessageB\004\342A\001\001\022/\n" - + "\010metadata\030\006" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\336\001\n\n" - + "TaskStatus\022G\n" - + "\005state\030\001 \001(\0162" - + "2.google.cloud.geminidataanalytics.v1beta.TaskStateB\004\342A\001\003\022R\n" - + "\006update\030\002 \001(\01323.goog" - + "le.cloud.geminidataanalytics.v1beta.A2AMessageB\004\342A\001\001R\007message\0223\n" - + "\ttimestamp\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\325\001\n" - + "\004Part\022\016\n" - + "\004text\030\001 \001(\tH\000\022A\n" - + "\004file\030\002 \001(\01321.goog" - + "le.cloud.geminidataanalytics.v1beta.FilePartH\000\022A\n" - + "\004data\030\003" - + " \001(\01321.google.cloud.geminidataanalytics.v1beta.DataPartH\000\022/\n" - + "\010metadata\030\004 \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\006\n" - + "\004part\"s\n" - + "\010FilePart\022\027\n\r" - + "file_with_uri\030\001 \001(\tH\000\022\031\n" - + "\017file_with_bytes\030\002 \001(\014H\000\022\027\n" - + "\tmime_type\030\003 \001(\tB\004\342A\001\001\022\022\n" - + "\004name\030\004 \001(\tB\004\342A\001\001B\006\n" - + "\004file\"7\n" - + "\010DataPart\022+\n" - + "\004data\030\001 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\253\002\n\n" - + "A2AMessage\022\030\n\n" - + "message_id\030\001 \001(\tB\004\342A\001\001\022\030\n\n" - + "context_id\030\002 \001(\tB\004\342A\001\001\022\025\n" - + "\007task_id\030\003 \001(\tB\004\342A\001\001\022A\n" - + "\004role\030\004" - + " \001(\0162-.google.cloud.geminidataanalytics.v1beta.RoleB\004\342A\001\001\022D\n" - + "\007content\030\005 \003(\0132-" - + ".google.cloud.geminidataanalytics.v1beta.PartB\004\342A\001\001\022/\n" - + "\010metadata\030\006" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022\030\n\n" - + "extensions\030\007 \003(\tB\004\342A\001\001\"\346\001\n" - + "\013A2AArtifact\022\031\n" - + "\013artifact_id\030\001 \001(\tB\004\342A\001\001\022\022\n" - + "\004name\030\003 \001(\tB\004\342A\001\001\022\031\n" - + "\013description\030\004 \001(\tB\004\342A\001\001\022B\n" - + "\005parts\030\005 \003(\0132-.google" - + ".cloud.geminidataanalytics.v1beta.PartB\004\342A\001\001\022/\n" - + "\010metadata\030\006" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022\030\n\n" - + "extensions\030\007 \003(\tB\004\342A\001\001\"\331\001\n" - + "\025TaskStatusUpdateEvent\022\025\n" - + "\007task_id\030\001 \001(\tB\004\342A\001\001\022\030\n\n" - + "context_id\030\002 \001(\tB\004\342A\001\001\022I\n" - + "\006status\030\003" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.TaskStatusB\004\342A\001\001\022\023\n" - + "\005final\030\004 \001(\010B\004\342A\001\001\022/\n" - + "\010metadata\030\005" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\371\001\n" - + "\027TaskArtifactUpdateEvent\022\025\n" - + "\007task_id\030\001 \001(\tB\004\342A\001\001\022\030\n\n" - + "context_id\030\002 \001(\tB\004\342A\001\001\022L\n" - + "\010artifact\030\003 \001(\01324.goo" - + "gle.cloud.geminidataanalytics.v1beta.A2AArtifactB\004\342A\001\001\022\024\n" - + "\006append\030\004 \001(\010B\004\342A\001\001\022\030\n\n" - + "last_chunk\030\005 \001(\010B\004\342A\001\001\022/\n" - + "\010metadata\030\006" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\255\001\n" - + "\026PushNotificationConfig\022\020\n" - + "\002id\030\001 \001(\tB\004\342A\001\001\022\021\n" - + "\003url\030\002 \001(\tB\004\342A\001\001\022\023\n" - + "\005token\030\003 \001(\tB\004\342A\001\001\022Y\n" - + "\016authentication\030\004 \001(\0132;.google.cloud.gemi" - + "nidataanalytics.v1beta.AuthenticationInfoB\004\342A\001\001\"F\n" - + "\022AuthenticationInfo\022\025\n" - + "\007schemes\030\001 \003(\tB\004\342A\001\001\022\031\n" - + "\013credentials\030\002 \001(\tB\004\342A\001\001\"R\n" - + "\016AgentInterface\022\021\n" - + "\003url\030\001 \001(\tB\004\342A\001\001\022\027\n" - + "\ttransport\030\002 \001(\tB\004\342A\001\001\022\024\n" - + "\006tenant\030\003 \001(\tB\004\342A\001\001\"\234\010\n" - + "\tAgentCard\022\036\n" - + "\020protocol_version\030\020 \001(\tB\004\342A\001\001\022\022\n" - + "\004name\030\001 \001(\tB\004\342A\001\001\022\031\n" - + "\013description\030\002 \001(\tB\004\342A\001\001\022\021\n" - + "\003url\030\003 \001(\tB\004\342A\001\001\022!\n" - + "\023preferred_transport\030\016 \001(\tB\004\342A\001\001\022\\\n" - + "\025additional_interfaces\030\017 \003(\01327.google.cloud.gem" - + "inidataanalytics.v1beta.AgentInterfaceB\004\342A\001\001\022N\n" - + "\010provider\030\004 \001(\01326.google.cloud.ge" - + "minidataanalytics.v1beta.AgentProviderB\004\342A\001\001\022\025\n" - + "\007version\030\005 \001(\tB\004\342A\001\001\022\037\n" - + "\021documentation_url\030\006 \001(\tB\004\342A\001\001\022V\n" - + "\014capabilities\030\007 \001" - + "(\0132:.google.cloud.geminidataanalytics.v1beta.AgentCapabilitiesB\004\342A\001\001\022a\n" - + "\020security_schemes\030\010 \003(\0132G.google.cloud.geminidata" - + "analytics.v1beta.AgentCard.SecuritySchemesEntry\022C\n" - + "\010security\030\t \003(\01321.google.cloud.geminidataanalytics.v1beta.Security\022!\n" - + "\023default_input_modes\030\n" - + " \003(\tB\004\342A\001\001\022\"\n" - + "\024default_output_modes\030\013 \003(\tB\004\342A\001\001\022I\n" - + "\006skills\030\014 " - + "\003(\01323.google.cloud.geminidataanalytics.v1beta.AgentSkillB\004\342A\001\001\0222\n" - + "$supports_authenticated_extended_card\030\r" - + " \001(\010B\004\342A\001\001\022U\n\n" - + "signatures\030\021 \003(\0132;.google.cloud.geminidata" - + "analytics.v1beta.AgentCardSignatureB\004\342A\001\001\022\026\n" - + "\010icon_url\030\022 \001(\tB\004\342A\001\001\032o\n" - + "\024SecuritySchemesEntry\022\013\n" - + "\003key\030\001 \001(\t\022F\n" - + "\005value\030\002 \001(\01327." - + "google.cloud.geminidataanalytics.v1beta.SecurityScheme:\0028\001\">\n\r" - + "AgentProvider\022\021\n" - + "\003url\030\001 \001(\tB\004\342A\001\001\022\032\n" - + "\014organization\030\002 \001(\tB\004\342A\001\001\"\241\001\n" - + "\021AgentCapabilities\022\027\n" - + "\tstreaming\030\001 \001(\010B\004\342A\001\001\022 \n" - + "\022push_notifications\030\002 \001(\010B\004\342A\001\001\022Q\n\n" - + "extensions\030\003 \003(\01327.google.cloud.g" - + "eminidataanalytics.v1beta.AgentExtensionB\004\342A\001\001\"\205\001\n" - + "\016AgentExtension\022\021\n" - + "\003uri\030\001 \001(\tB\004\342A\001\001\022\031\n" - + "\013description\030\002 \001(\tB\004\342A\001\001\022\026\n" - + "\010required\030\003 \001(\010B\004\342A\001\001\022-\n" - + "\006params\030\004" - + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\365\001\n\n" - + "AgentSkill\022\020\n" - + "\002id\030\001 \001(\tB\004\342A\001\001\022\022\n" - + "\004name\030\002 \001(\tB\004\342A\001\001\022\031\n" - + "\013description\030\003 \001(\tB\004\342A\001\001\022\022\n" - + "\004tags\030\004 \003(\tB\004\342A\001\001\022\026\n" - + "\010examples\030\005 \003(\tB\004\342A\001\001\022\031\n" - + "\013input_modes\030\006 \003(\tB\004\342A\001\001\022\032\n" - + "\014output_modes\030\007 \003(\tB\004\342A\001\001\022C\n" - + "\010security\030\010 \003(\01321.google.cloud.geminidataanalytics.v1beta.Security\"u\n" - + "\022AgentCardSignature\022\027\n" - + "\tprotected\030\001 \001(\tB\004\342A\001\002\022\027\n" - + "\tsignature\030\002 \001(\tB\004\342A\001\002\022-\n" - + "\006header\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\"\032\n\n" - + "StringList\022\014\n" - + "\004list\030\001 \003(\t\"\300\001\n" - + "\010Security\022O\n" - + "\007schemes\030\001" - + " \003(\0132>.google.cloud.geminidataanalytics.v1beta.Security.SchemesEntry\032c\n" - + "\014SchemesEntry\022\013\n" - + "\003key\030\001 \001(\t\022B\n" - + "\005value\030\002 \001(\01323.go" - + "ogle.cloud.geminidataanalytics.v1beta.StringList:\0028\001\"\226\004\n" - + "\016SecurityScheme\022`\n" - + "\027api_key_security_scheme\030\001 \001(\0132=.google.cloud." - + "geminidataanalytics.v1beta.APIKeySecuritySchemeH\000\022d\n" - + "\031http_auth_security_scheme\030\002" - + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeH\000\022_\n" - + "\026oauth2_security_scheme\030\003 \001(\0132=.google.cloud.g" - + "eminidataanalytics.v1beta.OAuth2SecuritySchemeH\000\022o\n" - + "\037open_id_connect_security_scheme\030\004 \001(\0132D.google.cloud.geminidataanaly" - + "tics.v1beta.OpenIdConnectSecuritySchemeH\000\022`\n" - + "\024mtls_security_scheme\030\005 \001(\0132@.google" - + ".cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeH\000B\010\n" - + "\006scheme\"]\n" - + "\024APIKeySecurityScheme\022\031\n" - + "\013description\030\001 \001(\tB\004\342A\001\001\022\026\n" - + "\010location\030\002 \001(\tB\004\342A\001\001\022\022\n" - + "\004name\030\003 \001(\tB\004\342A\001\001\"f\n" - + "\026HTTPAuthSecurityScheme\022\031\n" - + "\013description\030\001 \001(\tB\004\342A\001\001\022\024\n" - + "\006scheme\030\002 \001(\tB\004\342A\001\001\022\033\n\r" - + "bearer_format\030\003 \001(\tB\004\342A\001\001\"\236\001\n" - + "\024OAuth2SecurityScheme\022\031\n" - + "\013description\030\001 \001(\tB\004\342A\001\001\022H\n" - + "\005flows\030\002" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.OAuthFlowsB\004\342A\001\001\022!\n" - + "\023oauth2_metadata_url\030\003 \001(\tB\004\342A\001\001\"[\n" - + "\033OpenIdConnectSecurityScheme\022\031\n" - + "\013description\030\001 \001(\tB\004\342A\001\001\022!\n" - + "\023open_id_connect_url\030\002 \001(\tB\004\342A\001\001\"4\n" - + "\027MutualTlsSecurityScheme\022\031\n" - + "\013description\030\001 \001(\tB\004\342A\001\001\"\372\002\n\n" - + "OAuthFlows\022a\n" - + "\022authorization_code\030\001 \001(\0132C.google.cloud.gemin" - + "idataanalytics.v1beta.AuthorizationCodeOAuthFlowH\000\022a\n" - + "\022client_credentials\030\002 \001(\0132C" - + ".google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowH\000\022N\n" - + "\010implicit\030\003" - + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowH\000\022N\n" - + "\010password\030\004" - + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowH\000B\006\n" - + "\004flow\"\201\002\n" - + "\032AuthorizationCodeOAuthFlow\022\037\n" - + "\021authorization_url\030\001 \001(\tB\004\342A\001\001\022\027\n" - + "\ttoken_url\030\002 \001(\tB\004\342A\001\001\022\031\n" - + "\013refresh_url\030\003 \001(\tB\004\342A\001\001\022_\n" - + "\006scopes\030\004 \003(\0132O.google.cloud.geminidataanaly" - + "tics.v1beta.AuthorizationCodeOAuthFlow.ScopesEntry\032-\n" - + "\013ScopesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r" - + "\n" - + "\005value\030\002 \001(\t:\0028\001\"\340\001\n" - + "\032ClientCredentialsOAuthFlow\022\027\n" - + "\ttoken_url\030\001 \001(\tB\004\342A\001\001\022\031\n" - + "\013refresh_url\030\002 \001(\tB\004\342A\001\001\022_\n" - + "\006scopes\030\003 \003(\0132O.g" - + "oogle.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.ScopesEntry\032-\n" - + "\013ScopesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\326\001\n" - + "\021ImplicitOAuthFlow\022\037\n" - + "\021authorization_url\030\001 \001(\tB\004\342A\001\001\022\031\n" - + "\013refresh_url\030\002 \001(\tB\004\342A\001\001\022V\n" - + "\006scopes\030\003 \003(\0132F.google.cloud.ge" - + "minidataanalytics.v1beta.ImplicitOAuthFlow.ScopesEntry\032-\n" - + "\013ScopesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\316\001\n" - + "\021PasswordOAuthFlow\022\027\n" - + "\ttoken_url\030\001 \001(\tB\004\342A\001\001\022\031\n" - + "\013refresh_url\030\002 \001(\tB\004\342A\001\001\022V\n" - + "\006scopes\030\003 \003(\0132F.google" - + ".cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.ScopesEntry\032-\n" - + "\013ScopesEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"\207\002\n" - + "\022SendMessageRequest\022J\n" - + "\007message\030\001 \001(\01323.google." - + "cloud.geminidataanalytics.v1beta.A2AMessageB\004\342A\001\002\022^\n\r" - + "configuration\030\002 \001(\0132A.googl" - + "e.cloud.geminidataanalytics.v1beta.SendMessageConfigurationB\004\342A\001\001\022/\n" - + "\010metadata\030\003 \001(\0132\027.google.protobuf.StructB\004\342A\001\001\022\024\n" - + "\006tenant\030\004 \001(\tB\004\342A\001\001\"+\n" - + "\023GetAgentCardRequest\022\024\n" - + "\006tenant\030\001 \001(\tB\004\342A\001\001\"\257\001\n" - + "\023SendMessageResponse\022@\n" - + "\004task\030\001" - + " \001(\01320.google.cloud.geminidataanalytics.v1beta.A2ATaskH\000\022K\n" - + "\003msg\030\002" - + " \001(\01323.google.cloud.geminidataanalytics.v1beta.A2AMessageH\000R\007messageB\t\n" - + "\007payload\"\340\002\n" - + "\016StreamResponse\022@\n" - + "\004task\030\001 \001(\01320.googl" - + "e.cloud.geminidataanalytics.v1beta.A2ATaskH\000\022K\n" - + "\003msg\030\002 \001(\01323.google.cloud.geminid" - + "ataanalytics.v1beta.A2AMessageH\000R\007message\022W\n\r" - + "status_update\030\003 \001(\0132>.google.cloud." - + "geminidataanalytics.v1beta.TaskStatusUpdateEventH\000\022[\n" - + "\017artifact_update\030\004 \001(\0132@.go" - + "ogle.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventH\000B\t\n" - + "\007payload*\372\001\n" - + "\tTaskState\022\032\n" - + "\026TASK_STATE_UNSPECIFIED\020\000\022\030\n" - + "\024TASK_STATE_SUBMITTED\020\001\022\026\n" - + "\022TASK_STATE_WORKING\020\002\022\030\n" - + "\024TASK_STATE_COMPLETED\020\003\022\025\n" - + "\021TASK_STATE_FAILED\020\004\022\030\n" - + "\024TASK_STATE_CANCELLED\020\005\022\035\n" - + "\031TASK_STATE_INPUT_REQUIRED\020\006\022\027\n" - + "\023TASK_STATE_REJECTED\020\007\022\034\n" - + "\030TASK_STATE_AUTH_REQUIRED\020\010*;\n" - + "\004Role\022\024\n" - + "\020ROLE_UNSPECIFIED\020\000\022\r\n" - + "\tROLE_USER\020\001\022\016\n\n" - + "ROLE_AGENT\020\0022\206\010\n" - + "\016DataA2AService\022\273\002\n" - + "\013SendMessage\022;.google.cloud.geminidataanalytics.v1beta.SendMessageReq" - + "uest\032<.google.cloud.geminidataanalytics." - + "v1beta.SendMessageResponse\"\260\001\332A\016tenant,m" - + "essage\202\323\344\223\002\230\001\"D/v1beta/a2a/{tenant=proje" - + "cts/*/locations/*/agents/*}/v1/message:send:\001*ZM\"H/v1beta/a2a/{tenant=projects/*" - + "/locations/*/dataAgents/*}/v1/message:send:\001*\022\305\002\n" - + "\024SendStreamingMessage\022;.google.cloud.geminidataanalytics.v1beta.SendMes" - + "sageRequest\0327.google.cloud.geminidataana" - + "lytics.v1beta.StreamResponse\"\264\001\332A\016tenant" - + ",message\202\323\344\223\002\234\001\"F/v1beta/a2a/{tenant=pro" - + "jects/*/locations/*/agents/*}/v1/message:stream:\001*ZO\"J/v1beta/a2a/{tenant=projec" - + "ts/*/locations/*/dataAgents/*}/v1/message:stream:\001*0\001\022\225\002\n" - + "\014GetAgentCard\022<.google.cloud.geminidataanalytics.v1beta.GetAgen" - + "tCardRequest\0322.google.cloud.geminidataan" - + "alytics.v1beta.AgentCard\"\222\001\332A\006tenant\202\323\344\223" - + "\002\202\001\022.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\253\001\n" + + "lytics.v1beta.BigQueryPropertyGraphReferenceB\004\342A\001\001\022P\n" + + "\014search_scope\030\003 \001(\01324.googl" + + "e.cloud.geminidataanalytics.v1beta.SearchScopeB\004\342A\001\001\022e\n" + + "\027agent_context_reference\030\004" + + " \001(\0132>.google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\253\001\n" + "\026BigQueryTableReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + "dataset_id\030\003 \001(\tB\004\342A\001\002\022\026\n" + "\010table_id\030\004 \001(\tB\004\342A\001\002\022E\n" - + "\006schema\030\006 \001(\0132/.googl" - + "e.cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001\"\201\001\n" + + "\006schema\030\006 \001(\0132/.goo" + + "gle.cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001\"N\n" + + "\030BigQueryDatasetReference\022\030\n" + + "\n" + + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" + + "dataset_id\030\002 \001(\tB\004\342A\001\002\"\235\001\n" + + "\013SearchScope\022!\n" + + "\023include_project_ids\030\001 \003(\tB\004\342A\001\001\022k\n" + + "\032include_dataset_references\030\002 \003(\0132A.google.cloud.geminida" + + "taanalytics.v1beta.BigQueryDatasetReferenceB\004\342A\001\001\"\201\001\n" + "\032StudioDatasourceReferences\022c\n" - + "\021studio_references\030\002 \003(\0132B.google.cloud" - + ".geminidataanalytics.v1beta.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + + "\021studio_references\030\002 \003(\0132B.google.clo" + + "ud.geminidataanalytics.v1beta.StudioDatasourceReferenceB\004\342A\001\001\"8\n" + "\031StudioDatasourceReference\022\033\n\r" + "datasource_id\030\001 \001(\tB\004\342A\001\002\"\336\001\n" + "\020AlloyDbReference\022c\n" - + "\022database_reference\030\001 \001(\0132A.google.cloud.geminidataanalytic" - + "s.v1beta.AlloyDbDatabaseReferenceB\004\342A\001\002\022e\n" - + "\027agent_context_reference\030\003 \001(\0132>.googl" - + "e.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"w\n" + + "\022database_reference\030\001 \001(\0132A.google.cloud.geminidataanalyt" + + "ics.v1beta.AlloyDbDatabaseReferenceB\004\342A\001\002\022e\n" + + "\027agent_context_reference\030\003 \001(\0132>.goo" + + "gle.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"w\n" + "\026DatabaseTableReference\022\026\n" + "\010table_id\030\001 \001(\tB\004\342A\001\002\022E\n" + "\006schema\030\002" @@ -204,83 +222,85 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013instance_id\030\004 \001(\tB\004\342A\001\002\022\031\n" + "\013database_id\030\005 \001(\tB\004\342A\001\002\022\027\n" + "\ttable_ids\030\006 \003(\tB\004\342A\001\001\022h\n" - + "\031database_table_references\030\007 \003(\013" - + "2?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\340\001\n" + + "\031database_table_references\030\007 \003" + + "(\0132?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\340\001\n" + "\021BigtableReference\022d\n" - + "\022database_reference\030\001 \001(" - + "\0132B.google.cloud.geminidataanalytics.v1beta.BigtableDatabaseReferenceB\004\342A\001\002\022e\n" - + "\027agent_context_reference\030\002 \001(\0132>.google.cl" - + "oud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\323\001\n" + + "\022database_reference\030\001 " + + "\001(\0132B.google.cloud.geminidataanalytics.v1beta.BigtableDatabaseReferenceB\004\342A\001\002\022e\n" + + "\027agent_context_reference\030\002 \001(\0132>.google." + + "cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\323\001\n" + "\031BigtableDatabaseReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013instance_id\030\002 \001(\tB\004\342A\001\002\022\027\n" + "\ttable_ids\030\003 \003(\tB\004\342A\001\001\022h\n" - + "\031database_table_references\030\004 \003(" - + "\0132?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\342\001\n" + + "\031database_table_references\030\004 " + + "\003(\0132?.google.cloud.geminidataanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\342\001\n" + "\022FirestoreReference\022e\n" - + "\022database_reference\030\001 \001(\0132C.google.cloud.geminidataanalytics.v" - + "1beta.FirestoreDatabaseReferenceB\004\342A\001\002\022e\n" - + "\027agent_context_reference\030\002 \001(\0132>.google" - + ".cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\331\001\n" + + "\022database_reference\030\001 \001(\0132C.google.cloud.geminidataanalytics" + + ".v1beta.FirestoreDatabaseReferenceB\004\342A\001\002\022e\n" + + "\027agent_context_reference\030\002 \001(\0132>.goog" + + "le.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\331\001\n" + "\032FirestoreDatabaseReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013database_id\030\002 \001(\tB\004\342A\001\002\022\034\n" + "\016collection_ids\030\003 \003(\tB\004\342A\001\001\022h\n" - + "\031database_table_references\030\004 \003(\0132?.google.cloud.geminidataanal" - + "ytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\336\001\n" + + "\031database_table_references\030\004 \003(\0132?.google.cloud.geminidataan" + + "alytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\"\336\001\n" + "\020SpannerReference\022c\n" - + "\022database_reference\030\001 \001(\0132A.google.cloud.geminidataanal" - + "ytics.v1beta.SpannerDatabaseReferenceB\004\342A\001\002\022e\n" - + "\027agent_context_reference\030\002 \001(\0132>.g" - + "oogle.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\274\003\n" + + "\022database_reference\030\001 \001(\0132A.google.cloud.geminidataan" + + "alytics.v1beta.SpannerDatabaseReferenceB\004\342A\001\002\022e\n" + + "\027agent_context_reference\030\002 \001(\0132>" + + ".google.cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\325\003\n" + "\030SpannerDatabaseReference\022^\n" - + "\006engine\030\006 \001(\0162H.google" - + ".cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\004\342A\001\002\022\030\n\n" + + "\006engine\030\006 \001(\0162H.goog" + + "le.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference.EngineB\004\342A\001\002\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\031\n" + "\013instance_id\030\003 \001(\tB\004\342A\001\002\022\031\n" + "\013database_id\030\004 \001(\tB\004\342A\001\002\022\027\n" + "\ttable_ids\030\005 \003(\tB\004\342A\001\001\022h\n" - + "\031database_table_references\030\007 \003(\0132?.google.cloud.geminidataana" - + "lytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\022\026\n" + + "\031database_table_references\030\007 \003(\0132?.google.cloud.geminidataa" + + "nalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\022\026\n" + "\010priority\030\010 \001(\tB\004\342A\001\001\022\023\n" - + "\013request_tag\030\t \001(\t\"@\n" + + "\013request_tag\030\t \001(\t\022\027\n" + + "\tgraph_ids\030\n" + + " \003(\tB\004\342A\001\001\"@\n" + "\006Engine\022\026\n" + "\022ENGINE_UNSPECIFIED\020\000\022\016\n\n" + "GOOGLE_SQL\020\001\022\016\n\n" + "POSTGRESQL\020\002\"\340\001\n" + "\021CloudSqlReference\022d\n" - + "\022database_reference\030\001 " - + "\001(\0132B.google.cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\004\342A\001\002\022e\n" - + "\027agent_context_reference\030\002 \001(\0132>.google." - + "cloud.geminidataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\242\003\n" + + "\022database_reference\030\001 \001(\0132B.google." + + "cloud.geminidataanalytics.v1beta.CloudSqlDatabaseReferenceB\004\342A\001\002\022e\n" + + "\027agent_context_reference\030\002 \001(\0132>.google.cloud.geminid" + + "ataanalytics.v1beta.AgentContextReferenceB\004\342A\001\001\"\242\003\n" + "\031CloudSqlDatabaseReference\022_\n" - + "\006engine\030\001 \001(\0162I.google.clou" - + "d.geminidataanalytics.v1beta.CloudSqlDatabaseReference.EngineB\004\342A\001\002\022\030\n\n" + + "\006engine\030\001 \001(\0162I.google.cloud.geminidataa" + + "nalytics.v1beta.CloudSqlDatabaseReference.EngineB\004\342A\001\002\022\030\n\n" + "project_id\030\002 \001(\tB\004\342A\001\002\022\024\n" + "\006region\030\003 \001(\tB\004\342A\001\002\022\031\n" + "\013instance_id\030\004 \001(\tB\004\342A\001\002\022\031\n" + "\013database_id\030\005 \001(\tB\004\342A\001\002\022\027\n" + "\ttable_ids\030\007 \003(\tB\004\342A\001\001\022h\n" - + "\031database_table_references\030\010 \003(\0132?.google.c" - + "loud.geminidataanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\";\n" + + "\031database_table_references\030\010 \003(\0132?.google.cloud.geminida" + + "taanalytics.v1beta.DatabaseTableReferenceB\004\342A\001\001\";\n" + "\006Engine\022\026\n" + "\022ENGINE_UNSPECIFIED\020\000\022\016\n\n" + "POSTGRESQL\020\001\022\t\n" + "\005MYSQL\020\002\"\317\001\n" + "\027LookerExploreReferences\022a\n" - + "\022explore_references\030\001 \003(\0132?.google.cloud.geminid" - + "ataanalytics.v1beta.LookerExploreReferenceB\004\342A\001\002\022Q\n" - + "\013credentials\030\002 \001(\01324.google.c" - + "loud.geminidataanalytics.v1beta.CredentialsB\006\030\001\342A\001\001\"\251\002\n" + + "\022explore_references\030\001" + + " \003(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceB\004\342A\001\002\022Q\n" + + "\013credentials\030\002 \001(\01324.google.cloud.geminida" + + "taanalytics.v1beta.CredentialsB\006\030\001\342A\001\001\"\251\002\n" + "\026LookerExploreReference\022\035\n" + "\023looker_instance_uri\030\t \001(\tH\000\022j\n" + "\034private_looker_instance_info\030\n" - + " \001(\0132B.google.clo" - + "ud.geminidataanalytics.v1beta.PrivateLookerInstanceInfoH\000\022\032\n" + + " \001(\0132B.google.cloud.geminidata" + + "analytics.v1beta.PrivateLookerInstanceInfoH\000\022\032\n" + "\014lookml_model\030\004 \001(\tB\004\342A\001\002\022\025\n" + "\007explore\030\005 \001(\tB\004\342A\001\002\022E\n" - + "\006schema\030\010" - + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001B\n\n" + + "\006schema\030\010 \001(\0132/.google" + + ".cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001B\n\n" + "\010instance\"u\n" + "\036BigQueryPropertyGraphReference\022\030\n\n" + "project_id\030\001 \001(\tB\004\342A\001\002\022\030\n\n" @@ -290,25 +310,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022looker_instance_id\030\001 \001(\t\022\036\n" + "\026service_directory_name\030\002 \001(\t\"\270\007\n\n" + "Datasource\022c\n" - + "\030bigquery_table_reference\030\001" - + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + + "\030bigquery_table_reference\030\001 \001(\0132?.go" + + "ogle.cloud.geminidataanalytics.v1beta.BigQueryTableReferenceH\000\022\036\n" + "\024studio_datasource_id\030\002 \001(\tH\000\022c\n" - + "\030looker_explore_reference\030\004 \001(\0132?.google.cloud.gem" - + "inidataanalytics.v1beta.LookerExploreReferenceH\000\022W\n" - + "\022alloy_db_reference\030\014 \001(\01329.g" - + "oogle.cloud.geminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + + "\030looker_explore_reference\030\004" + + " \001(\0132?.google.cloud.geminidataanalytics.v1beta.LookerExploreReferenceH\000\022W\n" + + "\022alloy_db_reference\030\014 \001(\01329.google.cloud.g" + + "eminidataanalytics.v1beta.AlloyDbReferenceH\000\022V\n" + "\021spanner_reference\030\r" + " \001(\01329.google.cloud.geminidataanalytics.v1beta.SpannerReferenceH\000\022Y\n" - + "\023cloud_sql_reference\030\016" - + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\000\022X\n" - + "\022bigtable_reference\030\017 \001(\0132:.google.cloud." - + "geminidataanalytics.v1beta.BigtableReferenceH\000\022t\n" - + "!bigquery_property_graph_reference\030\020 \001(\0132G.google.cloud.geminidataanaly" - + "tics.v1beta.BigQueryPropertyGraphReferenceH\000\022Z\n" - + "\023firestore_reference\030\021 \001(\0132;.goog" - + "le.cloud.geminidataanalytics.v1beta.FirestoreReferenceH\000\022E\n" - + "\006schema\030\007 \001(\0132/.googl" - + "e.cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001\0224\n\r" + + "\023cloud_sql_reference\030\016 \001(" + + "\0132:.google.cloud.geminidataanalytics.v1beta.CloudSqlReferenceH\000\022X\n" + + "\022bigtable_reference\030\017" + + " \001(\0132:.google.cloud.geminidataanalytics.v1beta.BigtableReferenceH\000\022t\n" + + "!bigquery_property_graph_reference\030\020 \001(\0132G.g" + + "oogle.cloud.geminidataanalytics.v1beta.BigQueryPropertyGraphReferenceH\000\022Z\n" + + "\023firestore_reference\030\021 \001(\0132;.google.cloud.gemi" + + "nidataanalytics.v1beta.FirestoreReferenceH\000\022E\n" + + "\006schema\030\007" + + " \001(\0132/.google.cloud.geminidataanalytics.v1beta.SchemaB\004\342A\001\001\0224\n\r" + "struct_schema\030\n" + " \001(\0132\027.google.protobuf.StructB\004\342A\001\001B\013\n" + "\treference\"\375\001\n" @@ -319,8 +339,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\003 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\004 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\005 \001(\tB\004\342A\001\001\022J\n" - + "\007filters\030\006 \003(\01323.google" - + ".cloud.geminidataanalytics.v1beta.DataFilterB\004\342A\001\001\"\243\002\n" + + "\007filters\030\006 \003(\01323.google.cloud.gemini" + + "dataanalytics.v1beta.DataFilterB\004\342A\001\001\"\243\002\n" + "\005Field\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\001\022\022\n" + "\004type\030\002 \001(\tB\004\342A\001\001\022\031\n" @@ -329,25 +349,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010synonyms\030\006 \003(\tB\004\342A\001\001\022\022\n" + "\004tags\030\007 \003(\tB\004\342A\001\001\022\032\n" + "\014display_name\030\010 \001(\tB\004\342A\001\001\022G\n" - + "\tsubfields\030\t \003(\0132." - + ".google.cloud.geminidataanalytics.v1beta.FieldB\004\342A\001\001\022\026\n" + + "\tsubfields\030\t \003(\0132..google.cloud" + + ".geminidataanalytics.v1beta.FieldB\004\342A\001\001\022\026\n" + "\010category\030\n" + " \001(\tB\004\342A\001\001\022\032\n" + "\014value_format\030\013 \001(\tB\004\342A\001\001\"\203\001\n\n" + "DataFilter\022\023\n" + "\005field\030\001 \001(\tB\004\342A\001\001\022\023\n" + "\005value\030\002 \001(\tB\004\342A\001\001\022K\n" - + "\004type\030\003 \001(\01627.google.cloud.geminidat" - + "aanalytics.v1beta.DataFilterTypeB\004\342A\001\001*E\n" + + "\004type\030\003 \001" + + "(\01627.google.cloud.geminidataanalytics.v1beta.DataFilterTypeB\004\342A\001\001*E\n" + "\016DataFilterType\022 \n" - + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n\r" + + "\034DATA_FILTER_TYPE_UNSPECIFIED\020\000\022\021\n" + + "\r" + "ALWAYS_FILTER\020\001B\240\002\n" - + "+com.google.cloud.geminidataanalytics.v1betaB\017D" - + "atasourceProtoP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataan" - + "alyticspb;geminidataanalyticspb\252\002\'Google" - + ".Cloud.GeminiDataAnalytics.V1Beta\312\002\'Goog" - + "le\\Cloud\\GeminiDataAnalytics\\V1beta\352\002*Go" - + "ogle::Cloud::GeminiDataAnalytics::V1betab\006proto3" + + "+com.google.cloud.geminidataanalytics.v1betaB\017DatasourceProt" + + "oP\001Z]cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;gem" + + "inidataanalyticspb\252\002\'Google.Cloud.Gemini" + + "DataAnalytics.V1Beta\312\002\'Google\\Cloud\\Gemi" + + "niDataAnalytics\\V1beta\352\002*Google::Cloud::GeminiDataAnalytics::V1betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -380,7 +400,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryTableReferences_descriptor, new java.lang.String[] { - "TableReferences", "PropertyGraphReferences", "AgentContextReference", + "TableReferences", "PropertyGraphReferences", "SearchScope", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryTableReference_descriptor = getDescriptor().getMessageType(2); @@ -390,8 +410,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ProjectId", "DatasetId", "TableId", "Schema", }); - internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReferences_descriptor = + internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_descriptor = getDescriptor().getMessageType(3); + internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryDatasetReference_descriptor, + new java.lang.String[] { + "ProjectId", "DatasetId", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_descriptor, + new java.lang.String[] { + "IncludeProjectIds", "IncludeDatasetReferences", + }); + internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReferences_descriptor = + getDescriptor().getMessageType(5); internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReferences_descriptor, @@ -399,7 +435,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StudioReferences", }); internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReference_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(6); internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_StudioDatasourceReference_descriptor, @@ -407,7 +443,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatasourceId", }); internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(7); internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbReference_descriptor, @@ -415,7 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseReference", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_DatabaseTableReference_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(8); internal_static_google_cloud_geminidataanalytics_v1beta_DatabaseTableReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DatabaseTableReference_descriptor, @@ -423,7 +459,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TableId", "Schema", }); internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_AlloyDbDatabaseReference_descriptor, @@ -437,7 +473,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseTableReferences", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigtableReference_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_cloud_geminidataanalytics_v1beta_BigtableReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigtableReference_descriptor, @@ -445,7 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseReference", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigtableDatabaseReference_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_cloud_geminidataanalytics_v1beta_BigtableDatabaseReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigtableDatabaseReference_descriptor, @@ -453,7 +489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "InstanceId", "TableIds", "DatabaseTableReferences", }); internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreReference_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreReference_descriptor, @@ -461,7 +497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseReference", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreDatabaseReference_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreDatabaseReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_FirestoreDatabaseReference_descriptor, @@ -469,7 +505,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatabaseId", "CollectionIds", "DatabaseTableReferences", }); internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(14); internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SpannerReference_descriptor, @@ -477,7 +513,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseReference", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(15); internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_SpannerDatabaseReference_descriptor, @@ -490,9 +526,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseTableReferences", "Priority", "RequestTag", + "GraphIds", }); internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(16); internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlReference_descriptor, @@ -500,7 +537,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseReference", "AgentContextReference", }); internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(17); internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_CloudSqlDatabaseReference_descriptor, @@ -514,7 +551,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DatabaseTableReferences", }); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(18); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReferences_descriptor, @@ -522,7 +559,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExploreReferences", "Credentials", }); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(19); internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_LookerExploreReference_descriptor, @@ -535,7 +572,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", }); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryPropertyGraphReference_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(20); internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryPropertyGraphReference_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_BigQueryPropertyGraphReference_descriptor, @@ -543,7 +580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ProjectId", "DatasetId", "PropertyGraphId", }); internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(21); internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_PrivateLookerInstanceInfo_descriptor, @@ -551,7 +588,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LookerInstanceId", "ServiceDirectoryName", }); internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(22); internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Datasource_descriptor, @@ -570,7 +607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Reference", }); internal_static_google_cloud_geminidataanalytics_v1beta_Schema_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(23); internal_static_google_cloud_geminidataanalytics_v1beta_Schema_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Schema_descriptor, @@ -578,7 +615,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Fields", "Description", "Synonyms", "Tags", "DisplayName", "Filters", }); internal_static_google_cloud_geminidataanalytics_v1beta_Field_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(24); internal_static_google_cloud_geminidataanalytics_v1beta_Field_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_Field_descriptor, @@ -595,7 +632,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ValueFormat", }); internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(25); internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_geminidataanalytics_v1beta_DataFilter_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePart.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePart.java deleted file mode 100644 index f13c934a482e..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePart.java +++ /dev/null @@ -1,1249 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * FilePart represents the different ways files can be provided.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.FilePart} - */ -@com.google.protobuf.Generated -public final class FilePart extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.FilePart) - FilePartOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "FilePart"); - } - - // Use FilePart.newBuilder() to construct. - private FilePart(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private FilePart() { - mimeType_ = ""; - name_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.FilePart.class, - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder.class); - } - - private int fileCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object file_; - - public enum FileCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - FILE_WITH_URI(1), - FILE_WITH_BYTES(2), - FILE_NOT_SET(0); - private final int value; - - private FileCase(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 FileCase valueOf(int value) { - return forNumber(value); - } - - public static FileCase forNumber(int value) { - switch (value) { - case 1: - return FILE_WITH_URI; - case 2: - return FILE_WITH_BYTES; - case 0: - return FILE_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public FileCase getFileCase() { - return FileCase.forNumber(fileCase_); - } - - public static final int FILE_WITH_URI_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return Whether the fileWithUri field is set. - */ - public boolean hasFileWithUri() { - return fileCase_ == 1; - } - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return The fileWithUri. - */ - public java.lang.String getFileWithUri() { - java.lang.Object ref = ""; - if (fileCase_ == 1) { - ref = file_; - } - if (ref instanceof java.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 (fileCase_ == 1) { - file_ = s; - } - return s; - } - } - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return The bytes for fileWithUri. - */ - public com.google.protobuf.ByteString getFileWithUriBytes() { - java.lang.Object ref = ""; - if (fileCase_ == 1) { - ref = file_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (fileCase_ == 1) { - file_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILE_WITH_BYTES_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * The raw bytes of the file.
        -   * 
        - * - * bytes file_with_bytes = 2; - * - * @return Whether the fileWithBytes field is set. - */ - @java.lang.Override - public boolean hasFileWithBytes() { - return fileCase_ == 2; - } - - /** - * - * - *
        -   * The raw bytes of the file.
        -   * 
        - * - * bytes file_with_bytes = 2; - * - * @return The fileWithBytes. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileWithBytes() { - if (fileCase_ == 2) { - return (com.google.protobuf.ByteString) file_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - public static final int MIME_TYPE_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object mimeType_ = ""; - - /** - * - * - *
        -   * Optional. The MIME type of the file.
        -   * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mimeType. - */ - @java.lang.Override - public java.lang.String getMimeType() { - java.lang.Object ref = mimeType_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mimeType_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The MIME type of the file.
        -   * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mimeType. - */ - @java.lang.Override - public com.google.protobuf.ByteString getMimeTypeBytes() { - java.lang.Object ref = mimeType_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mimeType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int NAME_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; - - /** - * - * - *
        -   * Optional. The name of the file.
        -   * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. The name of the file.
        -   * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 (fileCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, file_); - } - if (fileCase_ == 2) { - output.writeBytes(2, (com.google.protobuf.ByteString) file_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, mimeType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, name_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (fileCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, file_); - } - if (fileCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeBytesSize( - 2, (com.google.protobuf.ByteString) file_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(mimeType_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, mimeType_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, 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.geminidataanalytics.v1beta.FilePart)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.FilePart other = - (com.google.cloud.geminidataanalytics.v1beta.FilePart) obj; - - if (!getMimeType().equals(other.getMimeType())) return false; - if (!getName().equals(other.getName())) return false; - if (!getFileCase().equals(other.getFileCase())) return false; - switch (fileCase_) { - case 1: - if (!getFileWithUri().equals(other.getFileWithUri())) return false; - break; - case 2: - if (!getFileWithBytes().equals(other.getFileWithBytes())) 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) + MIME_TYPE_FIELD_NUMBER; - hash = (53 * hash) + getMimeType().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - switch (fileCase_) { - case 1: - hash = (37 * hash) + FILE_WITH_URI_FIELD_NUMBER; - hash = (53 * hash) + getFileWithUri().hashCode(); - break; - case 2: - hash = (37 * hash) + FILE_WITH_BYTES_FIELD_NUMBER; - hash = (53 * hash) + getFileWithBytes().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart 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.geminidataanalytics.v1beta.FilePart parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - 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.geminidataanalytics.v1beta.FilePart parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.FilePart prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * FilePart represents the different ways files can be provided.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.FilePart} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.FilePart) - com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.FilePart.class, - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.FilePart.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - mimeType_ = ""; - name_ = ""; - fileCase_ = 0; - file_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_FilePart_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePart getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePart build() { - com.google.cloud.geminidataanalytics.v1beta.FilePart result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePart buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.FilePart result = - new com.google.cloud.geminidataanalytics.v1beta.FilePart(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.FilePart result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.mimeType_ = mimeType_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.name_ = name_; - } - } - - private void buildPartialOneofs(com.google.cloud.geminidataanalytics.v1beta.FilePart result) { - result.fileCase_ = fileCase_; - result.file_ = this.file_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.FilePart) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.FilePart) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.FilePart other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance()) - return this; - if (!other.getMimeType().isEmpty()) { - mimeType_ = other.mimeType_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (!other.getName().isEmpty()) { - name_ = other.name_; - bitField0_ |= 0x00000008; - onChanged(); - } - switch (other.getFileCase()) { - case FILE_WITH_URI: - { - fileCase_ = 1; - file_ = other.file_; - onChanged(); - break; - } - case FILE_WITH_BYTES: - { - setFileWithBytes(other.getFileWithBytes()); - break; - } - case FILE_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(); - fileCase_ = 1; - file_ = s; - break; - } // case 10 - case 18: - { - file_ = input.readBytes(); - fileCase_ = 2; - break; - } // case 18 - case 26: - { - mimeType_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - name_ = 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 fileCase_ = 0; - private java.lang.Object file_; - - public FileCase getFileCase() { - return FileCase.forNumber(fileCase_); - } - - public Builder clearFile() { - fileCase_ = 0; - file_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @return Whether the fileWithUri field is set. - */ - @java.lang.Override - public boolean hasFileWithUri() { - return fileCase_ == 1; - } - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @return The fileWithUri. - */ - @java.lang.Override - public java.lang.String getFileWithUri() { - java.lang.Object ref = ""; - if (fileCase_ == 1) { - ref = file_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (fileCase_ == 1) { - file_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @return The bytes for fileWithUri. - */ - @java.lang.Override - public com.google.protobuf.ByteString getFileWithUriBytes() { - java.lang.Object ref = ""; - if (fileCase_ == 1) { - ref = file_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (fileCase_ == 1) { - file_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @param value The fileWithUri to set. - * @return This builder for chaining. - */ - public Builder setFileWithUri(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - fileCase_ = 1; - file_ = value; - onChanged(); - return this; - } - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @return This builder for chaining. - */ - public Builder clearFileWithUri() { - if (fileCase_ == 1) { - fileCase_ = 0; - file_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * The URI pointing to the file.
        -     * 
        - * - * string file_with_uri = 1; - * - * @param value The bytes for fileWithUri to set. - * @return This builder for chaining. - */ - public Builder setFileWithUriBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - fileCase_ = 1; - file_ = value; - onChanged(); - return this; - } - - /** - * - * - *
        -     * The raw bytes of the file.
        -     * 
        - * - * bytes file_with_bytes = 2; - * - * @return Whether the fileWithBytes field is set. - */ - public boolean hasFileWithBytes() { - return fileCase_ == 2; - } - - /** - * - * - *
        -     * The raw bytes of the file.
        -     * 
        - * - * bytes file_with_bytes = 2; - * - * @return The fileWithBytes. - */ - public com.google.protobuf.ByteString getFileWithBytes() { - if (fileCase_ == 2) { - return (com.google.protobuf.ByteString) file_; - } - return com.google.protobuf.ByteString.EMPTY; - } - - /** - * - * - *
        -     * The raw bytes of the file.
        -     * 
        - * - * bytes file_with_bytes = 2; - * - * @param value The fileWithBytes to set. - * @return This builder for chaining. - */ - public Builder setFileWithBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - fileCase_ = 2; - file_ = value; - onChanged(); - return this; - } - - /** - * - * - *
        -     * The raw bytes of the file.
        -     * 
        - * - * bytes file_with_bytes = 2; - * - * @return This builder for chaining. - */ - public Builder clearFileWithBytes() { - if (fileCase_ == 2) { - fileCase_ = 0; - file_ = null; - onChanged(); - } - return this; - } - - private java.lang.Object mimeType_ = ""; - - /** - * - * - *
        -     * Optional. The MIME type of the file.
        -     * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mimeType. - */ - public java.lang.String getMimeType() { - java.lang.Object ref = mimeType_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - mimeType_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The MIME type of the file.
        -     * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mimeType. - */ - public com.google.protobuf.ByteString getMimeTypeBytes() { - java.lang.Object ref = mimeType_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - mimeType_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The MIME type of the file.
        -     * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The mimeType to set. - * @return This builder for chaining. - */ - public Builder setMimeType(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - mimeType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The MIME type of the file.
        -     * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearMimeType() { - mimeType_ = getDefaultInstance().getMimeType(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The MIME type of the file.
        -     * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for mimeType to set. - * @return This builder for chaining. - */ - public Builder setMimeTypeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - mimeType_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private java.lang.Object name_ = ""; - - /** - * - * - *
        -     * Optional. The name of the file.
        -     * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. The name of the file.
        -     * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. The name of the file.
        -     * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - /** - * - * - *
        -     * Optional. The name of the file.
        -     * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The name of the file.
        -     * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.FilePart) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.FilePart) - private static final com.google.cloud.geminidataanalytics.v1beta.FilePart DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.FilePart(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.FilePart getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public FilePart parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.FilePart getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePartOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePartOrBuilder.java deleted file mode 100644 index a32df8c41dd6..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/FilePartOrBuilder.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface FilePartOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.FilePart) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return Whether the fileWithUri field is set. - */ - boolean hasFileWithUri(); - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return The fileWithUri. - */ - java.lang.String getFileWithUri(); - - /** - * - * - *
        -   * The URI pointing to the file.
        -   * 
        - * - * string file_with_uri = 1; - * - * @return The bytes for fileWithUri. - */ - com.google.protobuf.ByteString getFileWithUriBytes(); - - /** - * - * - *
        -   * The raw bytes of the file.
        -   * 
        - * - * bytes file_with_bytes = 2; - * - * @return Whether the fileWithBytes field is set. - */ - boolean hasFileWithBytes(); - - /** - * - * - *
        -   * The raw bytes of the file.
        -   * 
        - * - * bytes file_with_bytes = 2; - * - * @return The fileWithBytes. - */ - com.google.protobuf.ByteString getFileWithBytes(); - - /** - * - * - *
        -   * Optional. The MIME type of the file.
        -   * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The mimeType. - */ - java.lang.String getMimeType(); - - /** - * - * - *
        -   * Optional. The MIME type of the file.
        -   * 
        - * - * string mime_type = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for mimeType. - */ - com.google.protobuf.ByteString getMimeTypeBytes(); - - /** - * - * - *
        -   * Optional. The name of the file.
        -   * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The name. - */ - java.lang.String getName(); - - /** - * - * - *
        -   * Optional. The name of the file.
        -   * 
        - * - * string name = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for name. - */ - com.google.protobuf.ByteString getNameBytes(); - - com.google.cloud.geminidataanalytics.v1beta.FilePart.FileCase getFileCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecurityScheme.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecurityScheme.java deleted file mode 100644 index e19daaec5ab9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecurityScheme.java +++ /dev/null @@ -1,1000 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * HTTPAuthSecurityScheme defines an HTTP authentication security scheme.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme} - */ -@com.google.protobuf.Generated -public final class HTTPAuthSecurityScheme extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) - HTTPAuthSecuritySchemeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "HTTPAuthSecurityScheme"); - } - - // Use HTTPAuthSecurityScheme.newBuilder() to construct. - private HTTPAuthSecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private HTTPAuthSecurityScheme() { - description_ = ""; - scheme_ = ""; - bearerFormat_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder.class); - } - - public static final int DESCRIPTION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int SCHEME_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object scheme_ = ""; - - /** - * - * - *
        -   * Optional. The name of the HTTP Authentication scheme to be used in the
        -   * Authorization header.
        -   * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scheme. - */ - @java.lang.Override - public java.lang.String getScheme() { - java.lang.Object ref = scheme_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scheme_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The name of the HTTP Authentication scheme to be used in the
        -   * Authorization header.
        -   * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for scheme. - */ - @java.lang.Override - public com.google.protobuf.ByteString getSchemeBytes() { - java.lang.Object ref = scheme_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scheme_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BEARER_FORMAT_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object bearerFormat_ = ""; - - /** - * - * - *
        -   * Optional. A hint to the client to identify how the bearer token is
        -   * formatted.
        -   * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bearerFormat. - */ - @java.lang.Override - public java.lang.String getBearerFormat() { - java.lang.Object ref = bearerFormat_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bearerFormat_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. A hint to the client to identify how the bearer token is
        -   * formatted.
        -   * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bearerFormat. - */ - @java.lang.Override - public com.google.protobuf.ByteString getBearerFormatBytes() { - java.lang.Object ref = bearerFormat_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bearerFormat_ = 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.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scheme_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, scheme_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bearerFormat_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, bearerFormat_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(scheme_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, scheme_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(bearerFormat_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, bearerFormat_); - } - 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.geminidataanalytics.v1beta.HTTPAuthSecurityScheme)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) obj; - - if (!getDescription().equals(other.getDescription())) return false; - if (!getScheme().equals(other.getScheme())) return false; - if (!getBearerFormat().equals(other.getBearerFormat())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getScheme().hashCode(); - hash = (37 * hash) + BEARER_FORMAT_FIELD_NUMBER; - hash = (53 * hash) + getBearerFormat().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme 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.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - 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.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.HTTPAuthSecurityScheme prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * HTTPAuthSecurityScheme defines an HTTP authentication security scheme.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - scheme_ = ""; - bearerFormat_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_HTTPAuthSecurityScheme_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.scheme_ = scheme_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.bearerFormat_ = bearerFormat_; - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getScheme().isEmpty()) { - scheme_ = other.scheme_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getBearerFormat().isEmpty()) { - bearerFormat_ = other.bearerFormat_; - 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: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - scheme_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - bearerFormat_ = 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 description_ = ""; - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object scheme_ = ""; - - /** - * - * - *
        -     * Optional. The name of the HTTP Authentication scheme to be used in the
        -     * Authorization header.
        -     * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scheme. - */ - public java.lang.String getScheme() { - java.lang.Object ref = scheme_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - scheme_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The name of the HTTP Authentication scheme to be used in the
        -     * Authorization header.
        -     * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for scheme. - */ - public com.google.protobuf.ByteString getSchemeBytes() { - java.lang.Object ref = scheme_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - scheme_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The name of the HTTP Authentication scheme to be used in the
        -     * Authorization header.
        -     * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The scheme to set. - * @return This builder for chaining. - */ - public Builder setScheme(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The name of the HTTP Authentication scheme to be used in the
        -     * Authorization header.
        -     * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearScheme() { - scheme_ = getDefaultInstance().getScheme(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The name of the HTTP Authentication scheme to be used in the
        -     * Authorization header.
        -     * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for scheme to set. - * @return This builder for chaining. - */ - public Builder setSchemeBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - scheme_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object bearerFormat_ = ""; - - /** - * - * - *
        -     * Optional. A hint to the client to identify how the bearer token is
        -     * formatted.
        -     * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bearerFormat. - */ - public java.lang.String getBearerFormat() { - java.lang.Object ref = bearerFormat_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - bearerFormat_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. A hint to the client to identify how the bearer token is
        -     * formatted.
        -     * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bearerFormat. - */ - public com.google.protobuf.ByteString getBearerFormatBytes() { - java.lang.Object ref = bearerFormat_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - bearerFormat_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. A hint to the client to identify how the bearer token is
        -     * formatted.
        -     * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bearerFormat to set. - * @return This builder for chaining. - */ - public Builder setBearerFormat(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - bearerFormat_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A hint to the client to identify how the bearer token is
        -     * formatted.
        -     * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBearerFormat() { - bearerFormat_ = getDefaultInstance().getBearerFormat(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A hint to the client to identify how the bearer token is
        -     * formatted.
        -     * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for bearerFormat to set. - * @return This builder for chaining. - */ - public Builder setBearerFormatBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - bearerFormat_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public HTTPAuthSecurityScheme parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecuritySchemeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecuritySchemeOrBuilder.java deleted file mode 100644 index 02bd9edddfe6..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/HTTPAuthSecuritySchemeOrBuilder.java +++ /dev/null @@ -1,110 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface HTTPAuthSecuritySchemeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. The name of the HTTP Authentication scheme to be used in the
        -   * Authorization header.
        -   * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The scheme. - */ - java.lang.String getScheme(); - - /** - * - * - *
        -   * Optional. The name of the HTTP Authentication scheme to be used in the
        -   * Authorization header.
        -   * 
        - * - * string scheme = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for scheme. - */ - com.google.protobuf.ByteString getSchemeBytes(); - - /** - * - * - *
        -   * Optional. A hint to the client to identify how the bearer token is
        -   * formatted.
        -   * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bearerFormat. - */ - java.lang.String getBearerFormat(); - - /** - * - * - *
        -   * Optional. A hint to the client to identify how the bearer token is
        -   * formatted.
        -   * 
        - * - * string bearer_format = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for bearerFormat. - */ - com.google.protobuf.ByteString getBearerFormatBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlow.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlow.java deleted file mode 100644 index 99e699a229d4..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlow.java +++ /dev/null @@ -1,1139 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * ImplicitOAuthFlow defines an implicit OAuth flow.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow} - */ -@com.google.protobuf.Generated -public final class ImplicitOAuthFlow extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) - ImplicitOAuthFlowOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "ImplicitOAuthFlow"); - } - - // Use ImplicitOAuthFlow.newBuilder() to construct. - private ImplicitOAuthFlow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private ImplicitOAuthFlow() { - authorizationUrl_ = ""; - refreshUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder.class); - } - - public static final int AUTHORIZATION_URL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object authorizationUrl_ = ""; - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - @java.lang.Override - public java.lang.String getAuthorizationUrl() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getAuthorizationUrlBytes() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authorizationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REFRESH_URL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - @java.lang.Override - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPES_FIELD_NUMBER = 3; - - private static final class ScopesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_ScopesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().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.GeneratedMessage.isStringEmpty(authorizationUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, authorizationUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, refreshUrl_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetScopes(), ScopesDefaultEntryHolder.defaultEntry, 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(authorizationUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, authorizationUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, refreshUrl_); - } - for (java.util.Map.Entry entry : - internalGetScopes().getMap().entrySet()) { - com.google.protobuf.MapEntry scopes__ = - ScopesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scopes__); - } - 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.geminidataanalytics.v1beta.ImplicitOAuthFlow)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow other = - (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) obj; - - if (!getAuthorizationUrl().equals(other.getAuthorizationUrl())) return false; - if (!getRefreshUrl().equals(other.getRefreshUrl())) return false; - if (!internalGetScopes().equals(other.internalGetScopes())) 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) + AUTHORIZATION_URL_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationUrl().hashCode(); - hash = (37 * hash) + REFRESH_URL_FIELD_NUMBER; - hash = (53 * hash) + getRefreshUrl().hashCode(); - if (!internalGetScopes().getMap().isEmpty()) { - hash = (37 * hash) + SCOPES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScopes().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow 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.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - 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.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.ImplicitOAuthFlow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * ImplicitOAuthFlow defines an implicit OAuth flow.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - authorizationUrl_ = ""; - refreshUrl_ = ""; - internalGetMutableScopes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_ImplicitOAuthFlow_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow build() { - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow result = - new com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.authorizationUrl_ = authorizationUrl_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.refreshUrl_ = refreshUrl_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.scopes_ = internalGetScopes(); - result.scopes_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance()) - return this; - if (!other.getAuthorizationUrl().isEmpty()) { - authorizationUrl_ = other.authorizationUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRefreshUrl().isEmpty()) { - refreshUrl_ = other.refreshUrl_; - bitField0_ |= 0x00000002; - onChanged(); - } - internalGetMutableScopes().mergeFrom(other.internalGetScopes()); - bitField0_ |= 0x00000004; - 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: - { - authorizationUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - refreshUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry scopes__ = - input.readMessage( - ScopesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScopes() - .getMutableMap() - .put(scopes__.getKey(), scopes__.getValue()); - 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 authorizationUrl_ = ""; - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - public java.lang.String getAuthorizationUrl() { - java.lang.Object ref = authorizationUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - authorizationUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - public com.google.protobuf.ByteString getAuthorizationUrlBytes() { - java.lang.Object ref = authorizationUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - authorizationUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The authorizationUrl to set. - * @return This builder for chaining. - */ - public Builder setAuthorizationUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - authorizationUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearAuthorizationUrl() { - authorizationUrl_ = getDefaultInstance().getAuthorizationUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The authorization URL to be used for this flow.
        -     * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for authorizationUrl to set. - * @return This builder for chaining. - */ - public Builder setAuthorizationUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - authorizationUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRefreshUrl() { - refreshUrl_ = getDefaultInstance().getRefreshUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - private com.google.protobuf.MapField - internalGetMutableScopes() { - if (scopes_ == null) { - scopes_ = com.google.protobuf.MapField.newMapField(ScopesDefaultEntryHolder.defaultEntry); - } - if (!scopes_.isMutable()) { - scopes_ = scopes_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScopes() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableScopes().getMutableMap().clear(); - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder removeScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScopes().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScopes() { - bitField0_ |= 0x00000004; - return internalGetMutableScopes().getMutableMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putScopes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableScopes().getMutableMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putAllScopes(java.util.Map values) { - internalGetMutableScopes().getMutableMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) - private static final com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ImplicitOAuthFlow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.ImplicitOAuthFlow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlowOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlowOrBuilder.java deleted file mode 100644 index 40ac4c2174a8..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/ImplicitOAuthFlowOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface ImplicitOAuthFlowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The authorizationUrl. - */ - java.lang.String getAuthorizationUrl(); - - /** - * - * - *
        -   * Optional. The authorization URL to be used for this flow.
        -   * 
        - * - * string authorization_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for authorizationUrl. - */ - com.google.protobuf.ByteString getAuthorizationUrlBytes(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - java.lang.String getRefreshUrl(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - com.google.protobuf.ByteString getRefreshUrlBytes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - int getScopesCount(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - boolean containsScopes(java.lang.String key); - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScopes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.util.Map getScopesMap(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - /* nullable */ - java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.lang.String getScopesOrThrow(java.lang.String key); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferences.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferences.java index 279f099dc0c6..9e928280998e 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferences.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferences.java @@ -183,7 +183,7 @@ public com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference getExp * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return Whether the credentials field is set. */ @java.lang.Override @@ -210,7 +210,7 @@ public boolean hasCredentials() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return The credentials. */ @java.lang.Override @@ -1119,7 +1119,7 @@ public Builder removeExploreReferences(int index) { * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return Whether the credentials field is set. */ @java.lang.Deprecated @@ -1145,7 +1145,7 @@ public boolean hasCredentials() { * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return The credentials. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferencesOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferencesOrBuilder.java index 834b05406dec..2153a8acc213 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferencesOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/LookerExploreReferencesOrBuilder.java @@ -114,7 +114,7 @@ com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference getExploreRef * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return Whether the credentials field is set. */ @java.lang.Deprecated @@ -138,7 +138,7 @@ com.google.cloud.geminidataanalytics.v1beta.LookerExploreReference getExploreRef * * * @deprecated google.cloud.geminidataanalytics.v1beta.LookerExploreReferences.credentials is - * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=383 + * deprecated. See google/cloud/geminidataanalytics/v1beta/datasource.proto;l=428 * @return The credentials. */ @java.lang.Deprecated diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecurityScheme.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecurityScheme.java deleted file mode 100644 index 5aa3ed1f9fe2..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecurityScheme.java +++ /dev/null @@ -1,1122 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * OAuth2SecurityScheme defines an OAuth2 security scheme.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme} - */ -@com.google.protobuf.Generated -public final class OAuth2SecurityScheme extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) - OAuth2SecuritySchemeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "OAuth2SecurityScheme"); - } - - // Use OAuth2SecurityScheme.newBuilder() to construct. - private OAuth2SecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private OAuth2SecurityScheme() { - description_ = ""; - oauth2MetadataUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder.class); - } - - private int bitField0_; - public static final int DESCRIPTION_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - public static final int FLOWS_FIELD_NUMBER = 2; - private com.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows_; - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the flows field is set. - */ - @java.lang.Override - public boolean hasFlows() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The flows. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows getFlows() { - return flows_ == null - ? com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance() - : flows_; - } - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder getFlowsOrBuilder() { - return flows_ == null - ? com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance() - : flows_; - } - - public static final int OAUTH2_METADATA_URL_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object oauth2MetadataUrl_ = ""; - - /** - * - * - *
        -   * Optional. URL to the oauth2 authorization server metadata.
        -   * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The oauth2MetadataUrl. - */ - @java.lang.Override - public java.lang.String getOauth2MetadataUrl() { - java.lang.Object ref = oauth2MetadataUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauth2MetadataUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. URL to the oauth2 authorization server metadata.
        -   * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for oauth2MetadataUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getOauth2MetadataUrlBytes() { - java.lang.Object ref = oauth2MetadataUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - oauth2MetadataUrl_ = 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.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getFlows()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oauth2MetadataUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, oauth2MetadataUrl_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFlows()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(oauth2MetadataUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, oauth2MetadataUrl_); - } - 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.geminidataanalytics.v1beta.OAuth2SecurityScheme)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) obj; - - if (!getDescription().equals(other.getDescription())) return false; - if (hasFlows() != other.hasFlows()) return false; - if (hasFlows()) { - if (!getFlows().equals(other.getFlows())) return false; - } - if (!getOauth2MetadataUrl().equals(other.getOauth2MetadataUrl())) 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) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (hasFlows()) { - hash = (37 * hash) + FLOWS_FIELD_NUMBER; - hash = (53 * hash) + getFlows().hashCode(); - } - hash = (37 * hash) + OAUTH2_METADATA_URL_FIELD_NUMBER; - hash = (53 * hash) + getOauth2MetadataUrl().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme 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.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - 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.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.OAuth2SecurityScheme prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * OAuth2SecurityScheme defines an OAuth2 security scheme.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetFlowsFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - description_ = ""; - flows_ = null; - if (flowsBuilder_ != null) { - flowsBuilder_.dispose(); - flowsBuilder_ = null; - } - oauth2MetadataUrl_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuth2SecurityScheme_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.flows_ = flowsBuilder_ == null ? flows_ : flowsBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.oauth2MetadataUrl_ = oauth2MetadataUrl_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.getDefaultInstance()) - return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (other.hasFlows()) { - mergeFlows(other.getFlows()); - } - if (!other.getOauth2MetadataUrl().isEmpty()) { - oauth2MetadataUrl_ = other.oauth2MetadataUrl_; - 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: - { - description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetFlowsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - oauth2MetadataUrl_ = 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 description_ = ""; - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Description of this security scheme.
        -     * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.OAuthFlows flows_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder> - flowsBuilder_; - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the flows field is set. - */ - public boolean hasFlows() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The flows. - */ - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows getFlows() { - if (flowsBuilder_ == null) { - return flows_ == null - ? com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance() - : flows_; - } else { - return flowsBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setFlows(com.google.cloud.geminidataanalytics.v1beta.OAuthFlows value) { - if (flowsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flows_ = value; - } else { - flowsBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setFlows( - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder builderForValue) { - if (flowsBuilder_ == null) { - flows_ = builderForValue.build(); - } else { - flowsBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeFlows(com.google.cloud.geminidataanalytics.v1beta.OAuthFlows value) { - if (flowsBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && flows_ != null - && flows_ - != com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance()) { - getFlowsBuilder().mergeFrom(value); - } else { - flows_ = value; - } - } else { - flowsBuilder_.mergeFrom(value); - } - if (flows_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearFlows() { - bitField0_ = (bitField0_ & ~0x00000002); - flows_ = null; - if (flowsBuilder_ != null) { - flowsBuilder_.dispose(); - flowsBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder getFlowsBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetFlowsFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder getFlowsOrBuilder() { - if (flowsBuilder_ != null) { - return flowsBuilder_.getMessageOrBuilder(); - } else { - return flows_ == null - ? com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance() - : flows_; - } - } - - /** - * - * - *
        -     * Optional. An object containing configuration information for the flow types
        -     * supported.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder> - internalGetFlowsFieldBuilder() { - if (flowsBuilder_ == null) { - flowsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder>( - getFlows(), getParentForChildren(), isClean()); - flows_ = null; - } - return flowsBuilder_; - } - - private java.lang.Object oauth2MetadataUrl_ = ""; - - /** - * - * - *
        -     * Optional. URL to the oauth2 authorization server metadata.
        -     * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The oauth2MetadataUrl. - */ - public java.lang.String getOauth2MetadataUrl() { - java.lang.Object ref = oauth2MetadataUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauth2MetadataUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. URL to the oauth2 authorization server metadata.
        -     * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for oauth2MetadataUrl. - */ - public com.google.protobuf.ByteString getOauth2MetadataUrlBytes() { - java.lang.Object ref = oauth2MetadataUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - oauth2MetadataUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. URL to the oauth2 authorization server metadata.
        -     * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The oauth2MetadataUrl to set. - * @return This builder for chaining. - */ - public Builder setOauth2MetadataUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - oauth2MetadataUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. URL to the oauth2 authorization server metadata.
        -     * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearOauth2MetadataUrl() { - oauth2MetadataUrl_ = getDefaultInstance().getOauth2MetadataUrl(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. URL to the oauth2 authorization server metadata.
        -     * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for oauth2MetadataUrl to set. - * @return This builder for chaining. - */ - public Builder setOauth2MetadataUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - oauth2MetadataUrl_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuth2SecurityScheme parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.OAuth2SecurityScheme - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecuritySchemeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecuritySchemeOrBuilder.java deleted file mode 100644 index ecaf7840d06a..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuth2SecuritySchemeOrBuilder.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface OAuth2SecuritySchemeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the flows field is set. - */ - boolean hasFlows(); - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The flows. - */ - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows getFlows(); - - /** - * - * - *
        -   * Optional. An object containing configuration information for the flow types
        -   * supported.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuthFlows flows = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder getFlowsOrBuilder(); - - /** - * - * - *
        -   * Optional. URL to the oauth2 authorization server metadata.
        -   * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The oauth2MetadataUrl. - */ - java.lang.String getOauth2MetadataUrl(); - - /** - * - * - *
        -   * Optional. URL to the oauth2 authorization server metadata.
        -   * 
        - * - * string oauth2_metadata_url = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for oauth2MetadataUrl. - */ - com.google.protobuf.ByteString getOauth2MetadataUrlBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlows.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlows.java deleted file mode 100644 index 2976beef674c..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlows.java +++ /dev/null @@ -1,1822 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * OAuthFlows contains configuration information for supported OAuth flows.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OAuthFlows} - */ -@com.google.protobuf.Generated -public final class OAuthFlows extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.OAuthFlows) - OAuthFlowsOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "OAuthFlows"); - } - - // Use OAuthFlows.newBuilder() to construct. - private OAuthFlows(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private OAuthFlows() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.class, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder.class); - } - - private int flowCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object flow_; - - public enum FlowCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - AUTHORIZATION_CODE(1), - CLIENT_CREDENTIALS(2), - IMPLICIT(3), - PASSWORD(4), - FLOW_NOT_SET(0); - private final int value; - - private FlowCase(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 FlowCase valueOf(int value) { - return forNumber(value); - } - - public static FlowCase forNumber(int value) { - switch (value) { - case 1: - return AUTHORIZATION_CODE; - case 2: - return CLIENT_CREDENTIALS; - case 3: - return IMPLICIT; - case 4: - return PASSWORD; - case 0: - return FLOW_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public FlowCase getFlowCase() { - return FlowCase.forNumber(flowCase_); - } - - public static final int AUTHORIZATION_CODE_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return Whether the authorizationCode field is set. - */ - @java.lang.Override - public boolean hasAuthorizationCode() { - return flowCase_ == 1; - } - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return The authorizationCode. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - getAuthorizationCode() { - if (flowCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder - getAuthorizationCodeOrBuilder() { - if (flowCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - - public static final int CLIENT_CREDENTIALS_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return Whether the clientCredentials field is set. - */ - @java.lang.Override - public boolean hasClientCredentials() { - return flowCase_ == 2; - } - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return The clientCredentials. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - getClientCredentials() { - if (flowCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder - getClientCredentialsOrBuilder() { - if (flowCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - - public static final int IMPLICIT_FIELD_NUMBER = 3; - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return Whether the implicit field is set. - */ - @java.lang.Override - public boolean hasImplicit() { - return flowCase_ == 3; - } - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return The implicit. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow getImplicit() { - if (flowCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder - getImplicitOrBuilder() { - if (flowCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - - public static final int PASSWORD_FIELD_NUMBER = 4; - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return Whether the password field is set. - */ - @java.lang.Override - public boolean hasPassword() { - return flowCase_ == 4; - } - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return The password. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow getPassword() { - if (flowCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder - getPasswordOrBuilder() { - if (flowCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.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 (flowCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_); - } - if (flowCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_); - } - if (flowCase_ == 3) { - output.writeMessage(3, (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_); - } - if (flowCase_ == 4) { - output.writeMessage(4, (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (flowCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_); - } - if (flowCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_); - } - if (flowCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_); - } - if (flowCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_); - } - 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.geminidataanalytics.v1beta.OAuthFlows)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows other = - (com.google.cloud.geminidataanalytics.v1beta.OAuthFlows) obj; - - if (!getFlowCase().equals(other.getFlowCase())) return false; - switch (flowCase_) { - case 1: - if (!getAuthorizationCode().equals(other.getAuthorizationCode())) return false; - break; - case 2: - if (!getClientCredentials().equals(other.getClientCredentials())) return false; - break; - case 3: - if (!getImplicit().equals(other.getImplicit())) return false; - break; - case 4: - if (!getPassword().equals(other.getPassword())) 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 (flowCase_) { - case 1: - hash = (37 * hash) + AUTHORIZATION_CODE_FIELD_NUMBER; - hash = (53 * hash) + getAuthorizationCode().hashCode(); - break; - case 2: - hash = (37 * hash) + CLIENT_CREDENTIALS_FIELD_NUMBER; - hash = (53 * hash) + getClientCredentials().hashCode(); - break; - case 3: - hash = (37 * hash) + IMPLICIT_FIELD_NUMBER; - hash = (53 * hash) + getImplicit().hashCode(); - break; - case 4: - hash = (37 * hash) + PASSWORD_FIELD_NUMBER; - hash = (53 * hash) + getPassword().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows 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.geminidataanalytics.v1beta.OAuthFlows parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - 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.geminidataanalytics.v1beta.OAuthFlows parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.OAuthFlows prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * OAuthFlows contains configuration information for supported OAuth flows.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.OAuthFlows} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.OAuthFlows) - com.google.cloud.geminidataanalytics.v1beta.OAuthFlowsOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.class, - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (authorizationCodeBuilder_ != null) { - authorizationCodeBuilder_.clear(); - } - if (clientCredentialsBuilder_ != null) { - clientCredentialsBuilder_.clear(); - } - if (implicitBuilder_ != null) { - implicitBuilder_.clear(); - } - if (passwordBuilder_ != null) { - passwordBuilder_.clear(); - } - flowCase_ = 0; - flow_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_OAuthFlows_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows build() { - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuthFlows buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows result = - new com.google.cloud.geminidataanalytics.v1beta.OAuthFlows(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.OAuthFlows result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.geminidataanalytics.v1beta.OAuthFlows result) { - result.flowCase_ = flowCase_; - result.flow_ = this.flow_; - if (flowCase_ == 1 && authorizationCodeBuilder_ != null) { - result.flow_ = authorizationCodeBuilder_.build(); - } - if (flowCase_ == 2 && clientCredentialsBuilder_ != null) { - result.flow_ = clientCredentialsBuilder_.build(); - } - if (flowCase_ == 3 && implicitBuilder_ != null) { - result.flow_ = implicitBuilder_.build(); - } - if (flowCase_ == 4 && passwordBuilder_ != null) { - result.flow_ = passwordBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.OAuthFlows) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.OAuthFlows) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.OAuthFlows other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.getDefaultInstance()) - return this; - switch (other.getFlowCase()) { - case AUTHORIZATION_CODE: - { - mergeAuthorizationCode(other.getAuthorizationCode()); - break; - } - case CLIENT_CREDENTIALS: - { - mergeClientCredentials(other.getClientCredentials()); - break; - } - case IMPLICIT: - { - mergeImplicit(other.getImplicit()); - break; - } - case PASSWORD: - { - mergePassword(other.getPassword()); - break; - } - case FLOW_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( - internalGetAuthorizationCodeFieldBuilder().getBuilder(), extensionRegistry); - flowCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetClientCredentialsFieldBuilder().getBuilder(), extensionRegistry); - flowCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetImplicitFieldBuilder().getBuilder(), extensionRegistry); - flowCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetPasswordFieldBuilder().getBuilder(), extensionRegistry); - flowCase_ = 4; - 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 flowCase_ = 0; - private java.lang.Object flow_; - - public FlowCase getFlowCase() { - return FlowCase.forNumber(flowCase_); - } - - public Builder clearFlow() { - flowCase_ = 0; - flow_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder> - authorizationCodeBuilder_; - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return Whether the authorizationCode field is set. - */ - @java.lang.Override - public boolean hasAuthorizationCode() { - return flowCase_ == 1; - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return The authorizationCode. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - getAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - if (flowCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } else { - if (flowCase_ == 1) { - return authorizationCodeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - public Builder setAuthorizationCode( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow value) { - if (authorizationCodeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flow_ = value; - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(value); - } - flowCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - public Builder setAuthorizationCode( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder - builderForValue) { - if (authorizationCodeBuilder_ == null) { - flow_ = builderForValue.build(); - onChanged(); - } else { - authorizationCodeBuilder_.setMessage(builderForValue.build()); - } - flowCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - public Builder mergeAuthorizationCode( - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow value) { - if (authorizationCodeBuilder_ == null) { - if (flowCase_ == 1 - && flow_ - != com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance()) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) - flow_) - .mergeFrom(value) - .buildPartial(); - } else { - flow_ = value; - } - onChanged(); - } else { - if (flowCase_ == 1) { - authorizationCodeBuilder_.mergeFrom(value); - } else { - authorizationCodeBuilder_.setMessage(value); - } - } - flowCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - public Builder clearAuthorizationCode() { - if (authorizationCodeBuilder_ == null) { - if (flowCase_ == 1) { - flowCase_ = 0; - flow_ = null; - onChanged(); - } - } else { - if (flowCase_ == 1) { - flowCase_ = 0; - flow_ = null; - } - authorizationCodeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder - getAuthorizationCodeBuilder() { - return internalGetAuthorizationCodeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder - getAuthorizationCodeOrBuilder() { - if ((flowCase_ == 1) && (authorizationCodeBuilder_ != null)) { - return authorizationCodeBuilder_.getMessageOrBuilder(); - } else { - if (flowCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Authorization code flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder> - internalGetAuthorizationCodeFieldBuilder() { - if (authorizationCodeBuilder_ == null) { - if (!(flowCase_ == 1)) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow - .getDefaultInstance(); - } - authorizationCodeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow) flow_, - getParentForChildren(), - isClean()); - flow_ = null; - } - flowCase_ = 1; - onChanged(); - return authorizationCodeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder> - clientCredentialsBuilder_; - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return Whether the clientCredentials field is set. - */ - @java.lang.Override - public boolean hasClientCredentials() { - return flowCase_ == 2; - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return The clientCredentials. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - getClientCredentials() { - if (clientCredentialsBuilder_ == null) { - if (flowCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } else { - if (flowCase_ == 2) { - return clientCredentialsBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - public Builder setClientCredentials( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow value) { - if (clientCredentialsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flow_ = value; - onChanged(); - } else { - clientCredentialsBuilder_.setMessage(value); - } - flowCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - public Builder setClientCredentials( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder - builderForValue) { - if (clientCredentialsBuilder_ == null) { - flow_ = builderForValue.build(); - onChanged(); - } else { - clientCredentialsBuilder_.setMessage(builderForValue.build()); - } - flowCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - public Builder mergeClientCredentials( - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow value) { - if (clientCredentialsBuilder_ == null) { - if (flowCase_ == 2 - && flow_ - != com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance()) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) - flow_) - .mergeFrom(value) - .buildPartial(); - } else { - flow_ = value; - } - onChanged(); - } else { - if (flowCase_ == 2) { - clientCredentialsBuilder_.mergeFrom(value); - } else { - clientCredentialsBuilder_.setMessage(value); - } - } - flowCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - public Builder clearClientCredentials() { - if (clientCredentialsBuilder_ == null) { - if (flowCase_ == 2) { - flowCase_ = 0; - flow_ = null; - onChanged(); - } - } else { - if (flowCase_ == 2) { - flowCase_ = 0; - flow_ = null; - } - clientCredentialsBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder - getClientCredentialsBuilder() { - return internalGetClientCredentialsFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder - getClientCredentialsOrBuilder() { - if ((flowCase_ == 2) && (clientCredentialsBuilder_ != null)) { - return clientCredentialsBuilder_.getMessageOrBuilder(); - } else { - if (flowCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Client credentials flow.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder> - internalGetClientCredentialsFieldBuilder() { - if (clientCredentialsBuilder_ == null) { - if (!(flowCase_ == 2)) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow - .getDefaultInstance(); - } - clientCredentialsBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow) flow_, - getParentForChildren(), - isClean()); - flow_ = null; - } - flowCase_ = 2; - onChanged(); - return clientCredentialsBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder> - implicitBuilder_; - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return Whether the implicit field is set. - */ - @java.lang.Override - public boolean hasImplicit() { - return flowCase_ == 3; - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return The implicit. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow getImplicit() { - if (implicitBuilder_ == null) { - if (flowCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } else { - if (flowCase_ == 3) { - return implicitBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - public Builder setImplicit( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow value) { - if (implicitBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flow_ = value; - onChanged(); - } else { - implicitBuilder_.setMessage(value); - } - flowCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - public Builder setImplicit( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder builderForValue) { - if (implicitBuilder_ == null) { - flow_ = builderForValue.build(); - onChanged(); - } else { - implicitBuilder_.setMessage(builderForValue.build()); - } - flowCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - public Builder mergeImplicit( - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow value) { - if (implicitBuilder_ == null) { - if (flowCase_ == 3 - && flow_ - != com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow - .getDefaultInstance()) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_) - .mergeFrom(value) - .buildPartial(); - } else { - flow_ = value; - } - onChanged(); - } else { - if (flowCase_ == 3) { - implicitBuilder_.mergeFrom(value); - } else { - implicitBuilder_.setMessage(value); - } - } - flowCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - public Builder clearImplicit() { - if (implicitBuilder_ == null) { - if (flowCase_ == 3) { - flowCase_ = 0; - flow_ = null; - onChanged(); - } - } else { - if (flowCase_ == 3) { - flowCase_ = 0; - flow_ = null; - } - implicitBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder - getImplicitBuilder() { - return internalGetImplicitFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder - getImplicitOrBuilder() { - if ((flowCase_ == 3) && (implicitBuilder_ != null)) { - return implicitBuilder_.getMessageOrBuilder(); - } else { - if (flowCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Implicit flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder> - internalGetImplicitFieldBuilder() { - if (implicitBuilder_ == null) { - if (!(flowCase_ == 3)) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.getDefaultInstance(); - } - implicitBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow) flow_, - getParentForChildren(), - isClean()); - flow_ = null; - } - flowCase_ = 3; - onChanged(); - return implicitBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder> - passwordBuilder_; - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return Whether the password field is set. - */ - @java.lang.Override - public boolean hasPassword() { - return flowCase_ == 4; - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return The password. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow getPassword() { - if (passwordBuilder_ == null) { - if (flowCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } else { - if (flowCase_ == 4) { - return passwordBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - public Builder setPassword( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow value) { - if (passwordBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - flow_ = value; - onChanged(); - } else { - passwordBuilder_.setMessage(value); - } - flowCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - public Builder setPassword( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder builderForValue) { - if (passwordBuilder_ == null) { - flow_ = builderForValue.build(); - onChanged(); - } else { - passwordBuilder_.setMessage(builderForValue.build()); - } - flowCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - public Builder mergePassword( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow value) { - if (passwordBuilder_ == null) { - if (flowCase_ == 4 - && flow_ - != com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow - .getDefaultInstance()) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_) - .mergeFrom(value) - .buildPartial(); - } else { - flow_ = value; - } - onChanged(); - } else { - if (flowCase_ == 4) { - passwordBuilder_.mergeFrom(value); - } else { - passwordBuilder_.setMessage(value); - } - } - flowCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - public Builder clearPassword() { - if (passwordBuilder_ == null) { - if (flowCase_ == 4) { - flowCase_ = 0; - flow_ = null; - onChanged(); - } - } else { - if (flowCase_ == 4) { - flowCase_ = 0; - flow_ = null; - } - passwordBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder - getPasswordBuilder() { - return internalGetPasswordFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder - getPasswordOrBuilder() { - if ((flowCase_ == 4) && (passwordBuilder_ != null)) { - return passwordBuilder_.getMessageOrBuilder(); - } else { - if (flowCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_; - } - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Resource owner password credentials flow.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder> - internalGetPasswordFieldBuilder() { - if (passwordBuilder_ == null) { - if (!(flowCase_ == 4)) { - flow_ = - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } - passwordBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) flow_, - getParentForChildren(), - isClean()); - flow_ = null; - } - flowCase_ = 4; - onChanged(); - return passwordBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.OAuthFlows) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.OAuthFlows) - private static final com.google.cloud.geminidataanalytics.v1beta.OAuthFlows DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.OAuthFlows(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.OAuthFlows getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public OAuthFlows parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.OAuthFlows getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlowsOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlowsOrBuilder.java deleted file mode 100644 index d97de77589f6..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OAuthFlowsOrBuilder.java +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface OAuthFlowsOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.OAuthFlows) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return Whether the authorizationCode field is set. - */ - boolean hasAuthorizationCode(); - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - * - * @return The authorizationCode. - */ - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow getAuthorizationCode(); - - /** - * - * - *
        -   * Authorization code flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlow authorization_code = 1; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AuthorizationCodeOAuthFlowOrBuilder - getAuthorizationCodeOrBuilder(); - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return Whether the clientCredentials field is set. - */ - boolean hasClientCredentials(); - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - * - * @return The clientCredentials. - */ - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow getClientCredentials(); - - /** - * - * - *
        -   * Client credentials flow.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlow client_credentials = 2; - * - */ - com.google.cloud.geminidataanalytics.v1beta.ClientCredentialsOAuthFlowOrBuilder - getClientCredentialsOrBuilder(); - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return Whether the implicit field is set. - */ - boolean hasImplicit(); - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - * - * @return The implicit. - */ - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow getImplicit(); - - /** - * - * - *
        -   * Implicit flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlow implicit = 3; - */ - com.google.cloud.geminidataanalytics.v1beta.ImplicitOAuthFlowOrBuilder getImplicitOrBuilder(); - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return Whether the password field is set. - */ - boolean hasPassword(); - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - * - * @return The password. - */ - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow getPassword(); - - /** - * - * - *
        -   * Resource owner password credentials flow.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow password = 4; - */ - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder getPasswordOrBuilder(); - - com.google.cloud.geminidataanalytics.v1beta.OAuthFlows.FlowCase getFlowCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecuritySchemeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecuritySchemeOrBuilder.java deleted file mode 100644 index 6ab7591590ac..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/OpenIdConnectSecuritySchemeOrBuilder.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface OpenIdConnectSecuritySchemeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The description. - */ - java.lang.String getDescription(); - - /** - * - * - *
        -   * Optional. Description of this security scheme.
        -   * 
        - * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for description. - */ - com.google.protobuf.ByteString getDescriptionBytes(); - - /** - * - * - *
        -   * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        -   * 
        - * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The openIdConnectUrl. - */ - java.lang.String getOpenIdConnectUrl(); - - /** - * - * - *
        -   * Optional. Well-known URL to discover the OpenID Connect provider metadata.
        -   * 
        - * - * string open_id_connect_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for openIdConnectUrl. - */ - com.google.protobuf.ByteString getOpenIdConnectUrlBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Part.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Part.java deleted file mode 100644 index 8a46ed88c901..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Part.java +++ /dev/null @@ -1,1631 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Part represents a container for a section of communication content.
        - * Parts can be purely textual, some sort of file (image, video, etc) or
        - * a structured data blob (i.e. JSON).
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Part} - */ -@com.google.protobuf.Generated -public final class Part extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.Part) - PartOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Part"); - } - - // Use Part.newBuilder() to construct. - private Part(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Part() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Part_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Part_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.Part.class, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder.class); - } - - private int bitField0_; - private int partCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object part_; - - public enum PartCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - TEXT(1), - FILE(2), - DATA(3), - PART_NOT_SET(0); - private final int value; - - private PartCase(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 PartCase valueOf(int value) { - return forNumber(value); - } - - public static PartCase forNumber(int value) { - switch (value) { - case 1: - return TEXT; - case 2: - return FILE; - case 3: - return DATA; - case 0: - return PART_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public PartCase getPartCase() { - return PartCase.forNumber(partCase_); - } - - public static final int TEXT_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return Whether the text field is set. - */ - public boolean hasText() { - return partCase_ == 1; - } - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return The text. - */ - public java.lang.String getText() { - java.lang.Object ref = ""; - if (partCase_ == 1) { - ref = part_; - } - if (ref instanceof java.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 (partCase_ == 1) { - part_ = s; - } - return s; - } - } - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return The bytes for text. - */ - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = ""; - if (partCase_ == 1) { - ref = part_; - } - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (partCase_ == 1) { - part_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int FILE_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return Whether the file field is set. - */ - @java.lang.Override - public boolean hasFile() { - return partCase_ == 2; - } - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return The file. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePart getFile() { - if (partCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder getFileOrBuilder() { - if (partCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - - public static final int DATA_FIELD_NUMBER = 3; - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return partCase_ == 3; - } - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return The data. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPart getData() { - if (partCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder getDataOrBuilder() { - if (partCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } - - public static final int METADATA_FIELD_NUMBER = 4; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (partCase_ == 1) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, part_); - } - if (partCase_ == 2) { - output.writeMessage(2, (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_); - } - if (partCase_ == 3) { - output.writeMessage(3, (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getMetadata()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (partCase_ == 1) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, part_); - } - if (partCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_); - } - if (partCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata()); - } - 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.geminidataanalytics.v1beta.Part)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.Part other = - (com.google.cloud.geminidataanalytics.v1beta.Part) obj; - - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getPartCase().equals(other.getPartCase())) return false; - switch (partCase_) { - case 1: - if (!getText().equals(other.getText())) return false; - break; - case 2: - if (!getFile().equals(other.getFile())) return false; - break; - case 3: - if (!getData().equals(other.getData())) 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 (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - switch (partCase_) { - case 1: - hash = (37 * hash) + TEXT_FIELD_NUMBER; - hash = (53 * hash) + getText().hashCode(); - break; - case 2: - hash = (37 * hash) + FILE_FIELD_NUMBER; - hash = (53 * hash) + getFile().hashCode(); - break; - case 3: - hash = (37 * hash) + DATA_FIELD_NUMBER; - hash = (53 * hash) + getData().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom(java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part 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.geminidataanalytics.v1beta.Part parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - 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.geminidataanalytics.v1beta.Part parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.Part prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Part represents a container for a section of communication content.
        -   * Parts can be purely textual, some sort of file (image, video, etc) or
        -   * a structured data blob (i.e. JSON).
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Part} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Part) - com.google.cloud.geminidataanalytics.v1beta.PartOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Part_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Part_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.Part.class, - com.google.cloud.geminidataanalytics.v1beta.Part.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.Part.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (fileBuilder_ != null) { - fileBuilder_.clear(); - } - if (dataBuilder_ != null) { - dataBuilder_.clear(); - } - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - partCase_ = 0; - part_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Part_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Part getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Part build() { - com.google.cloud.geminidataanalytics.v1beta.Part result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Part buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.Part result = - new com.google.cloud.geminidataanalytics.v1beta.Part(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Part result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - private void buildPartialOneofs(com.google.cloud.geminidataanalytics.v1beta.Part result) { - result.partCase_ = partCase_; - result.part_ = this.part_; - if (partCase_ == 2 && fileBuilder_ != null) { - result.part_ = fileBuilder_.build(); - } - if (partCase_ == 3 && dataBuilder_ != null) { - result.part_ = dataBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.Part) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.Part) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Part other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.Part.getDefaultInstance()) - return this; - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - switch (other.getPartCase()) { - case TEXT: - { - partCase_ = 1; - part_ = other.part_; - onChanged(); - break; - } - case FILE: - { - mergeFile(other.getFile()); - break; - } - case DATA: - { - mergeData(other.getData()); - break; - } - case PART_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(); - partCase_ = 1; - part_ = s; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetFileFieldBuilder().getBuilder(), extensionRegistry); - partCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage(internalGetDataFieldBuilder().getBuilder(), extensionRegistry); - partCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetMetadataFieldBuilder().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 partCase_ = 0; - private java.lang.Object part_; - - public PartCase getPartCase() { - return PartCase.forNumber(partCase_); - } - - public Builder clearPart() { - partCase_ = 0; - part_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * string text = 1; - * - * @return Whether the text field is set. - */ - @java.lang.Override - public boolean hasText() { - return partCase_ == 1; - } - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * string text = 1; - * - * @return The text. - */ - @java.lang.Override - public java.lang.String getText() { - java.lang.Object ref = ""; - if (partCase_ == 1) { - ref = part_; - } - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - if (partCase_ == 1) { - part_ = s; - } - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * string text = 1; - * - * @return The bytes for text. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTextBytes() { - java.lang.Object ref = ""; - if (partCase_ == 1) { - ref = part_; - } - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - if (partCase_ == 1) { - part_ = b; - } - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * 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(); - } - partCase_ = 1; - part_ = value; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * string text = 1; - * - * @return This builder for chaining. - */ - public Builder clearText() { - if (partCase_ == 1) { - partCase_ = 0; - part_ = null; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Plain text content.
        -     * 
        - * - * 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); - partCase_ = 1; - part_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.FilePart, - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder, - com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder> - fileBuilder_; - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return Whether the file field is set. - */ - @java.lang.Override - public boolean hasFile() { - return partCase_ == 2; - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return The file. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePart getFile() { - if (fileBuilder_ == null) { - if (partCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } else { - if (partCase_ == 2) { - return fileBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - public Builder setFile(com.google.cloud.geminidataanalytics.v1beta.FilePart value) { - if (fileBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - part_ = value; - onChanged(); - } else { - fileBuilder_.setMessage(value); - } - partCase_ = 2; - return this; - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - public Builder setFile( - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder builderForValue) { - if (fileBuilder_ == null) { - part_ = builderForValue.build(); - onChanged(); - } else { - fileBuilder_.setMessage(builderForValue.build()); - } - partCase_ = 2; - return this; - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - public Builder mergeFile(com.google.cloud.geminidataanalytics.v1beta.FilePart value) { - if (fileBuilder_ == null) { - if (partCase_ == 2 - && part_ != com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance()) { - part_ = - com.google.cloud.geminidataanalytics.v1beta.FilePart.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_) - .mergeFrom(value) - .buildPartial(); - } else { - part_ = value; - } - onChanged(); - } else { - if (partCase_ == 2) { - fileBuilder_.mergeFrom(value); - } else { - fileBuilder_.setMessage(value); - } - } - partCase_ = 2; - return this; - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - public Builder clearFile() { - if (fileBuilder_ == null) { - if (partCase_ == 2) { - partCase_ = 0; - part_ = null; - onChanged(); - } - } else { - if (partCase_ == 2) { - partCase_ = 0; - part_ = null; - } - fileBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - public com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder getFileBuilder() { - return internalGetFileFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder getFileOrBuilder() { - if ((partCase_ == 2) && (fileBuilder_ != null)) { - return fileBuilder_.getMessageOrBuilder(); - } else { - if (partCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * File content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.FilePart, - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder, - com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder> - internalGetFileFieldBuilder() { - if (fileBuilder_ == null) { - if (!(partCase_ == 2)) { - part_ = com.google.cloud.geminidataanalytics.v1beta.FilePart.getDefaultInstance(); - } - fileBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.FilePart, - com.google.cloud.geminidataanalytics.v1beta.FilePart.Builder, - com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.FilePart) part_, - getParentForChildren(), - isClean()); - part_ = null; - } - partCase_ = 2; - onChanged(); - return fileBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.DataPart, - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder, - com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder> - dataBuilder_; - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return Whether the data field is set. - */ - @java.lang.Override - public boolean hasData() { - return partCase_ == 3; - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return The data. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPart getData() { - if (dataBuilder_ == null) { - if (partCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } else { - if (partCase_ == 3) { - return dataBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - public Builder setData(com.google.cloud.geminidataanalytics.v1beta.DataPart value) { - if (dataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - part_ = value; - onChanged(); - } else { - dataBuilder_.setMessage(value); - } - partCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - public Builder setData( - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder builderForValue) { - if (dataBuilder_ == null) { - part_ = builderForValue.build(); - onChanged(); - } else { - dataBuilder_.setMessage(builderForValue.build()); - } - partCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - public Builder mergeData(com.google.cloud.geminidataanalytics.v1beta.DataPart value) { - if (dataBuilder_ == null) { - if (partCase_ == 3 - && part_ != com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance()) { - part_ = - com.google.cloud.geminidataanalytics.v1beta.DataPart.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_) - .mergeFrom(value) - .buildPartial(); - } else { - part_ = value; - } - onChanged(); - } else { - if (partCase_ == 3) { - dataBuilder_.mergeFrom(value); - } else { - dataBuilder_.setMessage(value); - } - } - partCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - public Builder clearData() { - if (dataBuilder_ == null) { - if (partCase_ == 3) { - partCase_ = 0; - part_ = null; - onChanged(); - } - } else { - if (partCase_ == 3) { - partCase_ = 0; - part_ = null; - } - dataBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - public com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder getDataBuilder() { - return internalGetDataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder getDataOrBuilder() { - if ((partCase_ == 3) && (dataBuilder_ != null)) { - return dataBuilder_.getMessageOrBuilder(); - } else { - if (partCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_; - } - return com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Structured data content payload.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.DataPart, - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder, - com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder> - internalGetDataFieldBuilder() { - if (dataBuilder_ == null) { - if (!(partCase_ == 3)) { - part_ = com.google.cloud.geminidataanalytics.v1beta.DataPart.getDefaultInstance(); - } - dataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.DataPart, - com.google.cloud.geminidataanalytics.v1beta.DataPart.Builder, - com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.DataPart) part_, - getParentForChildren(), - isClean()); - part_ = null; - } - partCase_ = 3; - onChanged(); - return dataBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000008); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Metadata associated with the part.
        -     * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.Part) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.Part) - private static final com.google.cloud.geminidataanalytics.v1beta.Part DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.Part(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Part getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Part parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.Part getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PartOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PartOrBuilder.java deleted file mode 100644 index f08e41734f58..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PartOrBuilder.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface PartOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.Part) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return Whether the text field is set. - */ - boolean hasText(); - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return The text. - */ - java.lang.String getText(); - - /** - * - * - *
        -   * Plain text content.
        -   * 
        - * - * string text = 1; - * - * @return The bytes for text. - */ - com.google.protobuf.ByteString getTextBytes(); - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return Whether the file field is set. - */ - boolean hasFile(); - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - * - * @return The file. - */ - com.google.cloud.geminidataanalytics.v1beta.FilePart getFile(); - - /** - * - * - *
        -   * File content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.FilePart file = 2; - */ - com.google.cloud.geminidataanalytics.v1beta.FilePartOrBuilder getFileOrBuilder(); - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return Whether the data field is set. - */ - boolean hasData(); - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - * - * @return The data. - */ - com.google.cloud.geminidataanalytics.v1beta.DataPart getData(); - - /** - * - * - *
        -   * Structured data content payload.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.DataPart data = 3; - */ - com.google.cloud.geminidataanalytics.v1beta.DataPartOrBuilder getDataOrBuilder(); - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Metadata associated with the part.
        -   * 
        - * - * .google.protobuf.Struct metadata = 4 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - com.google.cloud.geminidataanalytics.v1beta.Part.PartCase getPartCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlow.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlow.java deleted file mode 100644 index 685f910775ae..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlow.java +++ /dev/null @@ -1,1139 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * PasswordOAuthFlow defines a password OAuth flow.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow} - */ -@com.google.protobuf.Generated -public final class PasswordOAuthFlow extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) - PasswordOAuthFlowOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PasswordOAuthFlow"); - } - - // Use PasswordOAuthFlow.newBuilder() to construct. - private PasswordOAuthFlow(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PasswordOAuthFlow() { - tokenUrl_ = ""; - refreshUrl_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder.class); - } - - public static final int TOKEN_URL_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object tokenUrl_ = ""; - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - @java.lang.Override - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int REFRESH_URL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - @java.lang.Override - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - @java.lang.Override - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SCOPES_FIELD_NUMBER = 3; - - private static final class ScopesDefaultEntryHolder { - static final com.google.protobuf.MapEntry defaultEntry = - com.google.protobuf.MapEntry.newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_ScopesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.STRING, - ""); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().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.GeneratedMessage.isStringEmpty(tokenUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, refreshUrl_); - } - com.google.protobuf.GeneratedMessage.serializeStringMapTo( - output, internalGetScopes(), ScopesDefaultEntryHolder.defaultEntry, 3); - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tokenUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tokenUrl_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(refreshUrl_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, refreshUrl_); - } - for (java.util.Map.Entry entry : - internalGetScopes().getMap().entrySet()) { - com.google.protobuf.MapEntry scopes__ = - ScopesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, scopes__); - } - 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.geminidataanalytics.v1beta.PasswordOAuthFlow)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow other = - (com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) obj; - - if (!getTokenUrl().equals(other.getTokenUrl())) return false; - if (!getRefreshUrl().equals(other.getRefreshUrl())) return false; - if (!internalGetScopes().equals(other.internalGetScopes())) 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) + TOKEN_URL_FIELD_NUMBER; - hash = (53 * hash) + getTokenUrl().hashCode(); - hash = (37 * hash) + REFRESH_URL_FIELD_NUMBER; - hash = (53 * hash) + getRefreshUrl().hashCode(); - if (!internalGetScopes().getMap().isEmpty()) { - hash = (37 * hash) + SCOPES_FIELD_NUMBER; - hash = (53 * hash) + internalGetScopes().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow 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.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - 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.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.PasswordOAuthFlow prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * PasswordOAuthFlow defines a password OAuth flow.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlowOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 3: - return internalGetMutableScopes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.class, - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - tokenUrl_ = ""; - refreshUrl_ = ""; - internalGetMutableScopes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PasswordOAuthFlow_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow build() { - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow result = - new com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.tokenUrl_ = tokenUrl_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.refreshUrl_ = refreshUrl_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.scopes_ = internalGetScopes(); - result.scopes_.makeImmutable(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow.getDefaultInstance()) - return this; - if (!other.getTokenUrl().isEmpty()) { - tokenUrl_ = other.tokenUrl_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getRefreshUrl().isEmpty()) { - refreshUrl_ = other.refreshUrl_; - bitField0_ |= 0x00000002; - onChanged(); - } - internalGetMutableScopes().mergeFrom(other.internalGetScopes()); - bitField0_ |= 0x00000004; - 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: - { - tokenUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - refreshUrl_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - com.google.protobuf.MapEntry scopes__ = - input.readMessage( - ScopesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableScopes() - .getMutableMap() - .put(scopes__.getKey(), scopes__.getValue()); - 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 tokenUrl_ = ""; - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - public java.lang.String getTokenUrl() { - java.lang.Object ref = tokenUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tokenUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - public com.google.protobuf.ByteString getTokenUrlBytes() { - java.lang.Object ref = tokenUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tokenUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tokenUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTokenUrl() { - tokenUrl_ = getDefaultInstance().getTokenUrl(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The token URL to be used for this flow.
        -     * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tokenUrl to set. - * @return This builder for chaining. - */ - public Builder setTokenUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tokenUrl_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object refreshUrl_ = ""; - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - public java.lang.String getRefreshUrl() { - java.lang.Object ref = refreshUrl_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - refreshUrl_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - public com.google.protobuf.ByteString getRefreshUrlBytes() { - java.lang.Object ref = refreshUrl_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - refreshUrl_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearRefreshUrl() { - refreshUrl_ = getDefaultInstance().getRefreshUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The URL to be used for obtaining refresh tokens.
        -     * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for refreshUrl to set. - * @return This builder for chaining. - */ - public Builder setRefreshUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - refreshUrl_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.protobuf.MapField scopes_; - - private com.google.protobuf.MapField internalGetScopes() { - if (scopes_ == null) { - return com.google.protobuf.MapField.emptyMapField(ScopesDefaultEntryHolder.defaultEntry); - } - return scopes_; - } - - private com.google.protobuf.MapField - internalGetMutableScopes() { - if (scopes_ == null) { - scopes_ = com.google.protobuf.MapField.newMapField(ScopesDefaultEntryHolder.defaultEntry); - } - if (!scopes_.isMutable()) { - scopes_ = scopes_.copy(); - } - bitField0_ |= 0x00000004; - onChanged(); - return scopes_; - } - - public int getScopesCount() { - return internalGetScopes().getMap().size(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public boolean containsScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetScopes().getMap().containsKey(key); - } - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map getScopes() { - return getScopesMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.util.Map getScopesMap() { - return internalGetScopes().getMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public /* nullable */ java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - @java.lang.Override - public java.lang.String getScopesOrThrow(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = internalGetScopes().getMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return map.get(key); - } - - public Builder clearScopes() { - bitField0_ = (bitField0_ & ~0x00000004); - internalGetMutableScopes().getMutableMap().clear(); - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder removeScopes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableScopes().getMutableMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map getMutableScopes() { - bitField0_ |= 0x00000004; - return internalGetMutableScopes().getMutableMap(); - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putScopes(java.lang.String key, java.lang.String value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableScopes().getMutableMap().put(key, value); - bitField0_ |= 0x00000004; - return this; - } - - /** - * - * - *
        -     * The available scopes for the OAuth2 security scheme.
        -     * 
        - * - * map<string, string> scopes = 3; - */ - public Builder putAllScopes(java.util.Map values) { - internalGetMutableScopes().getMutableMap().putAll(values); - bitField0_ |= 0x00000004; - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) - private static final com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PasswordOAuthFlow parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.PasswordOAuthFlow getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlowOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlowOrBuilder.java deleted file mode 100644 index f93f0ea708cb..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PasswordOAuthFlowOrBuilder.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface PasswordOAuthFlowOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.PasswordOAuthFlow) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tokenUrl. - */ - java.lang.String getTokenUrl(); - - /** - * - * - *
        -   * Optional. The token URL to be used for this flow.
        -   * 
        - * - * string token_url = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tokenUrl. - */ - com.google.protobuf.ByteString getTokenUrlBytes(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The refreshUrl. - */ - java.lang.String getRefreshUrl(); - - /** - * - * - *
        -   * Optional. The URL to be used for obtaining refresh tokens.
        -   * 
        - * - * string refresh_url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for refreshUrl. - */ - com.google.protobuf.ByteString getRefreshUrlBytes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - int getScopesCount(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - boolean containsScopes(java.lang.String key); - - /** Use {@link #getScopesMap()} instead. */ - @java.lang.Deprecated - java.util.Map getScopes(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.util.Map getScopesMap(); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - /* nullable */ - java.lang.String getScopesOrDefault( - java.lang.String key, - /* nullable */ - java.lang.String defaultValue); - - /** - * - * - *
        -   * The available scopes for the OAuth2 security scheme.
        -   * 
        - * - * map<string, string> scopes = 3; - */ - java.lang.String getScopesOrThrow(java.lang.String key); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfig.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfig.java deleted file mode 100644 index 199b8f59c8d9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfig.java +++ /dev/null @@ -1,1323 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Configuration for setting up push notifications for task updates.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.PushNotificationConfig} - */ -@com.google.protobuf.Generated -public final class PushNotificationConfig extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) - PushNotificationConfigOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "PushNotificationConfig"); - } - - // Use PushNotificationConfig.newBuilder() to construct. - private PushNotificationConfig(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private PushNotificationConfig() { - id_ = ""; - url_ = ""; - token_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.class, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder.class); - } - - private int bitField0_; - public static final int ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object id_ = ""; - - /** - * - * - *
        -   * Optional. A unique identifier (e.g. UUID) for this push notification.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -   * Optional. A unique identifier (e.g. UUID) for this push notification.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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 URL_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; - - /** - * - * - *
        -   * Optional. Url to send the notification to.
        -   * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Url to send the notification to.
        -   * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TOKEN_FIELD_NUMBER = 3; - - @SuppressWarnings("serial") - private volatile java.lang.Object token_ = ""; - - /** - * - * - *
        -   * Optional. Token unique for this task/session.
        -   * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The token. - */ - @java.lang.Override - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Token unique for this task/session.
        -   * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for token. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int AUTHENTICATION_FIELD_NUMBER = 4; - private com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication_; - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the authentication field is set. - */ - @java.lang.Override - public boolean hasAuthentication() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The authentication. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo getAuthentication() { - return authentication_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance() - : authentication_; - } - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder - getAuthenticationOrBuilder() { - return authentication_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance() - : authentication_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(id_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, url_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, token_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(4, getAuthentication()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(id_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, id_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, url_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(token_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, token_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getAuthentication()); - } - 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.geminidataanalytics.v1beta.PushNotificationConfig)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig other = - (com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) obj; - - if (!getId().equals(other.getId())) return false; - if (!getUrl().equals(other.getUrl())) return false; - if (!getToken().equals(other.getToken())) return false; - if (hasAuthentication() != other.hasAuthentication()) return false; - if (hasAuthentication()) { - if (!getAuthentication().equals(other.getAuthentication())) 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) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getToken().hashCode(); - if (hasAuthentication()) { - hash = (37 * hash) + AUTHENTICATION_FIELD_NUMBER; - hash = (53 * hash) + getAuthentication().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig 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.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - 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.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.PushNotificationConfig prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Configuration for setting up push notifications for task updates.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.PushNotificationConfig} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.class, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetAuthenticationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - id_ = ""; - url_ = ""; - token_ = ""; - authentication_ = null; - if (authenticationBuilder_ != null) { - authenticationBuilder_.dispose(); - authenticationBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_PushNotificationConfig_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig build() { - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig result = - new com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.id_ = id_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.url_ = url_; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.token_ = token_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000008) != 0)) { - result.authentication_ = - authenticationBuilder_ == null ? authentication_ : authenticationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - .getDefaultInstance()) return this; - if (!other.getId().isEmpty()) { - id_ = other.id_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getUrl().isEmpty()) { - url_ = other.url_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (!other.getToken().isEmpty()) { - token_ = other.token_; - bitField0_ |= 0x00000004; - onChanged(); - } - if (other.hasAuthentication()) { - mergeAuthentication(other.getAuthentication()); - } - 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: - { - id_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - url_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - token_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetAuthenticationFieldBuilder().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 java.lang.Object id_ = ""; - - /** - * - * - *
        -     * Optional. A unique identifier (e.g. UUID) for this push notification.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A unique identifier (e.g. UUID) for this push notification.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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; - } - } - - /** - * - * - *
        -     * Optional. A unique identifier (e.g. UUID) for this push notification.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A unique identifier (e.g. UUID) for this push notification.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearId() { - id_ = getDefaultInstance().getId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A unique identifier (e.g. UUID) for this push notification.
        -     * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @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_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object url_ = ""; - - /** - * - * - *
        -     * Optional. Url to send the notification to.
        -     * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - url_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Url to send the notification to.
        -     * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - url_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Url to send the notification to.
        -     * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The url to set. - * @return This builder for chaining. - */ - public Builder setUrl(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Url to send the notification to.
        -     * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Url to send the notification to.
        -     * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for url to set. - * @return This builder for chaining. - */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - url_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object token_ = ""; - - /** - * - * - *
        -     * Optional. Token unique for this task/session.
        -     * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The token. - */ - public java.lang.String getToken() { - java.lang.Object ref = token_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - token_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Token unique for this task/session.
        -     * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for token. - */ - public com.google.protobuf.ByteString getTokenBytes() { - java.lang.Object ref = token_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - token_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Token unique for this task/session.
        -     * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The token to set. - * @return This builder for chaining. - */ - public Builder setToken(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - token_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Token unique for this task/session.
        -     * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearToken() { - token_ = getDefaultInstance().getToken(); - bitField0_ = (bitField0_ & ~0x00000004); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Token unique for this task/session.
        -     * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for token to set. - * @return This builder for chaining. - */ - public Builder setTokenBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - token_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder> - authenticationBuilder_; - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the authentication field is set. - */ - public boolean hasAuthentication() { - return ((bitField0_ & 0x00000008) != 0); - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The authentication. - */ - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo getAuthentication() { - if (authenticationBuilder_ == null) { - return authentication_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance() - : authentication_; - } else { - return authenticationBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAuthentication( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo value) { - if (authenticationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - authentication_ = value; - } else { - authenticationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setAuthentication( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder builderForValue) { - if (authenticationBuilder_ == null) { - authentication_ = builderForValue.build(); - } else { - authenticationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeAuthentication( - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo value) { - if (authenticationBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) - && authentication_ != null - && authentication_ - != com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo - .getDefaultInstance()) { - getAuthenticationBuilder().mergeFrom(value); - } else { - authentication_ = value; - } - } else { - authenticationBuilder_.mergeFrom(value); - } - if (authentication_ != null) { - bitField0_ |= 0x00000008; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearAuthentication() { - bitField0_ = (bitField0_ & ~0x00000008); - authentication_ = null; - if (authenticationBuilder_ != null) { - authenticationBuilder_.dispose(); - authenticationBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder - getAuthenticationBuilder() { - bitField0_ |= 0x00000008; - onChanged(); - return internalGetAuthenticationFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder - getAuthenticationOrBuilder() { - if (authenticationBuilder_ != null) { - return authenticationBuilder_.getMessageOrBuilder(); - } else { - return authentication_ == null - ? com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.getDefaultInstance() - : authentication_; - } - } - - /** - * - * - *
        -     * Optional. Information about the authentication to send with the
        -     * notification.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder> - internalGetAuthenticationFieldBuilder() { - if (authenticationBuilder_ == null) { - authenticationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo.Builder, - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder>( - getAuthentication(), getParentForChildren(), isClean()); - authentication_ = null; - } - return authenticationBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) - private static final com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PushNotificationConfig parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.PushNotificationConfig - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfigOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfigOrBuilder.java deleted file mode 100644 index 5db83e121d2e..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/PushNotificationConfigOrBuilder.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface PushNotificationConfigOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.PushNotificationConfig) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. A unique identifier (e.g. UUID) for this push notification.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The id. - */ - java.lang.String getId(); - - /** - * - * - *
        -   * Optional. A unique identifier (e.g. UUID) for this push notification.
        -   * 
        - * - * string id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for id. - */ - com.google.protobuf.ByteString getIdBytes(); - - /** - * - * - *
        -   * Optional. Url to send the notification to.
        -   * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The url. - */ - java.lang.String getUrl(); - - /** - * - * - *
        -   * Optional. Url to send the notification to.
        -   * 
        - * - * string url = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for url. - */ - com.google.protobuf.ByteString getUrlBytes(); - - /** - * - * - *
        -   * Optional. Token unique for this task/session.
        -   * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The token. - */ - java.lang.String getToken(); - - /** - * - * - *
        -   * Optional. Token unique for this task/session.
        -   * 
        - * - * string token = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for token. - */ - com.google.protobuf.ByteString getTokenBytes(); - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the authentication field is set. - */ - boolean hasAuthentication(); - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The authentication. - */ - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfo getAuthentication(); - - /** - * - * - *
        -   * Optional. Information about the authentication to send with the
        -   * notification.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.AuthenticationInfo authentication = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.AuthenticationInfoOrBuilder - getAuthenticationOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScope.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScope.java new file mode 100644 index 000000000000..1ab42e92a9d7 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScope.java @@ -0,0 +1,1327 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1beta; + +/** + * + * + *
        + * Message representing filters to apply to search over BigQuery tables.
        + *
        + * At least one of `include_project_ids` or `include_dataset_references` must be
        + * populated with non-blank identifiers. Tables matching either field are
        + * included, so the two fields are unioned (OR-ed) rather than intersected.
        + *
        + * Note: `SearchScope` is only supported for standalone conversations
        + * (`ChatRequest.inline_context` or
        + * `ClientManagedResourceContext.inline_context`) and is not supported in
        + * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        + * 
        + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SearchScope} + */ +@com.google.protobuf.Generated +public final class SearchScope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SearchScope) + SearchScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "SearchScope"); + } + + // Use SearchScope.newBuilder() to construct. + private SearchScope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchScope() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + includeDatasetReferences_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SearchScope.class, + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder.class); + } + + public static final int INCLUDE_PROJECT_IDS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + return includeProjectIds_; + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + public static final int INCLUDE_DATASET_REFERENCES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + includeDatasetReferences_; + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getIncludeDatasetReferencesList() { + return includeDatasetReferences_; + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + return includeDatasetReferences_; + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getIncludeDatasetReferencesCount() { + return includeDatasetReferences_.size(); + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + return includeDatasetReferences_.get(index); + } + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + return includeDatasetReferences_.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 < includeProjectIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, includeProjectIds_.getRaw(i)); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + output.writeMessage(2, includeDatasetReferences_.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 < includeProjectIds_.size(); i++) { + dataSize += computeStringSizeNoTag(includeProjectIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getIncludeProjectIdsList().size(); + } + for (int i = 0; i < includeDatasetReferences_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, includeDatasetReferences_.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.geminidataanalytics.v1beta.SearchScope)) { + return super.equals(obj); + } + com.google.cloud.geminidataanalytics.v1beta.SearchScope other = + (com.google.cloud.geminidataanalytics.v1beta.SearchScope) obj; + + if (!getIncludeProjectIdsList().equals(other.getIncludeProjectIdsList())) return false; + if (!getIncludeDatasetReferencesList().equals(other.getIncludeDatasetReferencesList())) + 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 (getIncludeProjectIdsCount() > 0) { + hash = (37 * hash) + INCLUDE_PROJECT_IDS_FIELD_NUMBER; + hash = (53 * hash) + getIncludeProjectIdsList().hashCode(); + } + if (getIncludeDatasetReferencesCount() > 0) { + hash = (37 * hash) + INCLUDE_DATASET_REFERENCES_FIELD_NUMBER; + hash = (53 * hash) + getIncludeDatasetReferencesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope 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.geminidataanalytics.v1beta.SearchScope parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + 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.geminidataanalytics.v1beta.SearchScope parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.geminidataanalytics.v1beta.SearchScope prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Message representing filters to apply to search over BigQuery tables.
        +   *
        +   * At least one of `include_project_ids` or `include_dataset_references` must be
        +   * populated with non-blank identifiers. Tables matching either field are
        +   * included, so the two fields are unioned (OR-ed) rather than intersected.
        +   *
        +   * Note: `SearchScope` is only supported for standalone conversations
        +   * (`ChatRequest.inline_context` or
        +   * `ClientManagedResourceContext.inline_context`) and is not supported in
        +   * [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent].
        +   * 
        + * + * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SearchScope} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SearchScope) + com.google.cloud.geminidataanalytics.v1beta.SearchScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.geminidataanalytics.v1beta.SearchScope.class, + com.google.cloud.geminidataanalytics.v1beta.SearchScope.Builder.class); + } + + // Construct using com.google.cloud.geminidataanalytics.v1beta.SearchScope.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + } else { + includeDatasetReferences_ = null; + includeDatasetReferencesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.geminidataanalytics.v1beta.DatasourceProto + .internal_static_google_cloud_geminidataanalytics_v1beta_SearchScope_descriptor; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SearchScope getDefaultInstanceForType() { + return com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SearchScope build() { + com.google.cloud.geminidataanalytics.v1beta.SearchScope result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.geminidataanalytics.v1beta.SearchScope buildPartial() { + com.google.cloud.geminidataanalytics.v1beta.SearchScope result = + new com.google.cloud.geminidataanalytics.v1beta.SearchScope(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.geminidataanalytics.v1beta.SearchScope result) { + if (includeDatasetReferencesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + java.util.Collections.unmodifiableList(includeDatasetReferences_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.includeDatasetReferences_ = includeDatasetReferences_; + } else { + result.includeDatasetReferences_ = includeDatasetReferencesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SearchScope result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + includeProjectIds_.makeImmutable(); + result.includeProjectIds_ = includeProjectIds_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SearchScope) { + return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.SearchScope) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SearchScope other) { + if (other == com.google.cloud.geminidataanalytics.v1beta.SearchScope.getDefaultInstance()) + return this; + if (!other.includeProjectIds_.isEmpty()) { + if (includeProjectIds_.isEmpty()) { + includeProjectIds_ = other.includeProjectIds_; + bitField0_ |= 0x00000001; + } else { + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.addAll(other.includeProjectIds_); + } + onChanged(); + } + if (includeDatasetReferencesBuilder_ == null) { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferences_.isEmpty()) { + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.addAll(other.includeDatasetReferences_); + } + onChanged(); + } + } else { + if (!other.includeDatasetReferences_.isEmpty()) { + if (includeDatasetReferencesBuilder_.isEmpty()) { + includeDatasetReferencesBuilder_.dispose(); + includeDatasetReferencesBuilder_ = null; + includeDatasetReferences_ = other.includeDatasetReferences_; + bitField0_ = (bitField0_ & ~0x00000002); + includeDatasetReferencesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetIncludeDatasetReferencesFieldBuilder() + : null; + } else { + includeDatasetReferencesBuilder_.addAllMessages(other.includeDatasetReferences_); + } + } + } + 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(); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(s); + break; + } // case 10 + case 18: + { + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference m = + input.readMessage( + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference + .parser(), + extensionRegistry); + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(m); + } else { + includeDatasetReferencesBuilder_.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 com.google.protobuf.LazyStringArrayList includeProjectIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureIncludeProjectIdsIsMutable() { + if (!includeProjectIds_.isModifiable()) { + includeProjectIds_ = new com.google.protobuf.LazyStringArrayList(includeProjectIds_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the includeProjectIds. + */ + public com.google.protobuf.ProtocolStringList getIncludeProjectIdsList() { + includeProjectIds_.makeImmutable(); + return includeProjectIds_; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of includeProjectIds. + */ + public int getIncludeProjectIdsCount() { + return includeProjectIds_.size(); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + public java.lang.String getIncludeProjectIds(int index) { + return includeProjectIds_.get(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + public com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index) { + return includeProjectIds_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The includeProjectIds to set. + * @return This builder for chaining. + */ + public Builder setIncludeProjectIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addAllIncludeProjectIds(java.lang.Iterable values) { + ensureIncludeProjectIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeProjectIds_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearIncludeProjectIds() { + includeProjectIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery project ids to search over.
        +     * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the includeProjectIds to add. + * @return This builder for chaining. + */ + public Builder addIncludeProjectIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureIncludeProjectIdsIsMutable(); + includeProjectIds_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + includeDatasetReferences_ = java.util.Collections.emptyList(); + + private void ensureIncludeDatasetReferencesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + includeDatasetReferences_ = + new java.util.ArrayList< + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference>( + includeDatasetReferences_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder> + includeDatasetReferencesBuilder_; + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getIncludeDatasetReferencesList() { + if (includeDatasetReferencesBuilder_ == null) { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } else { + return includeDatasetReferencesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getIncludeDatasetReferencesCount() { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.size(); + } else { + return includeDatasetReferencesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference + getIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.set(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference value) { + if (includeDatasetReferencesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, value); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addIncludeDatasetReferences( + int index, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + builderForValue) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.add(index, builderForValue.build()); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllIncludeDatasetReferences( + java.lang.Iterable< + ? extends com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference> + values) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, includeDatasetReferences_); + onChanged(); + } else { + includeDatasetReferencesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearIncludeDatasetReferences() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferences_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + includeDatasetReferencesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeIncludeDatasetReferences(int index) { + if (includeDatasetReferencesBuilder_ == null) { + ensureIncludeDatasetReferencesIsMutable(); + includeDatasetReferences_.remove(index); + onChanged(); + } else { + includeDatasetReferencesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + getIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index) { + if (includeDatasetReferencesBuilder_ == null) { + return includeDatasetReferences_.get(index); + } else { + return includeDatasetReferencesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList() { + if (includeDatasetReferencesBuilder_ != null) { + return includeDatasetReferencesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(includeDatasetReferences_); + } + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder() { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder + addIncludeDatasetReferencesBuilder(int index) { + return internalGetIncludeDatasetReferencesFieldBuilder() + .addBuilder( + index, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference + .getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. The BigQuery dataset references to search over.
        +     * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder> + getIncludeDatasetReferencesBuilderList() { + return internalGetIncludeDatasetReferencesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder> + internalGetIncludeDatasetReferencesFieldBuilder() { + if (includeDatasetReferencesBuilder_ == null) { + includeDatasetReferencesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference.Builder, + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder>( + includeDatasetReferences_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + includeDatasetReferences_ = null; + } + return includeDatasetReferencesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SearchScope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SearchScope) + private static final com.google.cloud.geminidataanalytics.v1beta.SearchScope DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SearchScope(); + } + + public static com.google.cloud.geminidataanalytics.v1beta.SearchScope getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchScope parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.geminidataanalytics.v1beta.SearchScope getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScopeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScopeOrBuilder.java new file mode 100644 index 000000000000..e8503dae4368 --- /dev/null +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SearchScopeOrBuilder.java @@ -0,0 +1,152 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/geminidataanalytics/v1beta/datasource.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.geminidataanalytics.v1beta; + +@com.google.protobuf.Generated +public interface SearchScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SearchScope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the includeProjectIds. + */ + java.util.List getIncludeProjectIdsList(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of includeProjectIds. + */ + int getIncludeProjectIdsCount(); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The includeProjectIds at the given index. + */ + java.lang.String getIncludeProjectIds(int index); + + /** + * + * + *
        +   * Optional. The BigQuery project ids to search over.
        +   * 
        + * + * repeated string include_project_ids = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the includeProjectIds at the given index. + */ + com.google.protobuf.ByteString getIncludeProjectIdsBytes(int index); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getIncludeDatasetReferencesList(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference getIncludeDatasetReferences( + int index); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getIncludeDatasetReferencesCount(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder> + getIncludeDatasetReferencesOrBuilderList(); + + /** + * + * + *
        +   * Optional. The BigQuery dataset references to search over.
        +   * 
        + * + * + * repeated .google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReference include_dataset_references = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.geminidataanalytics.v1beta.BigQueryDatasetReferenceOrBuilder + getIncludeDatasetReferencesOrBuilder(int index); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Security.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Security.java deleted file mode 100644 index b6fd14fed467..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Security.java +++ /dev/null @@ -1,866 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Security requirements for contacting the agent.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Security} - */ -@com.google.protobuf.Generated -public final class Security extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.Security) - SecurityOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "Security"); - } - - // Use Security.newBuilder() to construct. - private Security(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private Security() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - @java.lang.Override - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetSchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.Security.class, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder.class); - } - - public static final int SCHEMES_FIELD_NUMBER = 1; - - private static final class SchemesDefaultEntryHolder { - static final com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - defaultEntry = - com.google.protobuf.MapEntry - . - newDefaultInstance( - com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_SchemesEntry_descriptor, - com.google.protobuf.WireFormat.FieldType.STRING, - "", - com.google.protobuf.WireFormat.FieldType.MESSAGE, - com.google.cloud.geminidataanalytics.v1beta.StringList - .getDefaultInstance()); - } - - @SuppressWarnings("serial") - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - schemes_; - - private com.google.protobuf.MapField< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - internalGetSchemes() { - if (schemes_ == null) { - return com.google.protobuf.MapField.emptyMapField(SchemesDefaultEntryHolder.defaultEntry); - } - return schemes_; - } - - public int getSchemesCount() { - return internalGetSchemes().getMap().size(); - } - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public boolean containsSchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetSchemes().getMap().containsKey(key); - } - - /** Use {@link #getSchemesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getSchemes() { - return getSchemesMap(); - } - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public java.util.Map - getSchemesMap() { - return internalGetSchemes().getMap(); - } - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.geminidataanalytics.v1beta.StringList getSchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.StringList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetSchemes().getMap(); - return map.containsKey(key) ? map.get(key) : defaultValue; - } - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList getSchemesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map map = - internalGetSchemes().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.GeneratedMessage.serializeStringMapTo( - output, internalGetSchemes(), SchemesDefaultEntryHolder.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< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - entry : internalGetSchemes().getMap().entrySet()) { - com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - schemes__ = - SchemesDefaultEntryHolder.defaultEntry - .newBuilderForType() - .setKey(entry.getKey()) - .setValue(entry.getValue()) - .build(); - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, schemes__); - } - 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.geminidataanalytics.v1beta.Security)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.Security other = - (com.google.cloud.geminidataanalytics.v1beta.Security) obj; - - if (!internalGetSchemes().equals(other.internalGetSchemes())) 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 (!internalGetSchemes().getMap().isEmpty()) { - hash = (37 * hash) + SCHEMES_FIELD_NUMBER; - hash = (53 * hash) + internalGetSchemes().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security 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.geminidataanalytics.v1beta.Security parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - 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.geminidataanalytics.v1beta.Security parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.Security prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Security requirements for contacting the agent.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.Security} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.Security) - com.google.cloud.geminidataanalytics.v1beta.SecurityOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_descriptor; - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetSchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @SuppressWarnings({"rawtypes"}) - protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( - int number) { - switch (number) { - case 1: - return internalGetMutableSchemes(); - default: - throw new RuntimeException("Invalid map field number: " + number); - } - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.Security.class, - com.google.cloud.geminidataanalytics.v1beta.Security.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.Security.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - internalGetMutableSchemes().clear(); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_Security_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Security getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Security build() { - com.google.cloud.geminidataanalytics.v1beta.Security result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.Security buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.Security result = - new com.google.cloud.geminidataanalytics.v1beta.Security(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.Security result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.schemes_ = internalGetSchemes().build(SchemesDefaultEntryHolder.defaultEntry); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.Security) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.Security) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.Security other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.Security.getDefaultInstance()) - return this; - internalGetMutableSchemes().mergeFrom(other.internalGetSchemes()); - 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.geminidataanalytics.v1beta.StringList> - schemes__ = - input.readMessage( - SchemesDefaultEntryHolder.defaultEntry.getParserForType(), - extensionRegistry); - internalGetMutableSchemes() - .ensureBuilderMap() - .put(schemes__.getKey(), schemes__.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 SchemesConverter - implements com.google.protobuf.MapFieldBuilder.Converter< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.StringList> { - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList build( - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder val) { - if (val instanceof com.google.cloud.geminidataanalytics.v1beta.StringList) { - return (com.google.cloud.geminidataanalytics.v1beta.StringList) val; - } - return ((com.google.cloud.geminidataanalytics.v1beta.StringList.Builder) val).build(); - } - - @java.lang.Override - public com.google.protobuf.MapEntry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - defaultEntry() { - return SchemesDefaultEntryHolder.defaultEntry; - } - } - ; - - private static final SchemesConverter schemesConverter = new SchemesConverter(); - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.StringList, - com.google.cloud.geminidataanalytics.v1beta.StringList.Builder> - schemes_; - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.StringList, - com.google.cloud.geminidataanalytics.v1beta.StringList.Builder> - internalGetSchemes() { - if (schemes_ == null) { - return new com.google.protobuf.MapFieldBuilder<>(schemesConverter); - } - return schemes_; - } - - private com.google.protobuf.MapFieldBuilder< - java.lang.String, - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder, - com.google.cloud.geminidataanalytics.v1beta.StringList, - com.google.cloud.geminidataanalytics.v1beta.StringList.Builder> - internalGetMutableSchemes() { - if (schemes_ == null) { - schemes_ = new com.google.protobuf.MapFieldBuilder<>(schemesConverter); - } - bitField0_ |= 0x00000001; - onChanged(); - return schemes_; - } - - public int getSchemesCount() { - return internalGetSchemes().ensureBuilderMap().size(); - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public boolean containsSchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - return internalGetSchemes().ensureBuilderMap().containsKey(key); - } - - /** Use {@link #getSchemesMap()} instead. */ - @java.lang.Override - @java.lang.Deprecated - public java.util.Map - getSchemes() { - return getSchemesMap(); - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public java.util.Map - getSchemesMap() { - return internalGetSchemes().getImmutableMap(); - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public /* nullable */ com.google.cloud.geminidataanalytics.v1beta.StringList - getSchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.StringList defaultValue) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder> - map = internalGetMutableSchemes().ensureBuilderMap(); - return map.containsKey(key) ? schemesConverter.build(map.get(key)) : defaultValue; - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList getSchemesOrThrow( - java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder> - map = internalGetMutableSchemes().ensureBuilderMap(); - if (!map.containsKey(key)) { - throw new java.lang.IllegalArgumentException(); - } - return schemesConverter.build(map.get(key)); - } - - public Builder clearSchemes() { - bitField0_ = (bitField0_ & ~0x00000001); - internalGetMutableSchemes().clear(); - return this; - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - public Builder removeSchemes(java.lang.String key) { - if (key == null) { - throw new NullPointerException("map key"); - } - internalGetMutableSchemes().ensureBuilderMap().remove(key); - return this; - } - - /** Use alternate mutation accessors instead. */ - @java.lang.Deprecated - public java.util.Map - getMutableSchemes() { - bitField0_ |= 0x00000001; - return internalGetMutableSchemes().ensureMessageMap(); - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - public Builder putSchemes( - java.lang.String key, com.google.cloud.geminidataanalytics.v1beta.StringList value) { - if (key == null) { - throw new NullPointerException("map key"); - } - if (value == null) { - throw new NullPointerException("map value"); - } - internalGetMutableSchemes().ensureBuilderMap().put(key, value); - bitField0_ |= 0x00000001; - return this; - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - public Builder putAllSchemes( - java.util.Map - values) { - for (java.util.Map.Entry< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringList> - e : values.entrySet()) { - if (e.getKey() == null || e.getValue() == null) { - throw new NullPointerException(); - } - } - internalGetMutableSchemes().ensureBuilderMap().putAll(values); - bitField0_ |= 0x00000001; - return this; - } - - /** - * - * - *
        -     * Map of scheme names to lists of scopes or configurations.
        -     * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.StringList.Builder putSchemesBuilderIfAbsent( - java.lang.String key) { - java.util.Map< - java.lang.String, com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder> - builderMap = internalGetMutableSchemes().ensureBuilderMap(); - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder entry = builderMap.get(key); - if (entry == null) { - entry = com.google.cloud.geminidataanalytics.v1beta.StringList.newBuilder(); - builderMap.put(key, entry); - } - if (entry instanceof com.google.cloud.geminidataanalytics.v1beta.StringList) { - entry = ((com.google.cloud.geminidataanalytics.v1beta.StringList) entry).toBuilder(); - builderMap.put(key, entry); - } - return (com.google.cloud.geminidataanalytics.v1beta.StringList.Builder) entry; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.Security) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.Security) - private static final com.google.cloud.geminidataanalytics.v1beta.Security DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.Security(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.Security getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Security parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.Security getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityOrBuilder.java deleted file mode 100644 index 9e21ee11e83d..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface SecurityOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.Security) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - int getSchemesCount(); - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - boolean containsSchemes(java.lang.String key); - - /** Use {@link #getSchemesMap()} instead. */ - @java.lang.Deprecated - java.util.Map - getSchemes(); - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - java.util.Map - getSchemesMap(); - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.StringList getSchemesOrDefault( - java.lang.String key, - /* nullable */ - com.google.cloud.geminidataanalytics.v1beta.StringList defaultValue); - - /** - * - * - *
        -   * Map of scheme names to lists of scopes or configurations.
        -   * 
        - * - * map<string, .google.cloud.geminidataanalytics.v1beta.StringList> schemes = 1; - * - */ - com.google.cloud.geminidataanalytics.v1beta.StringList getSchemesOrThrow(java.lang.String key); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityScheme.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityScheme.java deleted file mode 100644 index acfe6f7423e2..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecurityScheme.java +++ /dev/null @@ -1,2228 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * SecurityScheme defines a security scheme for contacting the agent.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SecurityScheme} - */ -@com.google.protobuf.Generated -public final class SecurityScheme extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SecurityScheme) - SecuritySchemeOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SecurityScheme"); - } - - // Use SecurityScheme.newBuilder() to construct. - private SecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SecurityScheme() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder.class); - } - - private int schemeCase_ = 0; - - @SuppressWarnings("serial") - private java.lang.Object scheme_; - - public enum SchemeCase - implements - com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - API_KEY_SECURITY_SCHEME(1), - HTTP_AUTH_SECURITY_SCHEME(2), - OAUTH2_SECURITY_SCHEME(3), - OPEN_ID_CONNECT_SECURITY_SCHEME(4), - MTLS_SECURITY_SCHEME(5), - SCHEME_NOT_SET(0); - private final int value; - - private SchemeCase(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 SchemeCase valueOf(int value) { - return forNumber(value); - } - - public static SchemeCase forNumber(int value) { - switch (value) { - case 1: - return API_KEY_SECURITY_SCHEME; - case 2: - return HTTP_AUTH_SECURITY_SCHEME; - case 3: - return OAUTH2_SECURITY_SCHEME; - case 4: - return OPEN_ID_CONNECT_SECURITY_SCHEME; - case 5: - return MTLS_SECURITY_SCHEME; - case 0: - return SCHEME_NOT_SET; - default: - return null; - } - } - - public int getNumber() { - return this.value; - } - }; - - public SchemeCase getSchemeCase() { - return SchemeCase.forNumber(schemeCase_); - } - - public static final int API_KEY_SECURITY_SCHEME_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return Whether the apiKeySecurityScheme field is set. - */ - @java.lang.Override - public boolean hasApiKeySecurityScheme() { - return schemeCase_ == 1; - } - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return The apiKeySecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - getApiKeySecurityScheme() { - if (schemeCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.getDefaultInstance(); - } - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder - getApiKeySecuritySchemeOrBuilder() { - if (schemeCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.getDefaultInstance(); - } - - public static final int HTTP_AUTH_SECURITY_SCHEME_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return Whether the httpAuthSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasHttpAuthSecurityScheme() { - return schemeCase_ == 2; - } - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return The httpAuthSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - getHttpAuthSecurityScheme() { - if (schemeCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.getDefaultInstance(); - } - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder - getHttpAuthSecuritySchemeOrBuilder() { - if (schemeCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.getDefaultInstance(); - } - - public static final int OAUTH2_SECURITY_SCHEME_FIELD_NUMBER = 3; - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return Whether the oauth2SecurityScheme field is set. - */ - @java.lang.Override - public boolean hasOauth2SecurityScheme() { - return schemeCase_ == 3; - } - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return The oauth2SecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - getOauth2SecurityScheme() { - if (schemeCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.getDefaultInstance(); - } - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder - getOauth2SecuritySchemeOrBuilder() { - if (schemeCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.getDefaultInstance(); - } - - public static final int OPEN_ID_CONNECT_SECURITY_SCHEME_FIELD_NUMBER = 4; - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return Whether the openIdConnectSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasOpenIdConnectSecurityScheme() { - return schemeCase_ == 4; - } - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return The openIdConnectSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - getOpenIdConnectSecurityScheme() { - if (schemeCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder - getOpenIdConnectSecuritySchemeOrBuilder() { - if (schemeCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } - - public static final int MTLS_SECURITY_SCHEME_FIELD_NUMBER = 5; - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return Whether the mtlsSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasMtlsSecurityScheme() { - return schemeCase_ == 5; - } - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return The mtlsSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - getMtlsSecurityScheme() { - if (schemeCase_ == 5) { - return (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.getDefaultInstance(); - } - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder - getMtlsSecuritySchemeOrBuilder() { - if (schemeCase_ == 5) { - return (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.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 (schemeCase_ == 1) { - output.writeMessage( - 1, (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_); - } - if (schemeCase_ == 2) { - output.writeMessage( - 2, (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_); - } - if (schemeCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_); - } - if (schemeCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_); - } - if (schemeCase_ == 5) { - output.writeMessage( - 5, (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (schemeCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_); - } - if (schemeCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_); - } - if (schemeCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_); - } - if (schemeCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_); - } - if (schemeCase_ == 5) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 5, (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_); - } - 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.geminidataanalytics.v1beta.SecurityScheme)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) obj; - - if (!getSchemeCase().equals(other.getSchemeCase())) return false; - switch (schemeCase_) { - case 1: - if (!getApiKeySecurityScheme().equals(other.getApiKeySecurityScheme())) return false; - break; - case 2: - if (!getHttpAuthSecurityScheme().equals(other.getHttpAuthSecurityScheme())) return false; - break; - case 3: - if (!getOauth2SecurityScheme().equals(other.getOauth2SecurityScheme())) return false; - break; - case 4: - if (!getOpenIdConnectSecurityScheme().equals(other.getOpenIdConnectSecurityScheme())) - return false; - break; - case 5: - if (!getMtlsSecurityScheme().equals(other.getMtlsSecurityScheme())) 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 (schemeCase_) { - case 1: - hash = (37 * hash) + API_KEY_SECURITY_SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getApiKeySecurityScheme().hashCode(); - break; - case 2: - hash = (37 * hash) + HTTP_AUTH_SECURITY_SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getHttpAuthSecurityScheme().hashCode(); - break; - case 3: - hash = (37 * hash) + OAUTH2_SECURITY_SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getOauth2SecurityScheme().hashCode(); - break; - case 4: - hash = (37 * hash) + OPEN_ID_CONNECT_SECURITY_SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getOpenIdConnectSecurityScheme().hashCode(); - break; - case 5: - hash = (37 * hash) + MTLS_SECURITY_SCHEME_FIELD_NUMBER; - hash = (53 * hash) + getMtlsSecurityScheme().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme 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.geminidataanalytics.v1beta.SecurityScheme parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - 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.geminidataanalytics.v1beta.SecurityScheme parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.SecurityScheme prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * SecurityScheme defines a security scheme for contacting the agent.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SecurityScheme} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.SecuritySchemeOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (apiKeySecuritySchemeBuilder_ != null) { - apiKeySecuritySchemeBuilder_.clear(); - } - if (httpAuthSecuritySchemeBuilder_ != null) { - httpAuthSecuritySchemeBuilder_.clear(); - } - if (oauth2SecuritySchemeBuilder_ != null) { - oauth2SecuritySchemeBuilder_.clear(); - } - if (openIdConnectSecuritySchemeBuilder_ != null) { - openIdConnectSecuritySchemeBuilder_.clear(); - } - if (mtlsSecuritySchemeBuilder_ != null) { - mtlsSecuritySchemeBuilder_.clear(); - } - schemeCase_ = 0; - scheme_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SecurityScheme_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.SecurityScheme(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.SecurityScheme result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme result) { - result.schemeCase_ = schemeCase_; - result.scheme_ = this.scheme_; - if (schemeCase_ == 1 && apiKeySecuritySchemeBuilder_ != null) { - result.scheme_ = apiKeySecuritySchemeBuilder_.build(); - } - if (schemeCase_ == 2 && httpAuthSecuritySchemeBuilder_ != null) { - result.scheme_ = httpAuthSecuritySchemeBuilder_.build(); - } - if (schemeCase_ == 3 && oauth2SecuritySchemeBuilder_ != null) { - result.scheme_ = oauth2SecuritySchemeBuilder_.build(); - } - if (schemeCase_ == 4 && openIdConnectSecuritySchemeBuilder_ != null) { - result.scheme_ = openIdConnectSecuritySchemeBuilder_.build(); - } - if (schemeCase_ == 5 && mtlsSecuritySchemeBuilder_ != null) { - result.scheme_ = mtlsSecuritySchemeBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.SecurityScheme) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SecurityScheme other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.getDefaultInstance()) - return this; - switch (other.getSchemeCase()) { - case API_KEY_SECURITY_SCHEME: - { - mergeApiKeySecurityScheme(other.getApiKeySecurityScheme()); - break; - } - case HTTP_AUTH_SECURITY_SCHEME: - { - mergeHttpAuthSecurityScheme(other.getHttpAuthSecurityScheme()); - break; - } - case OAUTH2_SECURITY_SCHEME: - { - mergeOauth2SecurityScheme(other.getOauth2SecurityScheme()); - break; - } - case OPEN_ID_CONNECT_SECURITY_SCHEME: - { - mergeOpenIdConnectSecurityScheme(other.getOpenIdConnectSecurityScheme()); - break; - } - case MTLS_SECURITY_SCHEME: - { - mergeMtlsSecurityScheme(other.getMtlsSecurityScheme()); - break; - } - case SCHEME_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( - internalGetApiKeySecuritySchemeFieldBuilder().getBuilder(), extensionRegistry); - schemeCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetHttpAuthSecuritySchemeFieldBuilder().getBuilder(), - extensionRegistry); - schemeCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetOauth2SecuritySchemeFieldBuilder().getBuilder(), extensionRegistry); - schemeCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetOpenIdConnectSecuritySchemeFieldBuilder().getBuilder(), - extensionRegistry); - schemeCase_ = 4; - break; - } // case 34 - case 42: - { - input.readMessage( - internalGetMtlsSecuritySchemeFieldBuilder().getBuilder(), extensionRegistry); - schemeCase_ = 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 schemeCase_ = 0; - private java.lang.Object scheme_; - - public SchemeCase getSchemeCase() { - return SchemeCase.forNumber(schemeCase_); - } - - public Builder clearScheme() { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - return this; - } - - private int bitField0_; - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder> - apiKeySecuritySchemeBuilder_; - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return Whether the apiKeySecurityScheme field is set. - */ - @java.lang.Override - public boolean hasApiKeySecurityScheme() { - return schemeCase_ == 1; - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return The apiKeySecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - getApiKeySecurityScheme() { - if (apiKeySecuritySchemeBuilder_ == null) { - if (schemeCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - .getDefaultInstance(); - } else { - if (schemeCase_ == 1) { - return apiKeySecuritySchemeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - public Builder setApiKeySecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme value) { - if (apiKeySecuritySchemeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - onChanged(); - } else { - apiKeySecuritySchemeBuilder_.setMessage(value); - } - schemeCase_ = 1; - return this; - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - public Builder setApiKeySecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder builderForValue) { - if (apiKeySecuritySchemeBuilder_ == null) { - scheme_ = builderForValue.build(); - onChanged(); - } else { - apiKeySecuritySchemeBuilder_.setMessage(builderForValue.build()); - } - schemeCase_ = 1; - return this; - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - public Builder mergeApiKeySecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme value) { - if (apiKeySecuritySchemeBuilder_ == null) { - if (schemeCase_ == 1 - && scheme_ - != com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - .getDefaultInstance()) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_) - .mergeFrom(value) - .buildPartial(); - } else { - scheme_ = value; - } - onChanged(); - } else { - if (schemeCase_ == 1) { - apiKeySecuritySchemeBuilder_.mergeFrom(value); - } else { - apiKeySecuritySchemeBuilder_.setMessage(value); - } - } - schemeCase_ = 1; - return this; - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - public Builder clearApiKeySecurityScheme() { - if (apiKeySecuritySchemeBuilder_ == null) { - if (schemeCase_ == 1) { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - } - } else { - if (schemeCase_ == 1) { - schemeCase_ = 0; - scheme_ = null; - } - apiKeySecuritySchemeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder - getApiKeySecuritySchemeBuilder() { - return internalGetApiKeySecuritySchemeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder - getApiKeySecuritySchemeOrBuilder() { - if ((schemeCase_ == 1) && (apiKeySecuritySchemeBuilder_ != null)) { - return apiKeySecuritySchemeBuilder_.getMessageOrBuilder(); - } else { - if (schemeCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * API key security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder> - internalGetApiKeySecuritySchemeFieldBuilder() { - if (apiKeySecuritySchemeBuilder_ == null) { - if (!(schemeCase_ == 1)) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.getDefaultInstance(); - } - apiKeySecuritySchemeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) scheme_, - getParentForChildren(), - isClean()); - scheme_ = null; - } - schemeCase_ = 1; - onChanged(); - return apiKeySecuritySchemeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder> - httpAuthSecuritySchemeBuilder_; - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return Whether the httpAuthSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasHttpAuthSecurityScheme() { - return schemeCase_ == 2; - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return The httpAuthSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - getHttpAuthSecurityScheme() { - if (httpAuthSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance(); - } else { - if (schemeCase_ == 2) { - return httpAuthSecuritySchemeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - public Builder setHttpAuthSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme value) { - if (httpAuthSecuritySchemeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - onChanged(); - } else { - httpAuthSecuritySchemeBuilder_.setMessage(value); - } - schemeCase_ = 2; - return this; - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - public Builder setHttpAuthSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder - builderForValue) { - if (httpAuthSecuritySchemeBuilder_ == null) { - scheme_ = builderForValue.build(); - onChanged(); - } else { - httpAuthSecuritySchemeBuilder_.setMessage(builderForValue.build()); - } - schemeCase_ = 2; - return this; - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - public Builder mergeHttpAuthSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme value) { - if (httpAuthSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 2 - && scheme_ - != com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance()) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_) - .mergeFrom(value) - .buildPartial(); - } else { - scheme_ = value; - } - onChanged(); - } else { - if (schemeCase_ == 2) { - httpAuthSecuritySchemeBuilder_.mergeFrom(value); - } else { - httpAuthSecuritySchemeBuilder_.setMessage(value); - } - } - schemeCase_ = 2; - return this; - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - public Builder clearHttpAuthSecurityScheme() { - if (httpAuthSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 2) { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - } - } else { - if (schemeCase_ == 2) { - schemeCase_ = 0; - scheme_ = null; - } - httpAuthSecuritySchemeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder - getHttpAuthSecuritySchemeBuilder() { - return internalGetHttpAuthSecuritySchemeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder - getHttpAuthSecuritySchemeOrBuilder() { - if ((schemeCase_ == 2) && (httpAuthSecuritySchemeBuilder_ != null)) { - return httpAuthSecuritySchemeBuilder_.getMessageOrBuilder(); - } else { - if (schemeCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * HTTP authentication security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder> - internalGetHttpAuthSecuritySchemeFieldBuilder() { - if (httpAuthSecuritySchemeBuilder_ == null) { - if (!(schemeCase_ == 2)) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme - .getDefaultInstance(); - } - httpAuthSecuritySchemeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme) scheme_, - getParentForChildren(), - isClean()); - scheme_ = null; - } - schemeCase_ = 2; - onChanged(); - return httpAuthSecuritySchemeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder> - oauth2SecuritySchemeBuilder_; - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return Whether the oauth2SecurityScheme field is set. - */ - @java.lang.Override - public boolean hasOauth2SecurityScheme() { - return schemeCase_ == 3; - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return The oauth2SecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - getOauth2SecurityScheme() { - if (oauth2SecuritySchemeBuilder_ == null) { - if (schemeCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - .getDefaultInstance(); - } else { - if (schemeCase_ == 3) { - return oauth2SecuritySchemeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - public Builder setOauth2SecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme value) { - if (oauth2SecuritySchemeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - onChanged(); - } else { - oauth2SecuritySchemeBuilder_.setMessage(value); - } - schemeCase_ = 3; - return this; - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - public Builder setOauth2SecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder builderForValue) { - if (oauth2SecuritySchemeBuilder_ == null) { - scheme_ = builderForValue.build(); - onChanged(); - } else { - oauth2SecuritySchemeBuilder_.setMessage(builderForValue.build()); - } - schemeCase_ = 3; - return this; - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - public Builder mergeOauth2SecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme value) { - if (oauth2SecuritySchemeBuilder_ == null) { - if (schemeCase_ == 3 - && scheme_ - != com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - .getDefaultInstance()) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_) - .mergeFrom(value) - .buildPartial(); - } else { - scheme_ = value; - } - onChanged(); - } else { - if (schemeCase_ == 3) { - oauth2SecuritySchemeBuilder_.mergeFrom(value); - } else { - oauth2SecuritySchemeBuilder_.setMessage(value); - } - } - schemeCase_ = 3; - return this; - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - public Builder clearOauth2SecurityScheme() { - if (oauth2SecuritySchemeBuilder_ == null) { - if (schemeCase_ == 3) { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - } - } else { - if (schemeCase_ == 3) { - schemeCase_ = 0; - scheme_ = null; - } - oauth2SecuritySchemeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder - getOauth2SecuritySchemeBuilder() { - return internalGetOauth2SecuritySchemeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder - getOauth2SecuritySchemeOrBuilder() { - if ((schemeCase_ == 3) && (oauth2SecuritySchemeBuilder_ != null)) { - return oauth2SecuritySchemeBuilder_.getMessageOrBuilder(); - } else { - if (schemeCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * OAuth2 security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder> - internalGetOauth2SecuritySchemeFieldBuilder() { - if (oauth2SecuritySchemeBuilder_ == null) { - if (!(schemeCase_ == 3)) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.getDefaultInstance(); - } - oauth2SecuritySchemeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme) scheme_, - getParentForChildren(), - isClean()); - scheme_ = null; - } - schemeCase_ = 3; - onChanged(); - return oauth2SecuritySchemeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder> - openIdConnectSecuritySchemeBuilder_; - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return Whether the openIdConnectSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasOpenIdConnectSecurityScheme() { - return schemeCase_ == 4; - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return The openIdConnectSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - getOpenIdConnectSecurityScheme() { - if (openIdConnectSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } else { - if (schemeCase_ == 4) { - return openIdConnectSecuritySchemeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - public Builder setOpenIdConnectSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme value) { - if (openIdConnectSecuritySchemeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - onChanged(); - } else { - openIdConnectSecuritySchemeBuilder_.setMessage(value); - } - schemeCase_ = 4; - return this; - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - public Builder setOpenIdConnectSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder - builderForValue) { - if (openIdConnectSecuritySchemeBuilder_ == null) { - scheme_ = builderForValue.build(); - onChanged(); - } else { - openIdConnectSecuritySchemeBuilder_.setMessage(builderForValue.build()); - } - schemeCase_ = 4; - return this; - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - public Builder mergeOpenIdConnectSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme value) { - if (openIdConnectSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 4 - && scheme_ - != com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance()) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) - scheme_) - .mergeFrom(value) - .buildPartial(); - } else { - scheme_ = value; - } - onChanged(); - } else { - if (schemeCase_ == 4) { - openIdConnectSecuritySchemeBuilder_.mergeFrom(value); - } else { - openIdConnectSecuritySchemeBuilder_.setMessage(value); - } - } - schemeCase_ = 4; - return this; - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - public Builder clearOpenIdConnectSecurityScheme() { - if (openIdConnectSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 4) { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - } - } else { - if (schemeCase_ == 4) { - schemeCase_ = 0; - scheme_ = null; - } - openIdConnectSecuritySchemeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder - getOpenIdConnectSecuritySchemeBuilder() { - return internalGetOpenIdConnectSecuritySchemeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder - getOpenIdConnectSecuritySchemeOrBuilder() { - if ((schemeCase_ == 4) && (openIdConnectSecuritySchemeBuilder_ != null)) { - return openIdConnectSecuritySchemeBuilder_.getMessageOrBuilder(); - } else { - if (schemeCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * OpenID Connect security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder> - internalGetOpenIdConnectSecuritySchemeFieldBuilder() { - if (openIdConnectSecuritySchemeBuilder_ == null) { - if (!(schemeCase_ == 4)) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - .getDefaultInstance(); - } - openIdConnectSecuritySchemeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme) scheme_, - getParentForChildren(), - isClean()); - scheme_ = null; - } - schemeCase_ = 4; - onChanged(); - return openIdConnectSecuritySchemeBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder> - mtlsSecuritySchemeBuilder_; - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return Whether the mtlsSecurityScheme field is set. - */ - @java.lang.Override - public boolean hasMtlsSecurityScheme() { - return schemeCase_ == 5; - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return The mtlsSecurityScheme. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - getMtlsSecurityScheme() { - if (mtlsSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 5) { - return (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance(); - } else { - if (schemeCase_ == 5) { - return mtlsSecuritySchemeBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - public Builder setMtlsSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme value) { - if (mtlsSecuritySchemeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - scheme_ = value; - onChanged(); - } else { - mtlsSecuritySchemeBuilder_.setMessage(value); - } - schemeCase_ = 5; - return this; - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - public Builder setMtlsSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder - builderForValue) { - if (mtlsSecuritySchemeBuilder_ == null) { - scheme_ = builderForValue.build(); - onChanged(); - } else { - mtlsSecuritySchemeBuilder_.setMessage(builderForValue.build()); - } - schemeCase_ = 5; - return this; - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - public Builder mergeMtlsSecurityScheme( - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme value) { - if (mtlsSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 5 - && scheme_ - != com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance()) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_) - .mergeFrom(value) - .buildPartial(); - } else { - scheme_ = value; - } - onChanged(); - } else { - if (schemeCase_ == 5) { - mtlsSecuritySchemeBuilder_.mergeFrom(value); - } else { - mtlsSecuritySchemeBuilder_.setMessage(value); - } - } - schemeCase_ = 5; - return this; - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - public Builder clearMtlsSecurityScheme() { - if (mtlsSecuritySchemeBuilder_ == null) { - if (schemeCase_ == 5) { - schemeCase_ = 0; - scheme_ = null; - onChanged(); - } - } else { - if (schemeCase_ == 5) { - schemeCase_ = 0; - scheme_ = null; - } - mtlsSecuritySchemeBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder - getMtlsSecuritySchemeBuilder() { - return internalGetMtlsSecuritySchemeFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder - getMtlsSecuritySchemeOrBuilder() { - if ((schemeCase_ == 5) && (mtlsSecuritySchemeBuilder_ != null)) { - return mtlsSecuritySchemeBuilder_.getMessageOrBuilder(); - } else { - if (schemeCase_ == 5) { - return (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_; - } - return com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Mutual TLS security scheme.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder> - internalGetMtlsSecuritySchemeFieldBuilder() { - if (mtlsSecuritySchemeBuilder_ == null) { - if (!(schemeCase_ == 5)) { - scheme_ = - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme - .getDefaultInstance(); - } - mtlsSecuritySchemeBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme.Builder, - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) scheme_, - getParentForChildren(), - isClean()); - scheme_ = null; - } - schemeCase_ = 5; - onChanged(); - return mtlsSecuritySchemeBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SecurityScheme) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.SecurityScheme DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SecurityScheme(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SecurityScheme getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SecurityScheme parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.SecurityScheme getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecuritySchemeOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecuritySchemeOrBuilder.java deleted file mode 100644 index d2c4d46b3703..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SecuritySchemeOrBuilder.java +++ /dev/null @@ -1,248 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface SecuritySchemeOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SecurityScheme) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return Whether the apiKeySecurityScheme field is set. - */ - boolean hasApiKeySecurityScheme(); - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - * - * @return The apiKeySecurityScheme. - */ - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme getApiKeySecurityScheme(); - - /** - * - * - *
        -   * API key security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme api_key_security_scheme = 1; - * - */ - com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder - getApiKeySecuritySchemeOrBuilder(); - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return Whether the httpAuthSecurityScheme field is set. - */ - boolean hasHttpAuthSecurityScheme(); - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - * - * @return The httpAuthSecurityScheme. - */ - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme getHttpAuthSecurityScheme(); - - /** - * - * - *
        -   * HTTP authentication security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.HTTPAuthSecurityScheme http_auth_security_scheme = 2; - * - */ - com.google.cloud.geminidataanalytics.v1beta.HTTPAuthSecuritySchemeOrBuilder - getHttpAuthSecuritySchemeOrBuilder(); - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return Whether the oauth2SecurityScheme field is set. - */ - boolean hasOauth2SecurityScheme(); - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - * - * @return The oauth2SecurityScheme. - */ - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme getOauth2SecurityScheme(); - - /** - * - * - *
        -   * OAuth2 security scheme.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.OAuth2SecurityScheme oauth2_security_scheme = 3; - * - */ - com.google.cloud.geminidataanalytics.v1beta.OAuth2SecuritySchemeOrBuilder - getOauth2SecuritySchemeOrBuilder(); - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return Whether the openIdConnectSecurityScheme field is set. - */ - boolean hasOpenIdConnectSecurityScheme(); - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - * - * @return The openIdConnectSecurityScheme. - */ - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme - getOpenIdConnectSecurityScheme(); - - /** - * - * - *
        -   * OpenID Connect security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - * - */ - com.google.cloud.geminidataanalytics.v1beta.OpenIdConnectSecuritySchemeOrBuilder - getOpenIdConnectSecuritySchemeOrBuilder(); - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return Whether the mtlsSecurityScheme field is set. - */ - boolean hasMtlsSecurityScheme(); - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - * - * @return The mtlsSecurityScheme. - */ - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme getMtlsSecurityScheme(); - - /** - * - * - *
        -   * Mutual TLS security scheme.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme mtls_security_scheme = 5; - * - */ - com.google.cloud.geminidataanalytics.v1beta.MutualTlsSecuritySchemeOrBuilder - getMtlsSecuritySchemeOrBuilder(); - - com.google.cloud.geminidataanalytics.v1beta.SecurityScheme.SchemeCase getSchemeCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfiguration.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfiguration.java deleted file mode 100644 index 10afe7222b1e..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfiguration.java +++ /dev/null @@ -1,1253 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Configuration of a send message request.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration} - */ -@com.google.protobuf.Generated -public final class SendMessageConfiguration extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) - SendMessageConfigurationOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SendMessageConfiguration"); - } - - // Use SendMessageConfiguration.newBuilder() to construct. - private SendMessageConfiguration(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SendMessageConfiguration() { - acceptedOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder.class); - } - - private int bitField0_; - public static final int ACCEPTED_OUTPUT_MODES_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList acceptedOutputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the acceptedOutputModes. - */ - public com.google.protobuf.ProtocolStringList getAcceptedOutputModesList() { - return acceptedOutputModes_; - } - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of acceptedOutputModes. - */ - public int getAcceptedOutputModesCount() { - return acceptedOutputModes_.size(); - } - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The acceptedOutputModes at the given index. - */ - public java.lang.String getAcceptedOutputModes(int index) { - return acceptedOutputModes_.get(index); - } - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the acceptedOutputModes at the given index. - */ - public com.google.protobuf.ByteString getAcceptedOutputModesBytes(int index) { - return acceptedOutputModes_.getByteString(index); - } - - public static final int PUSH_NOTIFICATION_FIELD_NUMBER = 2; - private com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig pushNotification_; - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pushNotification field is set. - */ - @java.lang.Override - public boolean hasPushNotification() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pushNotification. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig getPushNotification() { - return pushNotification_ == null - ? com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.getDefaultInstance() - : pushNotification_; - } - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder - getPushNotificationOrBuilder() { - return pushNotification_ == null - ? com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.getDefaultInstance() - : pushNotification_; - } - - public static final int HISTORY_LENGTH_FIELD_NUMBER = 3; - private int historyLength_ = 0; - - /** - * - * - *
        -   * Optional. The maximum number of messages to include in the history. If 0,
        -   * the history will be unlimited.
        -   * 
        - * - * int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The historyLength. - */ - @java.lang.Override - public int getHistoryLength() { - return historyLength_; - } - - public static final int BLOCKING_FIELD_NUMBER = 4; - private boolean blocking_ = false; - - /** - * - * - *
        -   * Optional. If true, the message will be blocking until the task is
        -   * completed. If false, the task will be returned immediately.
        -   * 
        - * - * bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The blocking. - */ - @java.lang.Override - public boolean getBlocking() { - return blocking_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 < acceptedOutputModes_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, acceptedOutputModes_.getRaw(i)); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getPushNotification()); - } - if (historyLength_ != 0) { - output.writeInt32(3, historyLength_); - } - if (blocking_ != false) { - output.writeBool(4, blocking_); - } - 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 < acceptedOutputModes_.size(); i++) { - dataSize += computeStringSizeNoTag(acceptedOutputModes_.getRaw(i)); - } - size += dataSize; - size += 1 * getAcceptedOutputModesList().size(); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getPushNotification()); - } - if (historyLength_ != 0) { - size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, historyLength_); - } - if (blocking_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, blocking_); - } - 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.geminidataanalytics.v1beta.SendMessageConfiguration)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration other = - (com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) obj; - - if (!getAcceptedOutputModesList().equals(other.getAcceptedOutputModesList())) return false; - if (hasPushNotification() != other.hasPushNotification()) return false; - if (hasPushNotification()) { - if (!getPushNotification().equals(other.getPushNotification())) return false; - } - if (getHistoryLength() != other.getHistoryLength()) return false; - if (getBlocking() != other.getBlocking()) 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 (getAcceptedOutputModesCount() > 0) { - hash = (37 * hash) + ACCEPTED_OUTPUT_MODES_FIELD_NUMBER; - hash = (53 * hash) + getAcceptedOutputModesList().hashCode(); - } - if (hasPushNotification()) { - hash = (37 * hash) + PUSH_NOTIFICATION_FIELD_NUMBER; - hash = (53 * hash) + getPushNotification().hashCode(); - } - hash = (37 * hash) + HISTORY_LENGTH_FIELD_NUMBER; - hash = (53 * hash) + getHistoryLength(); - hash = (37 * hash) + BLOCKING_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBlocking()); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration 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.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - 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.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.SendMessageConfiguration prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Configuration of a send message request.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetPushNotificationFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - acceptedOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - pushNotification_ = null; - if (pushNotificationBuilder_ != null) { - pushNotificationBuilder_.dispose(); - pushNotificationBuilder_ = null; - } - historyLength_ = 0; - blocking_ = false; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageConfiguration_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration build() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration result = - new com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - acceptedOutputModes_.makeImmutable(); - result.acceptedOutputModes_ = acceptedOutputModes_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.pushNotification_ = - pushNotificationBuilder_ == null ? pushNotification_ : pushNotificationBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.historyLength_ = historyLength_; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.blocking_ = blocking_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - .getDefaultInstance()) return this; - if (!other.acceptedOutputModes_.isEmpty()) { - if (acceptedOutputModes_.isEmpty()) { - acceptedOutputModes_ = other.acceptedOutputModes_; - bitField0_ |= 0x00000001; - } else { - ensureAcceptedOutputModesIsMutable(); - acceptedOutputModes_.addAll(other.acceptedOutputModes_); - } - onChanged(); - } - if (other.hasPushNotification()) { - mergePushNotification(other.getPushNotification()); - } - if (other.getHistoryLength() != 0) { - setHistoryLength(other.getHistoryLength()); - } - if (other.getBlocking() != false) { - setBlocking(other.getBlocking()); - } - 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(); - ensureAcceptedOutputModesIsMutable(); - acceptedOutputModes_.add(s); - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetPushNotificationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 24: - { - historyLength_ = input.readInt32(); - bitField0_ |= 0x00000004; - break; - } // case 24 - case 32: - { - blocking_ = input.readBool(); - 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.LazyStringArrayList acceptedOutputModes_ = - com.google.protobuf.LazyStringArrayList.emptyList(); - - private void ensureAcceptedOutputModesIsMutable() { - if (!acceptedOutputModes_.isModifiable()) { - acceptedOutputModes_ = new com.google.protobuf.LazyStringArrayList(acceptedOutputModes_); - } - bitField0_ |= 0x00000001; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the acceptedOutputModes. - */ - public com.google.protobuf.ProtocolStringList getAcceptedOutputModesList() { - acceptedOutputModes_.makeImmutable(); - return acceptedOutputModes_; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of acceptedOutputModes. - */ - public int getAcceptedOutputModesCount() { - return acceptedOutputModes_.size(); - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The acceptedOutputModes at the given index. - */ - public java.lang.String getAcceptedOutputModes(int index) { - return acceptedOutputModes_.get(index); - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the acceptedOutputModes at the given index. - */ - public com.google.protobuf.ByteString getAcceptedOutputModesBytes(int index) { - return acceptedOutputModes_.getByteString(index); - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index to set the value at. - * @param value The acceptedOutputModes to set. - * @return This builder for chaining. - */ - public Builder setAcceptedOutputModes(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceptedOutputModesIsMutable(); - acceptedOutputModes_.set(index, value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The acceptedOutputModes to add. - * @return This builder for chaining. - */ - public Builder addAcceptedOutputModes(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAcceptedOutputModesIsMutable(); - acceptedOutputModes_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param values The acceptedOutputModes to add. - * @return This builder for chaining. - */ - public Builder addAllAcceptedOutputModes(java.lang.Iterable values) { - ensureAcceptedOutputModesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, acceptedOutputModes_); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return This builder for chaining. - */ - public Builder clearAcceptedOutputModes() { - acceptedOutputModes_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - ; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The output modes that the agent is expected to respond with.
        -     * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param value The bytes of the acceptedOutputModes to add. - * @return This builder for chaining. - */ - public Builder addAcceptedOutputModesBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAcceptedOutputModesIsMutable(); - acceptedOutputModes_.add(value); - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig pushNotification_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder> - pushNotificationBuilder_; - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pushNotification field is set. - */ - public boolean hasPushNotification() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pushNotification. - */ - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - getPushNotification() { - if (pushNotificationBuilder_ == null) { - return pushNotification_ == null - ? com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - .getDefaultInstance() - : pushNotification_; - } else { - return pushNotificationBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPushNotification( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig value) { - if (pushNotificationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - pushNotification_ = value; - } else { - pushNotificationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setPushNotification( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder - builderForValue) { - if (pushNotificationBuilder_ == null) { - pushNotification_ = builderForValue.build(); - } else { - pushNotificationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergePushNotification( - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig value) { - if (pushNotificationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && pushNotification_ != null - && pushNotification_ - != com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - .getDefaultInstance()) { - getPushNotificationBuilder().mergeFrom(value); - } else { - pushNotification_ = value; - } - } else { - pushNotificationBuilder_.mergeFrom(value); - } - if (pushNotification_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearPushNotification() { - bitField0_ = (bitField0_ & ~0x00000002); - pushNotification_ = null; - if (pushNotificationBuilder_ != null) { - pushNotificationBuilder_.dispose(); - pushNotificationBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder - getPushNotificationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetPushNotificationFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder - getPushNotificationOrBuilder() { - if (pushNotificationBuilder_ != null) { - return pushNotificationBuilder_.getMessageOrBuilder(); - } else { - return pushNotification_ == null - ? com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig - .getDefaultInstance() - : pushNotification_; - } - } - - /** - * - * - *
        -     * Optional. A configuration of a webhook that can be used to receive updates.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder> - internalGetPushNotificationFieldBuilder() { - if (pushNotificationBuilder_ == null) { - pushNotificationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig.Builder, - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder>( - getPushNotification(), getParentForChildren(), isClean()); - pushNotification_ = null; - } - return pushNotificationBuilder_; - } - - private int historyLength_; - - /** - * - * - *
        -     * Optional. The maximum number of messages to include in the history. If 0,
        -     * the history will be unlimited.
        -     * 
        - * - * int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The historyLength. - */ - @java.lang.Override - public int getHistoryLength() { - return historyLength_; - } - - /** - * - * - *
        -     * Optional. The maximum number of messages to include in the history. If 0,
        -     * the history will be unlimited.
        -     * 
        - * - * int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The historyLength to set. - * @return This builder for chaining. - */ - public Builder setHistoryLength(int value) { - - historyLength_ = value; - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The maximum number of messages to include in the history. If 0,
        -     * the history will be unlimited.
        -     * 
        - * - * int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearHistoryLength() { - bitField0_ = (bitField0_ & ~0x00000004); - historyLength_ = 0; - onChanged(); - return this; - } - - private boolean blocking_; - - /** - * - * - *
        -     * Optional. If true, the message will be blocking until the task is
        -     * completed. If false, the task will be returned immediately.
        -     * 
        - * - * bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The blocking. - */ - @java.lang.Override - public boolean getBlocking() { - return blocking_; - } - - /** - * - * - *
        -     * Optional. If true, the message will be blocking until the task is
        -     * completed. If false, the task will be returned immediately.
        -     * 
        - * - * bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The blocking to set. - * @return This builder for chaining. - */ - public Builder setBlocking(boolean value) { - - blocking_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. If true, the message will be blocking until the task is
        -     * completed. If false, the task will be returned immediately.
        -     * 
        - * - * bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearBlocking() { - bitField0_ = (bitField0_ & ~0x00000008); - blocking_ = false; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) - private static final com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendMessageConfiguration parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.SendMessageConfiguration - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfigurationOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfigurationOrBuilder.java deleted file mode 100644 index f6e7b9ae61dd..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageConfigurationOrBuilder.java +++ /dev/null @@ -1,158 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface SendMessageConfigurationOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return A list containing the acceptedOutputModes. - */ - java.util.List getAcceptedOutputModesList(); - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The count of acceptedOutputModes. - */ - int getAcceptedOutputModesCount(); - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the element to return. - * @return The acceptedOutputModes at the given index. - */ - java.lang.String getAcceptedOutputModes(int index); - - /** - * - * - *
        -   * Optional. The output modes that the agent is expected to respond with.
        -   * 
        - * - * repeated string accepted_output_modes = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @param index The index of the value to return. - * @return The bytes of the acceptedOutputModes at the given index. - */ - com.google.protobuf.ByteString getAcceptedOutputModesBytes(int index); - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the pushNotification field is set. - */ - boolean hasPushNotification(); - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The pushNotification. - */ - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfig getPushNotification(); - - /** - * - * - *
        -   * Optional. A configuration of a webhook that can be used to receive updates.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.PushNotificationConfig push_notification = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.PushNotificationConfigOrBuilder - getPushNotificationOrBuilder(); - - /** - * - * - *
        -   * Optional. The maximum number of messages to include in the history. If 0,
        -   * the history will be unlimited.
        -   * 
        - * - * int32 history_length = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The historyLength. - */ - int getHistoryLength(); - - /** - * - * - *
        -   * Optional. If true, the message will be blocking until the task is
        -   * completed. If false, the task will be returned immediately.
        -   * 
        - * - * bool blocking = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The blocking. - */ - boolean getBlocking(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequest.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequest.java deleted file mode 100644 index 7ec96a43ee0a..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequest.java +++ /dev/null @@ -1,1510 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Request message for SendMessage and SendStreamingMessage.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageRequest} - */ -@com.google.protobuf.Generated -public final class SendMessageRequest extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SendMessageRequest) - SendMessageRequestOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SendMessageRequest"); - } - - // Use SendMessageRequest.newBuilder() to construct. - private SendMessageRequest(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SendMessageRequest() { - tenant_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.Builder.class); - } - - private int bitField0_; - public static final int MESSAGE_FIELD_NUMBER = 1; - private com.google.cloud.geminidataanalytics.v1beta.A2AMessage message_; - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the message field is set. - */ - @java.lang.Override - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The message. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMessage() { - return message_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : message_; - } - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMessageOrBuilder() { - return message_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : message_; - } - - public static final int CONFIGURATION_FIELD_NUMBER = 2; - private com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration_; - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the configuration field is set. - */ - @java.lang.Override - public boolean hasConfiguration() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The configuration. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration getConfiguration() { - return configuration_ == null - ? com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.getDefaultInstance() - : configuration_; - } - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder - getConfigurationOrBuilder() { - return configuration_ == null - ? com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.getDefaultInstance() - : configuration_; - } - - public static final int METADATA_FIELD_NUMBER = 3; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - public static final int TENANT_FIELD_NUMBER = 4; - - @SuppressWarnings("serial") - private volatile java.lang.Object tenant_ = ""; - - /** - * - * - *
        -   * Optional. Optional tenant, provided as a path parameter.
        -   * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tenant. - */ - @java.lang.Override - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tenant_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. Optional tenant, provided as a path parameter.
        -   * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tenant. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tenant_ = 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, getMessage()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(2, getConfiguration()); - } - if (((bitField0_ & 0x00000004) != 0)) { - output.writeMessage(3, getMetadata()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 4, tenant_); - } - 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()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getConfiguration()); - } - if (((bitField0_ & 0x00000004) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMetadata()); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(4, tenant_); - } - 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.geminidataanalytics.v1beta.SendMessageRequest)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest other = - (com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest) obj; - - if (hasMessage() != other.hasMessage()) return false; - if (hasMessage()) { - if (!getMessage().equals(other.getMessage())) return false; - } - if (hasConfiguration() != other.hasConfiguration()) return false; - if (hasConfiguration()) { - if (!getConfiguration().equals(other.getConfiguration())) return false; - } - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) return false; - } - if (!getTenant().equals(other.getTenant())) 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(); - } - if (hasConfiguration()) { - hash = (37 * hash) + CONFIGURATION_FIELD_NUMBER; - hash = (53 * hash) + getConfiguration().hashCode(); - } - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (37 * hash) + TENANT_FIELD_NUMBER; - hash = (53 * hash) + getTenant().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest 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.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - 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.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.SendMessageRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Request message for SendMessage and SendStreamingMessage.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SendMessageRequest) - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetMessageFieldBuilder(); - internalGetConfigurationFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - message_ = null; - if (messageBuilder_ != null) { - messageBuilder_.dispose(); - messageBuilder_ = null; - } - configuration_ = null; - if (configurationBuilder_ != null) { - configurationBuilder_.dispose(); - configurationBuilder_ = null; - } - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - tenant_ = ""; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageRequest_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest build() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest result = - new com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest result) { - int from_bitField0_ = bitField0_; - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.message_ = messageBuilder_ == null ? message_ : messageBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.configuration_ = - configurationBuilder_ == null ? configuration_ : configurationBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000004; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.tenant_ = tenant_; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest.getDefaultInstance()) - return this; - if (other.hasMessage()) { - mergeMessage(other.getMessage()); - } - if (other.hasConfiguration()) { - mergeConfiguration(other.getConfiguration()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - if (!other.getTenant().isEmpty()) { - tenant_ = other.tenant_; - 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: - { - input.readMessage(internalGetMessageFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - input.readMessage( - internalGetConfigurationFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 34: - { - tenant_ = 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 com.google.cloud.geminidataanalytics.v1beta.A2AMessage message_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - messageBuilder_; - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the message field is set. - */ - public boolean hasMessage() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The message. - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMessage() { - if (messageBuilder_ == null) { - return message_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : message_; - } else { - return messageBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMessage(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (messageBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - message_ = value; - } else { - messageBuilder_.setMessage(value); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setMessage( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (messageBuilder_ == null) { - message_ = builderForValue.build(); - } else { - messageBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeMessage(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (messageBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0) - && message_ != null - && message_ - != com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()) { - getMessageBuilder().mergeFrom(value); - } else { - message_ = value; - } - } else { - messageBuilder_.mergeFrom(value); - } - if (message_ != null) { - bitField0_ |= 0x00000001; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearMessage() { - bitField0_ = (bitField0_ & ~0x00000001); - message_ = null; - if (messageBuilder_ != null) { - messageBuilder_.dispose(); - messageBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder getMessageBuilder() { - bitField0_ |= 0x00000001; - onChanged(); - return internalGetMessageFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMessageOrBuilder() { - if (messageBuilder_ != null) { - return messageBuilder_.getMessageOrBuilder(); - } else { - return message_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : message_; - } - } - - /** - * - * - *
        -     * Required. The message to send to the agent.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - internalGetMessageFieldBuilder() { - if (messageBuilder_ == null) { - messageBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>( - getMessage(), getParentForChildren(), isClean()); - message_ = null; - } - return messageBuilder_; - } - - private com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder> - configurationBuilder_; - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the configuration field is set. - */ - public boolean hasConfiguration() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The configuration. - */ - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration getConfiguration() { - if (configurationBuilder_ == null) { - return configuration_ == null - ? com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - .getDefaultInstance() - : configuration_; - } else { - return configurationBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfiguration( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration value) { - if (configurationBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - configuration_ = value; - } else { - configurationBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setConfiguration( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder - builderForValue) { - if (configurationBuilder_ == null) { - configuration_ = builderForValue.build(); - } else { - configurationBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeConfiguration( - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration value) { - if (configurationBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && configuration_ != null - && configuration_ - != com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - .getDefaultInstance()) { - getConfigurationBuilder().mergeFrom(value); - } else { - configuration_ = value; - } - } else { - configurationBuilder_.mergeFrom(value); - } - if (configuration_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearConfiguration() { - bitField0_ = (bitField0_ & ~0x00000002); - configuration_ = null; - if (configurationBuilder_ != null) { - configurationBuilder_.dispose(); - configurationBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder - getConfigurationBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetConfigurationFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder - getConfigurationOrBuilder() { - if (configurationBuilder_ != null) { - return configurationBuilder_.getMessageOrBuilder(); - } else { - return configuration_ == null - ? com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration - .getDefaultInstance() - : configuration_; - } - } - - /** - * - * - *
        -     * Optional. Configuration for the send request.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder> - internalGetConfigurationFieldBuilder() { - if (configurationBuilder_ == null) { - configurationBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration.Builder, - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder>( - getConfiguration(), getParentForChildren(), isClean()); - configuration_ = null; - } - return configurationBuilder_; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000004); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Optional metadata for the request.
        -     * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - private java.lang.Object tenant_ = ""; - - /** - * - * - *
        -     * Optional. Optional tenant, provided as a path parameter.
        -     * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tenant. - */ - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - tenant_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. Optional tenant, provided as a path parameter.
        -     * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tenant. - */ - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - tenant_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. Optional tenant, provided as a path parameter.
        -     * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The tenant to set. - * @return This builder for chaining. - */ - public Builder setTenant(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - tenant_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional tenant, provided as a path parameter.
        -     * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTenant() { - tenant_ = getDefaultInstance().getTenant(); - bitField0_ = (bitField0_ & ~0x00000008); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional tenant, provided as a path parameter.
        -     * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for tenant to set. - * @return This builder for chaining. - */ - public Builder setTenantBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - tenant_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SendMessageRequest) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SendMessageRequest) - private static final com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendMessageRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.SendMessageRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequestOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequestOrBuilder.java deleted file mode 100644 index 7226d6dd41a4..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageRequestOrBuilder.java +++ /dev/null @@ -1,178 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface SendMessageRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SendMessageRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the message field is set. - */ - boolean hasMessage(); - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The message. - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMessage(); - - /** - * - * - *
        -   * Required. The message to send to the agent.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage message = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMessageOrBuilder(); - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the configuration field is set. - */ - boolean hasConfiguration(); - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The configuration. - */ - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration getConfiguration(); - - /** - * - * - *
        -   * Optional. Configuration for the send request.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration configuration = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.SendMessageConfigurationOrBuilder - getConfigurationOrBuilder(); - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata for the request.
        -   * 
        - * - * .google.protobuf.Struct metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); - - /** - * - * - *
        -   * Optional. Optional tenant, provided as a path parameter.
        -   * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The tenant. - */ - java.lang.String getTenant(); - - /** - * - * - *
        -   * Optional. Optional tenant, provided as a path parameter.
        -   * 
        - * - * string tenant = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for tenant. - */ - com.google.protobuf.ByteString getTenantBytes(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponse.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponse.java deleted file mode 100644 index 9c8dc11ba3e3..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponse.java +++ /dev/null @@ -1,1124 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * Response message for SendMessage.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageResponse} - */ -@com.google.protobuf.Generated -public final class SendMessageResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.SendMessageResponse) - SendMessageResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "SendMessageResponse"); - } - - // Use SendMessageResponse.newBuilder() to construct. - private SendMessageResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private SendMessageResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.Builder.class); - } - - 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 { - TASK(1), - MSG(2), - 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 1: - return TASK; - case 2: - return MSG; - 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 TASK_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return payloadCase_ == 1; - } - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask() { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder() { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - - public static final int MSG_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - @java.lang.Override - public boolean hasMsg() { - return payloadCase_ == 2; - } - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg() { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.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 (payloadCase_ == 1) { - output.writeMessage(1, (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_); - } - if (payloadCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) 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.cloud.geminidataanalytics.v1beta.SendMessageResponse)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse other = - (com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getTask().equals(other.getTask())) return false; - break; - case 2: - if (!getMsg().equals(other.getMsg())) 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 (payloadCase_) { - case 1: - hash = (37 * hash) + TASK_FIELD_NUMBER; - hash = (53 * hash) + getTask().hashCode(); - break; - case 2: - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse 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.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - 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.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.SendMessageResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * Response message for SendMessage.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.SendMessageResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.SendMessageResponse) - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.class, - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taskBuilder_ != null) { - taskBuilder_.clear(); - } - if (msgBuilder_ != null) { - msgBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_SendMessageResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse build() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse result = - new com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && taskBuilder_ != null) { - result.payload_ = taskBuilder_.build(); - } - if (payloadCase_ == 2 && msgBuilder_ != null) { - result.payload_ = msgBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.getDefaultInstance()) - return this; - switch (other.getPayloadCase()) { - case TASK: - { - mergeTask(other.getTask()); - break; - } - case MSG: - { - mergeMsg(other.getMsg()); - 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: - { - input.readMessage(internalGetTaskFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetMsgFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 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 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 com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder> - taskBuilder_; - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return payloadCase_ == 1; - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask() { - if (taskBuilder_ == null) { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return taskBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder setTask(com.google.cloud.geminidataanalytics.v1beta.A2ATask value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder setTask( - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder builderForValue) { - if (taskBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder mergeTask(com.google.cloud.geminidataanalytics.v1beta.A2ATask value) { - if (taskBuilder_ == null) { - if (payloadCase_ == 1 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.A2ATask.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - taskBuilder_.mergeFrom(value); - } else { - taskBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - taskBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder getTaskBuilder() { - return internalGetTaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder() { - if ((payloadCase_ == 1) && (taskBuilder_ != null)) { - return taskBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Completed task.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder> - internalGetTaskFieldBuilder() { - if (taskBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - taskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return taskBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - msgBuilder_; - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - @java.lang.Override - public boolean hasMsg() { - return payloadCase_ == 2; - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg() { - if (msgBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return msgBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder setMsg(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (msgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - msgBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder setMsg( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (msgBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - msgBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder mergeMsg(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (msgBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - msgBuilder_.mergeFrom(value); - } else { - msgBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder clearMsg() { - if (msgBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - msgBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder getMsgBuilder() { - return internalGetMsgFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder() { - if ((payloadCase_ == 2) && (msgBuilder_ != null)) { - return msgBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Single message response.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - internalGetMsgFieldBuilder() { - if (msgBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - msgBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return msgBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SendMessageResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.SendMessageResponse) - private static final com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SendMessageResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.SendMessageResponse - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponseOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponseOrBuilder.java deleted file mode 100644 index bc2f76ca66c6..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SendMessageResponseOrBuilder.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface SendMessageResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.SendMessageResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - boolean hasTask(); - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask(); - - /** - * - * - *
        -   * Completed task.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder(); - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - boolean hasMsg(); - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg(); - - /** - * - * - *
        -   * Single message response.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder(); - - com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse.PayloadCase getPayloadCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java index 9e9393fff8c6..499553655a88 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReference.java @@ -60,6 +60,7 @@ private SpannerDatabaseReference() { databaseTableReferences_ = java.util.Collections.emptyList(); priority_ = ""; requestTag_ = ""; + graphIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -736,6 +737,74 @@ public com.google.protobuf.ByteString getRequestTagBytes() { } } + public static final int GRAPH_IDS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList graphIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the graphIds. + */ + public com.google.protobuf.ProtocolStringList getGraphIdsList() { + return graphIds_; + } + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of graphIds. + */ + public int getGraphIdsCount() { + return graphIds_.size(); + } + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The graphIds at the given index. + */ + public java.lang.String getGraphIds(int index) { + return graphIds_.get(index); + } + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the graphIds at the given index. + */ + public com.google.protobuf.ByteString getGraphIdsBytes(int index) { + return graphIds_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -777,6 +846,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestTag_)) { com.google.protobuf.GeneratedMessage.writeString(output, 9, requestTag_); } + for (int i = 0; i < graphIds_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 10, graphIds_.getRaw(i)); + } getUnknownFields().writeTo(output); } @@ -820,6 +892,14 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestTag_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(9, requestTag_); } + { + int dataSize = 0; + for (int i = 0; i < graphIds_.size(); i++) { + dataSize += computeStringSizeNoTag(graphIds_.getRaw(i)); + } + size += dataSize; + size += 1 * getGraphIdsList().size(); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -845,6 +925,7 @@ public boolean equals(final java.lang.Object obj) { return false; if (!getPriority().equals(other.getPriority())) return false; if (!getRequestTag().equals(other.getRequestTag())) return false; + if (!getGraphIdsList().equals(other.getGraphIdsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -876,6 +957,10 @@ public int hashCode() { hash = (53 * hash) + getPriority().hashCode(); hash = (37 * hash) + REQUEST_TAG_FIELD_NUMBER; hash = (53 * hash) + getRequestTag().hashCode(); + if (getGraphIdsCount() > 0) { + hash = (37 * hash) + GRAPH_IDS_FIELD_NUMBER; + hash = (53 * hash) + getGraphIdsList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1033,6 +1118,7 @@ public Builder clear() { bitField0_ = (bitField0_ & ~0x00000020); priority_ = ""; requestTag_ = ""; + graphIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -1109,6 +1195,10 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000080) != 0)) { result.requestTag_ = requestTag_; } + if (((from_bitField0_ & 0x00000100) != 0)) { + graphIds_.makeImmutable(); + result.graphIds_ = graphIds_; + } } @java.lang.Override @@ -1192,6 +1282,16 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; onChanged(); } + if (!other.graphIds_.isEmpty()) { + if (graphIds_.isEmpty()) { + graphIds_ = other.graphIds_; + bitField0_ |= 0x00000100; + } else { + ensureGraphIdsIsMutable(); + graphIds_.addAll(other.graphIds_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1275,6 +1375,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 74 + case 82: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureGraphIdsIsMutable(); + graphIds_.add(s); + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2634,6 +2741,189 @@ public Builder setRequestTagBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.LazyStringArrayList graphIds_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureGraphIdsIsMutable() { + if (!graphIds_.isModifiable()) { + graphIds_ = new com.google.protobuf.LazyStringArrayList(graphIds_); + } + bitField0_ |= 0x00000100; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the graphIds. + */ + public com.google.protobuf.ProtocolStringList getGraphIdsList() { + graphIds_.makeImmutable(); + return graphIds_; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of graphIds. + */ + public int getGraphIdsCount() { + return graphIds_.size(); + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The graphIds at the given index. + */ + public java.lang.String getGraphIds(int index) { + return graphIds_.get(index); + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the graphIds at the given index. + */ + public com.google.protobuf.ByteString getGraphIdsBytes(int index) { + return graphIds_.getByteString(index); + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The graphIds to set. + * @return This builder for chaining. + */ + public Builder setGraphIds(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphIdsIsMutable(); + graphIds_.set(index, value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The graphIds to add. + * @return This builder for chaining. + */ + public Builder addGraphIds(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureGraphIdsIsMutable(); + graphIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The graphIds to add. + * @return This builder for chaining. + */ + public Builder addAllGraphIds(java.lang.Iterable values) { + ensureGraphIdsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, graphIds_); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGraphIds() { + graphIds_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000100); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The graph IDs to query.
        +     * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the graphIds to add. + * @return This builder for chaining. + */ + public Builder addGraphIdsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureGraphIdsIsMutable(); + graphIds_.add(value); + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.SpannerDatabaseReference) } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java index efefa14dda38..29de91b71a55 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/SpannerDatabaseReferenceOrBuilder.java @@ -329,4 +329,58 @@ com.google.cloud.geminidataanalytics.v1beta.DatabaseTableReference getDatabaseTa * @return The bytes for requestTag. */ com.google.protobuf.ByteString getRequestTagBytes(); + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the graphIds. + */ + java.util.List getGraphIdsList(); + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of graphIds. + */ + int getGraphIdsCount(); + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The graphIds at the given index. + */ + java.lang.String getGraphIds(int index); + + /** + * + * + *
        +   * Optional. The graph IDs to query.
        +   * 
        + * + * repeated string graph_ids = 10 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the graphIds at the given index. + */ + com.google.protobuf.ByteString getGraphIdsBytes(int index); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponse.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponse.java deleted file mode 100644 index c1fbf100593b..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponse.java +++ /dev/null @@ -1,1782 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * The stream response for a message.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.StreamResponse} - */ -@com.google.protobuf.Generated -public final class StreamResponse extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.StreamResponse) - StreamResponseOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "StreamResponse"); - } - - // Use StreamResponse.newBuilder() to construct. - private StreamResponse(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private StreamResponse() {} - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.StreamResponse.class, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse.Builder.class); - } - - 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 { - TASK(1), - MSG(2), - STATUS_UPDATE(3), - ARTIFACT_UPDATE(4), - 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 1: - return TASK; - case 2: - return MSG; - case 3: - return STATUS_UPDATE; - case 4: - return ARTIFACT_UPDATE; - 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 TASK_FIELD_NUMBER = 1; - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return payloadCase_ == 1; - } - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask() { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder() { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - - public static final int MSG_FIELD_NUMBER = 2; - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - @java.lang.Override - public boolean hasMsg() { - return payloadCase_ == 2; - } - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg() { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder() { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - - public static final int STATUS_UPDATE_FIELD_NUMBER = 3; - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * @return Whether the statusUpdate field is set. - */ - @java.lang.Override - public boolean hasStatusUpdate() { - return payloadCase_ == 3; - } - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * @return The statusUpdate. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent getStatusUpdate() { - if (payloadCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.getDefaultInstance(); - } - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder - getStatusUpdateOrBuilder() { - if (payloadCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.getDefaultInstance(); - } - - public static final int ARTIFACT_UPDATE_FIELD_NUMBER = 4; - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return Whether the artifactUpdate field is set. - */ - @java.lang.Override - public boolean hasArtifactUpdate() { - return payloadCase_ == 4; - } - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return The artifactUpdate. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent getArtifactUpdate() { - if (payloadCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.getDefaultInstance(); - } - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder - getArtifactUpdateOrBuilder() { - if (payloadCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.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 (payloadCase_ == 1) { - output.writeMessage(1, (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_); - } - if (payloadCase_ == 2) { - output.writeMessage(2, (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_); - } - if (payloadCase_ == 3) { - output.writeMessage( - 3, (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_); - } - if (payloadCase_ == 4) { - output.writeMessage( - 4, (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (payloadCase_ == 1) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 1, (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_); - } - if (payloadCase_ == 2) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 2, (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_); - } - if (payloadCase_ == 3) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 3, (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_); - } - if (payloadCase_ == 4) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize( - 4, (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) 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.cloud.geminidataanalytics.v1beta.StreamResponse)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.StreamResponse other = - (com.google.cloud.geminidataanalytics.v1beta.StreamResponse) obj; - - if (!getPayloadCase().equals(other.getPayloadCase())) return false; - switch (payloadCase_) { - case 1: - if (!getTask().equals(other.getTask())) return false; - break; - case 2: - if (!getMsg().equals(other.getMsg())) return false; - break; - case 3: - if (!getStatusUpdate().equals(other.getStatusUpdate())) return false; - break; - case 4: - if (!getArtifactUpdate().equals(other.getArtifactUpdate())) 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 (payloadCase_) { - case 1: - hash = (37 * hash) + TASK_FIELD_NUMBER; - hash = (53 * hash) + getTask().hashCode(); - break; - case 2: - hash = (37 * hash) + MSG_FIELD_NUMBER; - hash = (53 * hash) + getMsg().hashCode(); - break; - case 3: - hash = (37 * hash) + STATUS_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getStatusUpdate().hashCode(); - break; - case 4: - hash = (37 * hash) + ARTIFACT_UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getArtifactUpdate().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse 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.geminidataanalytics.v1beta.StreamResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - 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.geminidataanalytics.v1beta.StreamResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.StreamResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * The stream response for a message.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.StreamResponse} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.StreamResponse) - com.google.cloud.geminidataanalytics.v1beta.StreamResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.StreamResponse.class, - com.google.cloud.geminidataanalytics.v1beta.StreamResponse.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.StreamResponse.newBuilder() - private Builder() {} - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - if (taskBuilder_ != null) { - taskBuilder_.clear(); - } - if (msgBuilder_ != null) { - msgBuilder_.clear(); - } - if (statusUpdateBuilder_ != null) { - statusUpdateBuilder_.clear(); - } - if (artifactUpdateBuilder_ != null) { - artifactUpdateBuilder_.clear(); - } - payloadCase_ = 0; - payload_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StreamResponse_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StreamResponse getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.StreamResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StreamResponse build() { - com.google.cloud.geminidataanalytics.v1beta.StreamResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StreamResponse buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.StreamResponse result = - new com.google.cloud.geminidataanalytics.v1beta.StreamResponse(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - buildPartialOneofs(result); - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.StreamResponse result) { - int from_bitField0_ = bitField0_; - } - - private void buildPartialOneofs( - com.google.cloud.geminidataanalytics.v1beta.StreamResponse result) { - result.payloadCase_ = payloadCase_; - result.payload_ = this.payload_; - if (payloadCase_ == 1 && taskBuilder_ != null) { - result.payload_ = taskBuilder_.build(); - } - if (payloadCase_ == 2 && msgBuilder_ != null) { - result.payload_ = msgBuilder_.build(); - } - if (payloadCase_ == 3 && statusUpdateBuilder_ != null) { - result.payload_ = statusUpdateBuilder_.build(); - } - if (payloadCase_ == 4 && artifactUpdateBuilder_ != null) { - result.payload_ = artifactUpdateBuilder_.build(); - } - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.StreamResponse) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.StreamResponse) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.StreamResponse other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.StreamResponse.getDefaultInstance()) - return this; - switch (other.getPayloadCase()) { - case TASK: - { - mergeTask(other.getTask()); - break; - } - case MSG: - { - mergeMsg(other.getMsg()); - break; - } - case STATUS_UPDATE: - { - mergeStatusUpdate(other.getStatusUpdate()); - break; - } - case ARTIFACT_UPDATE: - { - mergeArtifactUpdate(other.getArtifactUpdate()); - 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: - { - input.readMessage(internalGetTaskFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 1; - break; - } // case 10 - case 18: - { - input.readMessage(internalGetMsgFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 2; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetStatusUpdateFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 3; - break; - } // case 26 - case 34: - { - input.readMessage( - internalGetArtifactUpdateFieldBuilder().getBuilder(), extensionRegistry); - payloadCase_ = 4; - 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 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 com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder> - taskBuilder_; - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - @java.lang.Override - public boolean hasTask() { - return payloadCase_ == 1; - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask() { - if (taskBuilder_ == null) { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } else { - if (payloadCase_ == 1) { - return taskBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder setTask(com.google.cloud.geminidataanalytics.v1beta.A2ATask value) { - if (taskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - taskBuilder_.setMessage(value); - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder setTask( - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder builderForValue) { - if (taskBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - taskBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder mergeTask(com.google.cloud.geminidataanalytics.v1beta.A2ATask value) { - if (taskBuilder_ == null) { - if (payloadCase_ == 1 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.A2ATask.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 1) { - taskBuilder_.mergeFrom(value); - } else { - taskBuilder_.setMessage(value); - } - } - payloadCase_ = 1; - return this; - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public Builder clearTask() { - if (taskBuilder_ == null) { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 1) { - payloadCase_ = 0; - payload_ = null; - } - taskBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - public com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder getTaskBuilder() { - return internalGetTaskFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder() { - if ((payloadCase_ == 1) && (taskBuilder_ != null)) { - return taskBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 1) { - return (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Completed task event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder> - internalGetTaskFieldBuilder() { - if (taskBuilder_ == null) { - if (!(payloadCase_ == 1)) { - payload_ = com.google.cloud.geminidataanalytics.v1beta.A2ATask.getDefaultInstance(); - } - taskBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2ATask, - com.google.cloud.geminidataanalytics.v1beta.A2ATask.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.A2ATask) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 1; - onChanged(); - return taskBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - msgBuilder_; - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - @java.lang.Override - public boolean hasMsg() { - return payloadCase_ == 2; - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg() { - if (msgBuilder_ == null) { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } else { - if (payloadCase_ == 2) { - return msgBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder setMsg(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (msgBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - msgBuilder_.setMessage(value); - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder setMsg( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (msgBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - msgBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder mergeMsg(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (msgBuilder_ == null) { - if (payloadCase_ == 2 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 2) { - msgBuilder_.mergeFrom(value); - } else { - msgBuilder_.setMessage(value); - } - } - payloadCase_ = 2; - return this; - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public Builder clearMsg() { - if (msgBuilder_ == null) { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 2) { - payloadCase_ = 0; - payload_ = null; - } - msgBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder getMsgBuilder() { - return internalGetMsgFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder() { - if ((payloadCase_ == 2) && (msgBuilder_ != null)) { - return msgBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 2) { - return (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Message event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - internalGetMsgFieldBuilder() { - if (msgBuilder_ == null) { - if (!(payloadCase_ == 2)) { - payload_ = com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance(); - } - msgBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.A2AMessage) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 2; - onChanged(); - return msgBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder> - statusUpdateBuilder_; - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * - * @return Whether the statusUpdate field is set. - */ - @java.lang.Override - public boolean hasStatusUpdate() { - return payloadCase_ == 3; - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * - * @return The statusUpdate. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent getStatusUpdate() { - if (statusUpdateBuilder_ == null) { - if (payloadCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - .getDefaultInstance(); - } else { - if (payloadCase_ == 3) { - return statusUpdateBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - public Builder setStatusUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent value) { - if (statusUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - statusUpdateBuilder_.setMessage(value); - } - payloadCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - public Builder setStatusUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder builderForValue) { - if (statusUpdateBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - statusUpdateBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - public Builder mergeStatusUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent value) { - if (statusUpdateBuilder_ == null) { - if (payloadCase_ == 3 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - .getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 3) { - statusUpdateBuilder_.mergeFrom(value); - } else { - statusUpdateBuilder_.setMessage(value); - } - } - payloadCase_ = 3; - return this; - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - public Builder clearStatusUpdate() { - if (statusUpdateBuilder_ == null) { - if (payloadCase_ == 3) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 3) { - payloadCase_ = 0; - payload_ = null; - } - statusUpdateBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder - getStatusUpdateBuilder() { - return internalGetStatusUpdateFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder - getStatusUpdateOrBuilder() { - if ((payloadCase_ == 3) && (statusUpdateBuilder_ != null)) { - return statusUpdateBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 3) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Task status update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder> - internalGetStatusUpdateFieldBuilder() { - if (statusUpdateBuilder_ == null) { - if (!(payloadCase_ == 3)) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - .getDefaultInstance(); - } - statusUpdateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 3; - onChanged(); - return statusUpdateBuilder_; - } - - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder> - artifactUpdateBuilder_; - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return Whether the artifactUpdate field is set. - */ - @java.lang.Override - public boolean hasArtifactUpdate() { - return payloadCase_ == 4; - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return The artifactUpdate. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent getArtifactUpdate() { - if (artifactUpdateBuilder_ == null) { - if (payloadCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance(); - } else { - if (payloadCase_ == 4) { - return artifactUpdateBuilder_.getMessage(); - } - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - public Builder setArtifactUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent value) { - if (artifactUpdateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - payload_ = value; - onChanged(); - } else { - artifactUpdateBuilder_.setMessage(value); - } - payloadCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - public Builder setArtifactUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder - builderForValue) { - if (artifactUpdateBuilder_ == null) { - payload_ = builderForValue.build(); - onChanged(); - } else { - artifactUpdateBuilder_.setMessage(builderForValue.build()); - } - payloadCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - public Builder mergeArtifactUpdate( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent value) { - if (artifactUpdateBuilder_ == null) { - if (payloadCase_ == 4 - && payload_ - != com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance()) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.newBuilder( - (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - payload_) - .mergeFrom(value) - .buildPartial(); - } else { - payload_ = value; - } - onChanged(); - } else { - if (payloadCase_ == 4) { - artifactUpdateBuilder_.mergeFrom(value); - } else { - artifactUpdateBuilder_.setMessage(value); - } - } - payloadCase_ = 4; - return this; - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - public Builder clearArtifactUpdate() { - if (artifactUpdateBuilder_ == null) { - if (payloadCase_ == 4) { - payloadCase_ = 0; - payload_ = null; - onChanged(); - } - } else { - if (payloadCase_ == 4) { - payloadCase_ = 0; - payload_ = null; - } - artifactUpdateBuilder_.clear(); - } - return this; - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder - getArtifactUpdateBuilder() { - return internalGetArtifactUpdateFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder - getArtifactUpdateOrBuilder() { - if ((payloadCase_ == 4) && (artifactUpdateBuilder_ != null)) { - return artifactUpdateBuilder_.getMessageOrBuilder(); - } else { - if (payloadCase_ == 4) { - return (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_; - } - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance(); - } - } - - /** - * - * - *
        -     * Task artifact update event.
        -     * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder> - internalGetArtifactUpdateFieldBuilder() { - if (artifactUpdateBuilder_ == null) { - if (!(payloadCase_ == 4)) { - payload_ = - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance(); - } - artifactUpdateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder>( - (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) payload_, - getParentForChildren(), - isClean()); - payload_ = null; - } - payloadCase_ = 4; - onChanged(); - return artifactUpdateBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.StreamResponse) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.StreamResponse) - private static final com.google.cloud.geminidataanalytics.v1beta.StreamResponse DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.StreamResponse(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.StreamResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public StreamResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.StreamResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponseOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponseOrBuilder.java deleted file mode 100644 index 9431a63c2e67..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StreamResponseOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface StreamResponseOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.StreamResponse) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return Whether the task field is set. - */ - boolean hasTask(); - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - * - * @return The task. - */ - com.google.cloud.geminidataanalytics.v1beta.A2ATask getTask(); - - /** - * - * - *
        -   * Completed task event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2ATask task = 1; - */ - com.google.cloud.geminidataanalytics.v1beta.A2ATaskOrBuilder getTaskOrBuilder(); - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return Whether the msg field is set. - */ - boolean hasMsg(); - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - * - * @return The msg. - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessage getMsg(); - - /** - * - * - *
        -   * Message event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage msg = 2 [json_name = "message"]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getMsgOrBuilder(); - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * @return Whether the statusUpdate field is set. - */ - boolean hasStatusUpdate(); - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - * - * @return The statusUpdate. - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent getStatusUpdate(); - - /** - * - * - *
        -   * Task status update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent status_update = 3; - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder - getStatusUpdateOrBuilder(); - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return Whether the artifactUpdate field is set. - */ - boolean hasArtifactUpdate(); - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - * - * @return The artifactUpdate. - */ - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent getArtifactUpdate(); - - /** - * - * - *
        -   * Task artifact update event.
        -   * 
        - * - * .google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent artifact_update = 4; - * - */ - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder - getArtifactUpdateOrBuilder(); - - com.google.cloud.geminidataanalytics.v1beta.StreamResponse.PayloadCase getPayloadCase(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEvent.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEvent.java deleted file mode 100644 index 4ccbab11553f..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEvent.java +++ /dev/null @@ -1,1584 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * TaskArtifactUpdateEvent represents a task delta where an artifact has
        - * been generated.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent} - */ -@com.google.protobuf.Generated -public final class TaskArtifactUpdateEvent extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - TaskArtifactUpdateEventOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TaskArtifactUpdateEvent"); - } - - // Use TaskArtifactUpdateEvent.newBuilder() to construct. - private TaskArtifactUpdateEvent(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TaskArtifactUpdateEvent() { - taskId_ = ""; - contextId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.class, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder.class); - } - - private int bitField0_; - public static final int TASK_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object taskId_ = ""; - - /** - * - * - *
        -   * Optional. The id of the task for this artifact.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - @java.lang.Override - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The id of the task for this artifact.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTEXT_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object contextId_ = ""; - - /** - * - * - *
        -   * Optional. The id of the context that this task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - @java.lang.Override - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The id of the context that this task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ARTIFACT_FIELD_NUMBER = 3; - private com.google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact_; - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the artifact field is set. - */ - @java.lang.Override - public boolean hasArtifact() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The artifact. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifact() { - return artifact_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance() - : artifact_; - } - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactOrBuilder() { - return artifact_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance() - : artifact_; - } - - public static final int APPEND_FIELD_NUMBER = 4; - private boolean append_ = false; - - /** - * - * - *
        -   * Optional. Whether this should be appended to a prior one produced.
        -   * 
        - * - * bool append = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The append. - */ - @java.lang.Override - public boolean getAppend() { - return append_; - } - - public static final int LAST_CHUNK_FIELD_NUMBER = 5; - private boolean lastChunk_ = false; - - /** - * - * - *
        -   * Optional. Whether this represents the last part of an artifact.
        -   * 
        - * - * bool last_chunk = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The lastChunk. - */ - @java.lang.Override - public boolean getLastChunk() { - return lastChunk_; - } - - public static final int METADATA_FIELD_NUMBER = 6; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(taskId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getArtifact()); - } - if (append_ != false) { - output.writeBool(4, append_); - } - if (lastChunk_ != false) { - output.writeBool(5, lastChunk_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(6, getMetadata()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getArtifact()); - } - if (append_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, append_); - } - if (lastChunk_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, lastChunk_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getMetadata()); - } - 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.geminidataanalytics.v1beta.TaskArtifactUpdateEvent)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent other = - (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) obj; - - if (!getTaskId().equals(other.getTaskId())) return false; - if (!getContextId().equals(other.getContextId())) return false; - if (hasArtifact() != other.hasArtifact()) return false; - if (hasArtifact()) { - if (!getArtifact().equals(other.getArtifact())) return false; - } - if (getAppend() != other.getAppend()) return false; - if (getLastChunk() != other.getLastChunk()) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) 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) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; - hash = (53 * hash) + getContextId().hashCode(); - if (hasArtifact()) { - hash = (37 * hash) + ARTIFACT_FIELD_NUMBER; - hash = (53 * hash) + getArtifact().hashCode(); - } - hash = (37 * hash) + APPEND_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getAppend()); - hash = (37 * hash) + LAST_CHUNK_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getLastChunk()); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent 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.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - 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.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.TaskArtifactUpdateEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * TaskArtifactUpdateEvent represents a task delta where an artifact has
        -   * been generated.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.class, - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetArtifactFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - taskId_ = ""; - contextId_ = ""; - artifact_ = null; - if (artifactBuilder_ != null) { - artifactBuilder_.dispose(); - artifactBuilder_ = null; - } - append_ = false; - lastChunk_ = false; - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskArtifactUpdateEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent build() { - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent result = - new com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taskId_ = taskId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contextId_ = contextId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.artifact_ = artifactBuilder_ == null ? artifact_ : artifactBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.append_ = append_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.lastChunk_ = lastChunk_; - } - if (((from_bitField0_ & 0x00000020) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) { - return mergeFrom( - (com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - .getDefaultInstance()) return this; - if (!other.getTaskId().isEmpty()) { - taskId_ = other.taskId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContextId().isEmpty()) { - contextId_ = other.contextId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasArtifact()) { - mergeArtifact(other.getArtifact()); - } - if (other.getAppend() != false) { - setAppend(other.getAppend()); - } - if (other.getLastChunk() != false) { - setLastChunk(other.getLastChunk()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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: - { - taskId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - contextId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetArtifactFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - append_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 40: - { - lastChunk_ = input.readBool(); - bitField0_ |= 0x00000010; - break; - } // case 40 - case 50: - { - input.readMessage( - internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); - 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 taskId_ = ""; - - /** - * - * - *
        -     * Optional. The id of the task for this artifact.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the task for this artifact.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the task for this artifact.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the task for this artifact.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTaskId() { - taskId_ = getDefaultInstance().getTaskId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the task for this artifact.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - taskId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object contextId_ = ""; - - /** - * - * - *
        -     * Optional. The id of the context that this task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the context that this task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the context that this task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The contextId to set. - * @return This builder for chaining. - */ - public Builder setContextId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the context that this task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the context that this task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for contextId to set. - * @return This builder for chaining. - */ - public Builder setContextIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder> - artifactBuilder_; - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the artifact field is set. - */ - public boolean hasArtifact() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The artifact. - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifact() { - if (artifactBuilder_ == null) { - return artifact_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance() - : artifact_; - } else { - return artifactBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setArtifact(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact value) { - if (artifactBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - artifact_ = value; - } else { - artifactBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setArtifact( - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder builderForValue) { - if (artifactBuilder_ == null) { - artifact_ = builderForValue.build(); - } else { - artifactBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeArtifact(com.google.cloud.geminidataanalytics.v1beta.A2AArtifact value) { - if (artifactBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && artifact_ != null - && artifact_ - != com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance()) { - getArtifactBuilder().mergeFrom(value); - } else { - artifact_ = value; - } - } else { - artifactBuilder_.mergeFrom(value); - } - if (artifact_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearArtifact() { - bitField0_ = (bitField0_ & ~0x00000004); - artifact_ = null; - if (artifactBuilder_ != null) { - artifactBuilder_.dispose(); - artifactBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder getArtifactBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetArtifactFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactOrBuilder() { - if (artifactBuilder_ != null) { - return artifactBuilder_.getMessageOrBuilder(); - } else { - return artifact_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.getDefaultInstance() - : artifact_; - } - } - - /** - * - * - *
        -     * Optional. The artifact itself.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder> - internalGetArtifactFieldBuilder() { - if (artifactBuilder_ == null) { - artifactBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder>( - getArtifact(), getParentForChildren(), isClean()); - artifact_ = null; - } - return artifactBuilder_; - } - - private boolean append_; - - /** - * - * - *
        -     * Optional. Whether this should be appended to a prior one produced.
        -     * 
        - * - * bool append = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The append. - */ - @java.lang.Override - public boolean getAppend() { - return append_; - } - - /** - * - * - *
        -     * Optional. Whether this should be appended to a prior one produced.
        -     * 
        - * - * bool append = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The append to set. - * @return This builder for chaining. - */ - public Builder setAppend(boolean value) { - - append_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Whether this should be appended to a prior one produced.
        -     * 
        - * - * bool append = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearAppend() { - bitField0_ = (bitField0_ & ~0x00000008); - append_ = false; - onChanged(); - return this; - } - - private boolean lastChunk_; - - /** - * - * - *
        -     * Optional. Whether this represents the last part of an artifact.
        -     * 
        - * - * bool last_chunk = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The lastChunk. - */ - @java.lang.Override - public boolean getLastChunk() { - return lastChunk_; - } - - /** - * - * - *
        -     * Optional. Whether this represents the last part of an artifact.
        -     * 
        - * - * bool last_chunk = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The lastChunk to set. - * @return This builder for chaining. - */ - public Builder setLastChunk(boolean value) { - - lastChunk_ = value; - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Whether this represents the last part of an artifact.
        -     * 
        - * - * bool last_chunk = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearLastChunk() { - bitField0_ = (bitField0_ & ~0x00000010); - lastChunk_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000020) != 0); - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000020; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000020; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000020); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000020; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Optional metadata associated with the artifact update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - private static final com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskArtifactUpdateEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.TaskArtifactUpdateEvent - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEventOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEventOrBuilder.java deleted file mode 100644 index f2d7aa4f6354..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskArtifactUpdateEventOrBuilder.java +++ /dev/null @@ -1,186 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface TaskArtifactUpdateEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.TaskArtifactUpdateEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The id of the task for this artifact.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - java.lang.String getTaskId(); - - /** - * - * - *
        -   * Optional. The id of the task for this artifact.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - com.google.protobuf.ByteString getTaskIdBytes(); - - /** - * - * - *
        -   * Optional. The id of the context that this task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - java.lang.String getContextId(); - - /** - * - * - *
        -   * Optional. The id of the context that this task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - com.google.protobuf.ByteString getContextIdBytes(); - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the artifact field is set. - */ - boolean hasArtifact(); - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The artifact. - */ - com.google.cloud.geminidataanalytics.v1beta.A2AArtifact getArtifact(); - - /** - * - * - *
        -   * Optional. The artifact itself.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AArtifact artifact = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AArtifactOrBuilder getArtifactOrBuilder(); - - /** - * - * - *
        -   * Optional. Whether this should be appended to a prior one produced.
        -   * 
        - * - * bool append = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The append. - */ - boolean getAppend(); - - /** - * - * - *
        -   * Optional. Whether this represents the last part of an artifact.
        -   * 
        - * - * bool last_chunk = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The lastChunk. - */ - boolean getLastChunk(); - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata associated with the artifact update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 6 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskState.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskState.java deleted file mode 100644 index 4d005d53d0a9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskState.java +++ /dev/null @@ -1,339 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * The set of states a Task can be in.
        - * 
        - * - * Protobuf enum {@code google.cloud.geminidataanalytics.v1beta.TaskState} - */ -@com.google.protobuf.Generated -public enum TaskState implements com.google.protobuf.ProtocolMessageEnum { - /** - * - * - *
        -   * Default unspecified task state.
        -   * 
        - * - * TASK_STATE_UNSPECIFIED = 0; - */ - TASK_STATE_UNSPECIFIED(0), - /** - * - * - *
        -   * Represents the status that acknowledges a task is created.
        -   * 
        - * - * TASK_STATE_SUBMITTED = 1; - */ - TASK_STATE_SUBMITTED(1), - /** - * - * - *
        -   * Represents the status that a task is currently in progress.
        -   * 
        - * - * TASK_STATE_WORKING = 2; - */ - TASK_STATE_WORKING(2), - /** - * - * - *
        -   * Represents the status that a task is completed. This is a terminal state.
        -   * 
        - * - * TASK_STATE_COMPLETED = 3; - */ - TASK_STATE_COMPLETED(3), - /** - * - * - *
        -   * Represents the status that a task has failed. This is a terminal state.
        -   * 
        - * - * TASK_STATE_FAILED = 4; - */ - TASK_STATE_FAILED(4), - /** - * - * - *
        -   * Represents the status that a task was cancelled before it finished.
        -   * This is a terminal state.
        -   * 
        - * - * TASK_STATE_CANCELLED = 5; - */ - TASK_STATE_CANCELLED(5), - /** - * - * - *
        -   * Represents the status that the task requires information to complete.
        -   * This is an interrupted state.
        -   * 
        - * - * TASK_STATE_INPUT_REQUIRED = 6; - */ - TASK_STATE_INPUT_REQUIRED(6), - /** - * - * - *
        -   * Represents the status that a task has been rejected by the agent.
        -   * This is a terminal state.
        -   * 
        - * - * TASK_STATE_REJECTED = 7; - */ - TASK_STATE_REJECTED(7), - /** - * - * - *
        -   * Represents the state that some authentication is needed from the upstream
        -   * client.
        -   * 
        - * - * TASK_STATE_AUTH_REQUIRED = 8; - */ - TASK_STATE_AUTH_REQUIRED(8), - UNRECOGNIZED(-1), - ; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TaskState"); - } - - /** - * - * - *
        -   * Default unspecified task state.
        -   * 
        - * - * TASK_STATE_UNSPECIFIED = 0; - */ - public static final int TASK_STATE_UNSPECIFIED_VALUE = 0; - - /** - * - * - *
        -   * Represents the status that acknowledges a task is created.
        -   * 
        - * - * TASK_STATE_SUBMITTED = 1; - */ - public static final int TASK_STATE_SUBMITTED_VALUE = 1; - - /** - * - * - *
        -   * Represents the status that a task is currently in progress.
        -   * 
        - * - * TASK_STATE_WORKING = 2; - */ - public static final int TASK_STATE_WORKING_VALUE = 2; - - /** - * - * - *
        -   * Represents the status that a task is completed. This is a terminal state.
        -   * 
        - * - * TASK_STATE_COMPLETED = 3; - */ - public static final int TASK_STATE_COMPLETED_VALUE = 3; - - /** - * - * - *
        -   * Represents the status that a task has failed. This is a terminal state.
        -   * 
        - * - * TASK_STATE_FAILED = 4; - */ - public static final int TASK_STATE_FAILED_VALUE = 4; - - /** - * - * - *
        -   * Represents the status that a task was cancelled before it finished.
        -   * This is a terminal state.
        -   * 
        - * - * TASK_STATE_CANCELLED = 5; - */ - public static final int TASK_STATE_CANCELLED_VALUE = 5; - - /** - * - * - *
        -   * Represents the status that the task requires information to complete.
        -   * This is an interrupted state.
        -   * 
        - * - * TASK_STATE_INPUT_REQUIRED = 6; - */ - public static final int TASK_STATE_INPUT_REQUIRED_VALUE = 6; - - /** - * - * - *
        -   * Represents the status that a task has been rejected by the agent.
        -   * This is a terminal state.
        -   * 
        - * - * TASK_STATE_REJECTED = 7; - */ - public static final int TASK_STATE_REJECTED_VALUE = 7; - - /** - * - * - *
        -   * Represents the state that some authentication is needed from the upstream
        -   * client.
        -   * 
        - * - * TASK_STATE_AUTH_REQUIRED = 8; - */ - public static final int TASK_STATE_AUTH_REQUIRED_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 TaskState 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 TaskState forNumber(int value) { - switch (value) { - case 0: - return TASK_STATE_UNSPECIFIED; - case 1: - return TASK_STATE_SUBMITTED; - case 2: - return TASK_STATE_WORKING; - case 3: - return TASK_STATE_COMPLETED; - case 4: - return TASK_STATE_FAILED; - case 5: - return TASK_STATE_CANCELLED; - case 6: - return TASK_STATE_INPUT_REQUIRED; - case 7: - return TASK_STATE_REJECTED; - case 8: - return TASK_STATE_AUTH_REQUIRED; - 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 TaskState findValueByNumber(int number) { - return TaskState.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto.getDescriptor() - .getEnumTypes() - .get(0); - } - - private static final TaskState[] VALUES = values(); - - public static TaskState 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 TaskState(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.TaskState) -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatus.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatus.java deleted file mode 100644 index bfa1c5a42cc9..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatus.java +++ /dev/null @@ -1,1187 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * A container for the status of a task.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskStatus} - */ -@com.google.protobuf.Generated -public final class TaskStatus extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.TaskStatus) - TaskStatusOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TaskStatus"); - } - - // Use TaskStatus.newBuilder() to construct. - private TaskStatus(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TaskStatus() { - state_ = 0; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.class, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder.class); - } - - private int bitField0_; - public static final int STATE_FIELD_NUMBER = 1; - private int state_ = 0; - - /** - * - * - *
        -   * Output only. The current state of this task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.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 current state of this task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskState getState() { - com.google.cloud.geminidataanalytics.v1beta.TaskState result = - com.google.cloud.geminidataanalytics.v1beta.TaskState.forNumber(state_); - return result == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskState.UNRECOGNIZED - : result; - } - - public static final int UPDATE_FIELD_NUMBER = 2; - private com.google.cloud.geminidataanalytics.v1beta.A2AMessage update_; - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the update field is set. - */ - @java.lang.Override - public boolean hasUpdate() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The update. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getUpdate() { - return update_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : update_; - } - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getUpdateOrBuilder() { - return update_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : update_; - } - - public static final int TIMESTAMP_FIELD_NUMBER = 3; - private com.google.protobuf.Timestamp timestamp_; - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the timestamp field is set. - */ - @java.lang.Override - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The timestamp. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getTimestamp() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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 (state_ - != com.google.cloud.geminidataanalytics.v1beta.TaskState.TASK_STATE_UNSPECIFIED - .getNumber()) { - output.writeEnum(1, state_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(2, getUpdate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(3, getTimestamp()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (state_ - != com.google.cloud.geminidataanalytics.v1beta.TaskState.TASK_STATE_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, state_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdate()); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getTimestamp()); - } - 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.geminidataanalytics.v1beta.TaskStatus)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.TaskStatus other = - (com.google.cloud.geminidataanalytics.v1beta.TaskStatus) obj; - - if (state_ != other.state_) return false; - if (hasUpdate() != other.hasUpdate()) return false; - if (hasUpdate()) { - if (!getUpdate().equals(other.getUpdate())) return false; - } - if (hasTimestamp() != other.hasTimestamp()) return false; - if (hasTimestamp()) { - if (!getTimestamp().equals(other.getTimestamp())) 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) + STATE_FIELD_NUMBER; - hash = (53 * hash) + state_; - if (hasUpdate()) { - hash = (37 * hash) + UPDATE_FIELD_NUMBER; - hash = (53 * hash) + getUpdate().hashCode(); - } - if (hasTimestamp()) { - hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER; - hash = (53 * hash) + getTimestamp().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus 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.geminidataanalytics.v1beta.TaskStatus parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - 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.geminidataanalytics.v1beta.TaskStatus parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.TaskStatus prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * A container for the status of a task.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskStatus} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.TaskStatus) - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.class, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder.class); - } - - // Construct using com.google.cloud.geminidataanalytics.v1beta.TaskStatus.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetUpdateFieldBuilder(); - internalGetTimestampFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - state_ = 0; - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - timestamp_ = null; - if (timestampBuilder_ != null) { - timestampBuilder_.dispose(); - timestampBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatus_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus build() { - com.google.cloud.geminidataanalytics.v1beta.TaskStatus result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.TaskStatus result = - new com.google.cloud.geminidataanalytics.v1beta.TaskStatus(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.TaskStatus result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.state_ = state_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000002) != 0)) { - result.update_ = updateBuilder_ == null ? update_ : updateBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000004) != 0)) { - result.timestamp_ = timestampBuilder_ == null ? timestamp_ : timestampBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.TaskStatus) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.TaskStatus) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.TaskStatus other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance()) - return this; - if (other.state_ != 0) { - setStateValue(other.getStateValue()); - } - if (other.hasUpdate()) { - mergeUpdate(other.getUpdate()); - } - if (other.hasTimestamp()) { - mergeTimestamp(other.getTimestamp()); - } - 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: - { - state_ = input.readEnum(); - bitField0_ |= 0x00000001; - break; - } // case 8 - case 18: - { - input.readMessage(internalGetUpdateFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage( - internalGetTimestampFieldBuilder().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 int state_ = 0; - - /** - * - * - *
        -     * Output only. The current state of this task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.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 current state of this task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.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_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Output only. The current state of this task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskState getState() { - com.google.cloud.geminidataanalytics.v1beta.TaskState result = - com.google.cloud.geminidataanalytics.v1beta.TaskState.forNumber(state_); - return result == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskState.UNRECOGNIZED - : result; - } - - /** - * - * - *
        -     * Output only. The current state of this task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @param value The state to set. - * @return This builder for chaining. - */ - public Builder setState(com.google.cloud.geminidataanalytics.v1beta.TaskState value) { - if (value == null) { - throw new NullPointerException(); - } - bitField0_ |= 0x00000001; - state_ = value.getNumber(); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Output only. The current state of this task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return This builder for chaining. - */ - public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000001); - state_ = 0; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.A2AMessage update_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - updateBuilder_; - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the update field is set. - */ - public boolean hasUpdate() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The update. - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage getUpdate() { - if (updateBuilder_ == null) { - return update_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : update_; - } else { - return updateBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setUpdate(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (updateBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - update_ = value; - } else { - updateBuilder_.setMessage(value); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setUpdate( - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder builderForValue) { - if (updateBuilder_ == null) { - update_ = builderForValue.build(); - } else { - updateBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeUpdate(com.google.cloud.geminidataanalytics.v1beta.A2AMessage value) { - if (updateBuilder_ == null) { - if (((bitField0_ & 0x00000002) != 0) - && update_ != null - && update_ - != com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance()) { - getUpdateBuilder().mergeFrom(value); - } else { - update_ = value; - } - } else { - updateBuilder_.mergeFrom(value); - } - if (update_ != null) { - bitField0_ |= 0x00000002; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearUpdate() { - bitField0_ = (bitField0_ & ~0x00000002); - update_ = null; - if (updateBuilder_ != null) { - updateBuilder_.dispose(); - updateBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder getUpdateBuilder() { - bitField0_ |= 0x00000002; - onChanged(); - return internalGetUpdateFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getUpdateOrBuilder() { - if (updateBuilder_ != null) { - return updateBuilder_.getMessageOrBuilder(); - } else { - return update_ == null - ? com.google.cloud.geminidataanalytics.v1beta.A2AMessage.getDefaultInstance() - : update_; - } - } - - /** - * - * - *
        -     * Optional. A message associated with the status.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder> - internalGetUpdateFieldBuilder() { - if (updateBuilder_ == null) { - updateBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.A2AMessage, - com.google.cloud.geminidataanalytics.v1beta.A2AMessage.Builder, - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder>( - getUpdate(), getParentForChildren(), isClean()); - update_ = null; - } - return updateBuilder_; - } - - private com.google.protobuf.Timestamp timestamp_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - timestampBuilder_; - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the timestamp field is set. - */ - public boolean hasTimestamp() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The timestamp. - */ - public com.google.protobuf.Timestamp getTimestamp() { - if (timestampBuilder_ == null) { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } else { - return timestampBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - timestamp_ = value; - } else { - timestampBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder setTimestamp(com.google.protobuf.Timestamp.Builder builderForValue) { - if (timestampBuilder_ == null) { - timestamp_ = builderForValue.build(); - } else { - timestampBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder mergeTimestamp(com.google.protobuf.Timestamp value) { - if (timestampBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && timestamp_ != null - && timestamp_ != com.google.protobuf.Timestamp.getDefaultInstance()) { - getTimestampBuilder().mergeFrom(value); - } else { - timestamp_ = value; - } - } else { - timestampBuilder_.mergeFrom(value); - } - if (timestamp_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public Builder clearTimestamp() { - bitField0_ = (bitField0_ & ~0x00000004); - timestamp_ = null; - if (timestampBuilder_ != null) { - timestampBuilder_.dispose(); - timestampBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.Timestamp.Builder getTimestampBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetTimestampFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() { - if (timestampBuilder_ != null) { - return timestampBuilder_.getMessageOrBuilder(); - } else { - return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_; - } - } - - /** - * - * - *
        -     * Output only. Timestamp when the status was recorded.
        -     * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder> - internalGetTimestampFieldBuilder() { - if (timestampBuilder_ == null) { - timestampBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Timestamp, - com.google.protobuf.Timestamp.Builder, - com.google.protobuf.TimestampOrBuilder>( - getTimestamp(), getParentForChildren(), isClean()); - timestamp_ = null; - } - return timestampBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TaskStatus) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.TaskStatus) - private static final com.google.cloud.geminidataanalytics.v1beta.TaskStatus DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.TaskStatus(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatus getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskStatus parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.TaskStatus getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusOrBuilder.java deleted file mode 100644 index c7732de5bcd7..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusOrBuilder.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface TaskStatusOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.TaskStatus) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Output only. The current state of this task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The enum numeric value on the wire for state. - */ - int getStateValue(); - - /** - * - * - *
        -   * Output only. The current state of this task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskState state = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The state. - */ - com.google.cloud.geminidataanalytics.v1beta.TaskState getState(); - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the update field is set. - */ - boolean hasUpdate(); - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The update. - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessage getUpdate(); - - /** - * - * - *
        -   * Optional. A message associated with the status.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.A2AMessage update = 2 [json_name = "message", (.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.A2AMessageOrBuilder getUpdateOrBuilder(); - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return Whether the timestamp field is set. - */ - boolean hasTimestamp(); - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * - * @return The timestamp. - */ - com.google.protobuf.Timestamp getTimestamp(); - - /** - * - * - *
        -   * Output only. Timestamp when the status was recorded.
        -   * 
        - * - * .google.protobuf.Timestamp timestamp = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - */ - com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEvent.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEvent.java deleted file mode 100644 index c1c5261f4411..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEvent.java +++ /dev/null @@ -1,1484 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -/** - * - * - *
        - * TaskStatusUpdateEvent is a delta event on a task indicating that a task
        - * has changed.
        - * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent} - */ -@com.google.protobuf.Generated -public final class TaskStatusUpdateEvent extends com.google.protobuf.GeneratedMessage - implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) - TaskStatusUpdateEventOrBuilder { - private static final long serialVersionUID = 0L; - - static { - com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( - com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, - /* major= */ 4, - /* minor= */ 33, - /* patch= */ 6, - /* suffix= */ "", - "TaskStatusUpdateEvent"); - } - - // Use TaskStatusUpdateEvent.newBuilder() to construct. - private TaskStatusUpdateEvent(com.google.protobuf.GeneratedMessage.Builder builder) { - super(builder); - } - - private TaskStatusUpdateEvent() { - taskId_ = ""; - contextId_ = ""; - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.class, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder.class); - } - - private int bitField0_; - public static final int TASK_ID_FIELD_NUMBER = 1; - - @SuppressWarnings("serial") - private volatile java.lang.Object taskId_ = ""; - - /** - * - * - *
        -   * Optional. The id of the task that is changed.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - @java.lang.Override - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The id of the task that is changed.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONTEXT_ID_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object contextId_ = ""; - - /** - * - * - *
        -   * Optional. The id of the context that the task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - @java.lang.Override - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } - } - - /** - * - * - *
        -   * Optional. The id of the context that the task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - @java.lang.Override - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int STATUS_FIELD_NUMBER = 3; - private com.google.cloud.geminidataanalytics.v1beta.TaskStatus status_; - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - @java.lang.Override - public boolean hasStatus() { - return ((bitField0_ & 0x00000001) != 0); - } - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus() { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder() { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - - public static final int FINAL_FIELD_NUMBER = 4; - private boolean final_ = false; - - /** - * - * - *
        -   * Optional. Whether this is the last status update expected for this task.
        -   * 
        - * - * bool final = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The final. - */ - @java.lang.Override - public boolean getFinal() { - return final_; - } - - public static final int METADATA_FIELD_NUMBER = 5; - private com.google.protobuf.Struct metadata_; - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - @java.lang.Override - public boolean hasMetadata() { - return ((bitField0_ & 0x00000002) != 0); - } - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - @java.lang.Override - public com.google.protobuf.Struct getMetadata() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - @java.lang.Override - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - 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.GeneratedMessage.isStringEmpty(taskId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, taskId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - output.writeMessage(3, getStatus()); - } - if (final_ != false) { - output.writeBool(4, final_); - } - if (((bitField0_ & 0x00000002) != 0)) { - output.writeMessage(5, getMetadata()); - } - getUnknownFields().writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(taskId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, taskId_); - } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(contextId_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, contextId_); - } - if (((bitField0_ & 0x00000001) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getStatus()); - } - if (final_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, final_); - } - if (((bitField0_ & 0x00000002) != 0)) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getMetadata()); - } - 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.geminidataanalytics.v1beta.TaskStatusUpdateEvent)) { - return super.equals(obj); - } - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent other = - (com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) obj; - - if (!getTaskId().equals(other.getTaskId())) return false; - if (!getContextId().equals(other.getContextId())) return false; - if (hasStatus() != other.hasStatus()) return false; - if (hasStatus()) { - if (!getStatus().equals(other.getStatus())) return false; - } - if (getFinal() != other.getFinal()) return false; - if (hasMetadata() != other.hasMetadata()) return false; - if (hasMetadata()) { - if (!getMetadata().equals(other.getMetadata())) 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) + TASK_ID_FIELD_NUMBER; - hash = (53 * hash) + getTaskId().hashCode(); - hash = (37 * hash) + CONTEXT_ID_FIELD_NUMBER; - hash = (53 * hash) + getContextId().hashCode(); - if (hasStatus()) { - hash = (37 * hash) + STATUS_FIELD_NUMBER; - hash = (53 * hash) + getStatus().hashCode(); - } - hash = (37 * hash) + FINAL_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getFinal()); - if (hasMetadata()) { - hash = (37 * hash) + METADATA_FIELD_NUMBER; - hash = (53 * hash) + getMetadata().hashCode(); - } - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent 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.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - 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.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( - PARSER, input, extensionRegistry); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - com.google.protobuf.CodedInputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessage.parseWithIOException( - PARSER, 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.geminidataanalytics.v1beta.TaskStatusUpdateEvent prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - - /** - * - * - *
        -   * TaskStatusUpdateEvent is a delta event on a task indicating that a task
        -   * has changed.
        -   * 
        - * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder - implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEventOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessage.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.class, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.Builder.class); - } - - // Construct using - // com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { - internalGetStatusFieldBuilder(); - internalGetMetadataFieldBuilder(); - } - } - - @java.lang.Override - public Builder clear() { - super.clear(); - bitField0_ = 0; - taskId_ = ""; - contextId_ = ""; - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - final_ = false; - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_TaskStatusUpdateEvent_descriptor; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.getDefaultInstance(); - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent build() { - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent result = - new com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent(this); - if (bitField0_ != 0) { - buildPartial0(result); - } - onBuilt(); - return result; - } - - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent result) { - int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000001) != 0)) { - result.taskId_ = taskId_; - } - if (((from_bitField0_ & 0x00000002) != 0)) { - result.contextId_ = contextId_; - } - int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { - result.status_ = statusBuilder_ == null ? status_ : statusBuilder_.build(); - to_bitField0_ |= 0x00000001; - } - if (((from_bitField0_ & 0x00000008) != 0)) { - result.final_ = final_; - } - if (((from_bitField0_ & 0x00000010) != 0)) { - result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); - to_bitField0_ |= 0x00000002; - } - result.bitField0_ |= to_bitField0_; - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent.getDefaultInstance()) - return this; - if (!other.getTaskId().isEmpty()) { - taskId_ = other.taskId_; - bitField0_ |= 0x00000001; - onChanged(); - } - if (!other.getContextId().isEmpty()) { - contextId_ = other.contextId_; - bitField0_ |= 0x00000002; - onChanged(); - } - if (other.hasStatus()) { - mergeStatus(other.getStatus()); - } - if (other.getFinal() != false) { - setFinal(other.getFinal()); - } - if (other.hasMetadata()) { - mergeMetadata(other.getMetadata()); - } - 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: - { - taskId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000001; - break; - } // case 10 - case 18: - { - contextId_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; - break; - } // case 18 - case 26: - { - input.readMessage(internalGetStatusFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; - break; - } // case 26 - case 32: - { - final_ = input.readBool(); - bitField0_ |= 0x00000008; - break; - } // case 32 - case 42: - { - input.readMessage( - internalGetMetadataFieldBuilder().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 java.lang.Object taskId_ = ""; - - /** - * - * - *
        -     * Optional. The id of the task that is changed.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - public java.lang.String getTaskId() { - java.lang.Object ref = taskId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - taskId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the task that is changed.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - public com.google.protobuf.ByteString getTaskIdBytes() { - java.lang.Object ref = taskId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - taskId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the task that is changed.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - taskId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the task that is changed.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearTaskId() { - taskId_ = getDefaultInstance().getTaskId(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the task that is changed.
        -     * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for taskId to set. - * @return This builder for chaining. - */ - public Builder setTaskIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - taskId_ = value; - bitField0_ |= 0x00000001; - onChanged(); - return this; - } - - private java.lang.Object contextId_ = ""; - - /** - * - * - *
        -     * Optional. The id of the context that the task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - public java.lang.String getContextId() { - java.lang.Object ref = contextId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - contextId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the context that the task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - public com.google.protobuf.ByteString getContextIdBytes() { - java.lang.Object ref = contextId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - contextId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - /** - * - * - *
        -     * Optional. The id of the context that the task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The contextId to set. - * @return This builder for chaining. - */ - public Builder setContextId(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the context that the task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearContextId() { - contextId_ = getDefaultInstance().getContextId(); - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The id of the context that the task belongs to.
        -     * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for contextId to set. - * @return This builder for chaining. - */ - public Builder setContextIdBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - contextId_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private com.google.cloud.geminidataanalytics.v1beta.TaskStatus status_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder> - statusBuilder_; - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - public boolean hasStatus() { - return ((bitField0_ & 0x00000004) != 0); - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus() { - if (statusBuilder_ == null) { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } else { - return statusBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatus(com.google.cloud.geminidataanalytics.v1beta.TaskStatus value) { - if (statusBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - status_ = value; - } else { - statusBuilder_.setMessage(value); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder setStatus( - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder builderForValue) { - if (statusBuilder_ == null) { - status_ = builderForValue.build(); - } else { - statusBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000004; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder mergeStatus(com.google.cloud.geminidataanalytics.v1beta.TaskStatus value) { - if (statusBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) - && status_ != null - && status_ - != com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance()) { - getStatusBuilder().mergeFrom(value); - } else { - status_ = value; - } - } else { - statusBuilder_.mergeFrom(value); - } - if (status_ != null) { - bitField0_ |= 0x00000004; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public Builder clearStatus() { - bitField0_ = (bitField0_ & ~0x00000004); - status_ = null; - if (statusBuilder_ != null) { - statusBuilder_.dispose(); - statusBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder getStatusBuilder() { - bitField0_ |= 0x00000004; - onChanged(); - return internalGetStatusFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - public com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder() { - if (statusBuilder_ != null) { - return statusBuilder_.getMessageOrBuilder(); - } else { - return status_ == null - ? com.google.cloud.geminidataanalytics.v1beta.TaskStatus.getDefaultInstance() - : status_; - } - } - - /** - * - * - *
        -     * Optional. The new status of the task.
        -     * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder> - internalGetStatusFieldBuilder() { - if (statusBuilder_ == null) { - statusBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.cloud.geminidataanalytics.v1beta.TaskStatus, - com.google.cloud.geminidataanalytics.v1beta.TaskStatus.Builder, - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder>( - getStatus(), getParentForChildren(), isClean()); - status_ = null; - } - return statusBuilder_; - } - - private boolean final_; - - /** - * - * - *
        -     * Optional. Whether this is the last status update expected for this task.
        -     * 
        - * - * bool final = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The final. - */ - @java.lang.Override - public boolean getFinal() { - return final_; - } - - /** - * - * - *
        -     * Optional. Whether this is the last status update expected for this task.
        -     * 
        - * - * bool final = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The final to set. - * @return This builder for chaining. - */ - public Builder setFinal(boolean value) { - - final_ = value; - bitField0_ |= 0x00000008; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Whether this is the last status update expected for this task.
        -     * 
        - * - * bool final = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return This builder for chaining. - */ - public Builder clearFinal() { - bitField0_ = (bitField0_ & ~0x00000008); - final_ = false; - onChanged(); - return this; - } - - private com.google.protobuf.Struct metadata_; - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - metadataBuilder_; - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - public boolean hasMetadata() { - return ((bitField0_ & 0x00000010) != 0); - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - public com.google.protobuf.Struct getMetadata() { - if (metadataBuilder_ == null) { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } else { - return metadataBuilder_.getMessage(); - } - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - metadata_ = value; - } else { - metadataBuilder_.setMessage(value); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder setMetadata(com.google.protobuf.Struct.Builder builderForValue) { - if (metadataBuilder_ == null) { - metadata_ = builderForValue.build(); - } else { - metadataBuilder_.setMessage(builderForValue.build()); - } - bitField0_ |= 0x00000010; - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder mergeMetadata(com.google.protobuf.Struct value) { - if (metadataBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) - && metadata_ != null - && metadata_ != com.google.protobuf.Struct.getDefaultInstance()) { - getMetadataBuilder().mergeFrom(value); - } else { - metadata_ = value; - } - } else { - metadataBuilder_.mergeFrom(value); - } - if (metadata_ != null) { - bitField0_ |= 0x00000010; - onChanged(); - } - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public Builder clearMetadata() { - bitField0_ = (bitField0_ & ~0x00000010); - metadata_ = null; - if (metadataBuilder_ != null) { - metadataBuilder_.dispose(); - metadataBuilder_ = null; - } - onChanged(); - return this; - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.Struct.Builder getMetadataBuilder() { - bitField0_ |= 0x00000010; - onChanged(); - return internalGetMetadataFieldBuilder().getBuilder(); - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - public com.google.protobuf.StructOrBuilder getMetadataOrBuilder() { - if (metadataBuilder_ != null) { - return metadataBuilder_.getMessageOrBuilder(); - } else { - return metadata_ == null ? com.google.protobuf.Struct.getDefaultInstance() : metadata_; - } - } - - /** - * - * - *
        -     * Optional. Optional metadata to associate with the task update.
        -     * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - private com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder> - internalGetMetadataFieldBuilder() { - if (metadataBuilder_ == null) { - metadataBuilder_ = - new com.google.protobuf.SingleFieldBuilder< - com.google.protobuf.Struct, - com.google.protobuf.Struct.Builder, - com.google.protobuf.StructOrBuilder>( - getMetadata(), getParentForChildren(), isClean()); - metadata_ = null; - } - return metadataBuilder_; - } - - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) - } - - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) - private static final com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent(); - } - - public static com.google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public TaskStatusUpdateEvent parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.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.geminidataanalytics.v1beta.TaskStatusUpdateEvent - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEventOrBuilder.java b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEventOrBuilder.java deleted file mode 100644 index f71a140598dc..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/TaskStatusUpdateEventOrBuilder.java +++ /dev/null @@ -1,173 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto -// Protobuf Java Version: 4.33.6 - -package com.google.cloud.geminidataanalytics.v1beta; - -@com.google.protobuf.Generated -public interface TaskStatusUpdateEventOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.TaskStatusUpdateEvent) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
        -   * Optional. The id of the task that is changed.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The taskId. - */ - java.lang.String getTaskId(); - - /** - * - * - *
        -   * Optional. The id of the task that is changed.
        -   * 
        - * - * string task_id = 1 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for taskId. - */ - com.google.protobuf.ByteString getTaskIdBytes(); - - /** - * - * - *
        -   * Optional. The id of the context that the task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The contextId. - */ - java.lang.String getContextId(); - - /** - * - * - *
        -   * Optional. The id of the context that the task belongs to.
        -   * 
        - * - * string context_id = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for contextId. - */ - com.google.protobuf.ByteString getContextIdBytes(); - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the status field is set. - */ - boolean hasStatus(); - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The status. - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatus getStatus(); - - /** - * - * - *
        -   * Optional. The new status of the task.
        -   * 
        - * - * - * .google.cloud.geminidataanalytics.v1beta.TaskStatus status = 3 [(.google.api.field_behavior) = OPTIONAL]; - * - */ - com.google.cloud.geminidataanalytics.v1beta.TaskStatusOrBuilder getStatusOrBuilder(); - - /** - * - * - *
        -   * Optional. Whether this is the last status update expected for this task.
        -   * 
        - * - * bool final = 4 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The final. - */ - boolean getFinal(); - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return Whether the metadata field is set. - */ - boolean hasMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The metadata. - */ - com.google.protobuf.Struct getMetadata(); - - /** - * - * - *
        -   * Optional. Optional metadata to associate with the task update.
        -   * 
        - * - * .google.protobuf.Struct metadata = 5 [(.google.api.field_behavior) = OPTIONAL]; - */ - com.google.protobuf.StructOrBuilder getMetadataOrBuilder(); -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto deleted file mode 100644 index a5357895642e..000000000000 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +++ /dev/null @@ -1,705 +0,0 @@ -// Copyright 2026 Google LLC -// -// Licensed under the Apache License, Version 2.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.geminidataanalytics.v1beta; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/protobuf/struct.proto"; -import "google/protobuf/timestamp.proto"; - -option csharp_namespace = "Google.Cloud.GeminiDataAnalytics.V1Beta"; -option go_package = "cloud.google.com/go/geminidataanalytics/apiv1beta/geminidataanalyticspb;geminidataanalyticspb"; -option java_multiple_files = true; -option java_outer_classname = "DataA2AServiceProto"; -option java_package = "com.google.cloud.geminidataanalytics.v1beta"; -option php_namespace = "Google\\Cloud\\GeminiDataAnalytics\\V1beta"; -option ruby_package = "Google::Cloud::GeminiDataAnalytics::V1beta"; - -// DataA2AService defines the Agent-to-Agent (A2A) protocol service for Gemini -// Data Analytics. -service DataA2AService { - option (google.api.default_host) = "geminidataanalytics.googleapis.com"; - option (google.api.oauth_scopes) = - "https://www.googleapis.com/auth/cloud-platform"; - - // Send a message to the agent. This is a blocking call that will return the - // task once it is completed. - rpc SendMessage(SendMessageRequest) returns (SendMessageResponse) { - option (google.api.http) = { - post: "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/message:send" - body: "*" - additional_bindings { - post: "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/message:send" - body: "*" - } - }; - option (google.api.method_signature) = "tenant,message"; - } - - // SendStreamingMessage is a streaming call that will return a stream of - // task update events until the Task is in an interrupted or terminal state. - rpc SendStreamingMessage(SendMessageRequest) returns (stream StreamResponse) { - option (google.api.http) = { - post: "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/message:stream" - body: "*" - additional_bindings { - post: "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/message:stream" - body: "*" - } - }; - option (google.api.method_signature) = "tenant,message"; - } - - // GetAgentCard returns the agent card for the agent. - rpc GetAgentCard(GetAgentCardRequest) returns (AgentCard) { - option (google.api.http) = { - get: "/v1beta/a2a/{tenant=projects/*/locations/*/agents/*}/v1/card" - additional_bindings { - get: "/v1beta/a2a/{tenant=projects/*/locations/*/dataAgents/*}/v1/card" - } - }; - option (google.api.method_signature) = "tenant"; - } -} - -// The set of states a Task can be in. -enum TaskState { - // Default unspecified task state. - TASK_STATE_UNSPECIFIED = 0; - - // Represents the status that acknowledges a task is created. - TASK_STATE_SUBMITTED = 1; - - // Represents the status that a task is currently in progress. - TASK_STATE_WORKING = 2; - - // Represents the status that a task is completed. This is a terminal state. - TASK_STATE_COMPLETED = 3; - - // Represents the status that a task has failed. This is a terminal state. - TASK_STATE_FAILED = 4; - - // Represents the status that a task was cancelled before it finished. - // This is a terminal state. - TASK_STATE_CANCELLED = 5; - - // Represents the status that the task requires information to complete. - // This is an interrupted state. - TASK_STATE_INPUT_REQUIRED = 6; - - // Represents the status that a task has been rejected by the agent. - // This is a terminal state. - TASK_STATE_REJECTED = 7; - - // Represents the state that some authentication is needed from the upstream - // client. - TASK_STATE_AUTH_REQUIRED = 8; -} - -// Role indicates the sender of a message. -enum Role { - // Default unspecified role. - ROLE_UNSPECIFIED = 0; - - // USER role refers to communication from the client to the server. - ROLE_USER = 1; - - // AGENT role refers to communication from the server to the client. - ROLE_AGENT = 2; -} - -// Configuration of a send message request. -message SendMessageConfiguration { - // Optional. The output modes that the agent is expected to respond with. - repeated string accepted_output_modes = 1 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A configuration of a webhook that can be used to receive updates. - PushNotificationConfig push_notification = 2 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The maximum number of messages to include in the history. If 0, - // the history will be unlimited. - int32 history_length = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If true, the message will be blocking until the task is - // completed. If false, the task will be returned immediately. - bool blocking = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// A2ATask is the core unit of action for A2A. It has a current status -// and when results are created for the task they are stored in the -// artifact. If there are multiple turns for a task, these are stored in -// history. -message A2ATask { - // Optional. Unique identifier (e.g. UUID) for the task, generated by the - // server for a new task. - string id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Unique identifier (e.g. UUID) for the contextual collection of - // interactions (tasks and messages). Created by the A2A server. - string context_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The current status of a Task, including state and a message. - TaskStatus status = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A set of output artifacts for a Task. - repeated A2AArtifact artifacts = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The history of interactions from a task. - repeated A2AMessage history = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A key/value object to store custom metadata about a task. - google.protobuf.Struct metadata = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// A container for the status of a task. -message TaskStatus { - // Output only. The current state of this task. - TaskState state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. A message associated with the status. - A2AMessage update = 2 - [json_name = "message", (google.api.field_behavior) = OPTIONAL]; - - // Output only. Timestamp when the status was recorded. - google.protobuf.Timestamp timestamp = 3 - [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// Part represents a container for a section of communication content. -// Parts can be purely textual, some sort of file (image, video, etc) or -// a structured data blob (i.e. JSON). -message Part { - // The content payload of the part. - oneof part { - // Plain text content. - string text = 1; - - // File content payload. - FilePart file = 2; - - // Structured data content payload. - DataPart data = 3; - } - - // Optional. Metadata associated with the part. - google.protobuf.Struct metadata = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// FilePart represents the different ways files can be provided. -message FilePart { - // The file representation payload. - oneof file { - // The URI pointing to the file. - string file_with_uri = 1; - - // The raw bytes of the file. - bytes file_with_bytes = 2; - } - - // Optional. The MIME type of the file. - string mime_type = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The name of the file. - string name = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// DataPart represents a structured blob. This is most commonly a JSON payload. -message DataPart { - // Optional. The structured data payload. - google.protobuf.Struct data = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// A2AMessage is one unit of communication between client and server. -message A2AMessage { - // Optional. The unique identifier (e.g. UUID) of the message. - string message_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The context id of the message. - string context_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The task id of the message. - string task_id = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A role for the message. - Role role = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Content is the container of the message content. - repeated Part content = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Any optional metadata to provide along with the message. - google.protobuf.Struct metadata = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URIs of extensions that are present or contributed to this - // Message. - repeated string extensions = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// A2AArtifact is the container for task completed results. -message A2AArtifact { - // Optional. Unique identifier (e.g. UUID) for the artifact. - string artifact_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A human readable name for the artifact. - string name = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A human readable description of the artifact, optional. - string description = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The content of the artifact. - repeated Part parts = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional metadata included with the artifact. - google.protobuf.Struct metadata = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URIs of extensions that are present or contributed to this - // Artifact. - repeated string extensions = 7 [(google.api.field_behavior) = OPTIONAL]; -} - -// TaskStatusUpdateEvent is a delta event on a task indicating that a task -// has changed. -message TaskStatusUpdateEvent { - // Optional. The id of the task that is changed. - string task_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The id of the context that the task belongs to. - string context_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The new status of the task. - TaskStatus status = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether this is the last status update expected for this task. - bool final = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional metadata to associate with the task update. - google.protobuf.Struct metadata = 5 [(google.api.field_behavior) = OPTIONAL]; -} - -// TaskArtifactUpdateEvent represents a task delta where an artifact has -// been generated. -message TaskArtifactUpdateEvent { - // Optional. The id of the task for this artifact. - string task_id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The id of the context that this task belongs to. - string context_id = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The artifact itself. - A2AArtifact artifact = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether this should be appended to a prior one produced. - bool append = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether this represents the last part of an artifact. - bool last_chunk = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional metadata associated with the artifact update. - google.protobuf.Struct metadata = 6 [(google.api.field_behavior) = OPTIONAL]; -} - -// Configuration for setting up push notifications for task updates. -message PushNotificationConfig { - // Optional. A unique identifier (e.g. UUID) for this push notification. - string id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Url to send the notification to. - string url = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Token unique for this task/session. - string token = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Information about the authentication to send with the - // notification. - AuthenticationInfo authentication = 4 - [(google.api.field_behavior) = OPTIONAL]; -} - -// Defines authentication details, used for push notifications. -message AuthenticationInfo { - // Optional. Supported authentication schemes - e.g. Basic, Bearer, etc. - repeated string schemes = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional credentials. - string credentials = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Defines additional transport information for the agent. -message AgentInterface { - // Optional. The url this interface is found at. - string url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The transport supported at this url. - string transport = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Tenant to be set in the request when calling the agent. - string tenant = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// AgentCard conveys key information about an agent. -message AgentCard { - // Optional. The version of the A2A protocol this agent supports. - string protocol_version = 16 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A human readable name for the agent. - string name = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A description of the agent's domain of action/solution space. - string description = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A URL to the address the agent is hosted at. - string url = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The transport of the preferred endpoint. If empty, defaults to - // JSONRPC. - string preferred_transport = 14 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Announcement of additional supported transports. - repeated AgentInterface additional_interfaces = 15 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The service provider of the agent. - AgentProvider provider = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The version of the agent. - string version = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A url to provide additional documentation about the agent. - string documentation_url = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A2A Capability set supported by the agent. - AgentCapabilities capabilities = 7 [(google.api.field_behavior) = OPTIONAL]; - - // The security scheme details used for authenticating with this agent. - map security_schemes = 8; - - // Security requirements for contacting the agent. - repeated Security security = 9; - - // Optional. The set of interaction modes that the agent supports across all - // skills. - repeated string default_input_modes = 10 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The mime types supported as outputs from this agent. - repeated string default_output_modes = 11 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Skills represent a unit of ability an agent can perform. - repeated AgentSkill skills = 12 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether the agent supports providing an extended agent card when - // the user is authenticated. - bool supports_authenticated_extended_card = 13 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. JSON Web Signatures computed for this AgentCard. - repeated AgentCardSignature signatures = 17 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. An optional URL to an icon for the agent. - string icon_url = 18 [(google.api.field_behavior) = OPTIONAL]; -} - -// Represents information about the service provider of an agent. -message AgentProvider { - // Optional. The provider's reference url. - string url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The provider's organization name. - string organization = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Defines the A2A feature set supported by the agent. -message AgentCapabilities { - // Optional. If the agent will support streaming responses. - bool streaming = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. If the agent can send push notifications to the client's webhook. - bool push_notifications = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Extensions supported by this agent. - repeated AgentExtension extensions = 3 - [(google.api.field_behavior) = OPTIONAL]; -} - -// A declaration of an extension supported by an Agent. -message AgentExtension { - // Optional. The URI of the extension. - string uri = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A description of how this agent uses this extension. - string description = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Whether the client must follow specific requirements of the - // extension. - bool required = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional configuration for the extension. - google.protobuf.Struct params = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// AgentSkill represents a unit of action/solution that the agent can perform. -message AgentSkill { - // Optional. Unique identifier of the skill within this agent. - string id = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A human readable name for the skill. - string name = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A human readable description of the skill details and behaviors. - string description = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A set of tags for the skill to enhance - // categorization/utilization. - repeated string tags = 4 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A set of example queries that this skill is designed to address. - repeated string examples = 5 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Possible input modalities supported. - repeated string input_modes = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Possible output modalities produced. - repeated string output_modes = 7 [(google.api.field_behavior) = OPTIONAL]; - - // Security schemes necessary for the agent to leverage this skill. - repeated Security security = 8; -} - -// AgentCardSignature represents a JWS signature of an AgentCard. -message AgentCardSignature { - // Required. The protected JWS header for the signature. Base64url-encoded. - string protected = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The computed signature, base64url-encoded. - string signature = 2 [(google.api.field_behavior) = REQUIRED]; - - // Optional. The unprotected JWS header values. - google.protobuf.Struct header = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// StringList is a wrapper for a repeated list of strings. -message StringList { - // The list of strings. - repeated string list = 1; -} - -// Security requirements for contacting the agent. -message Security { - // Map of scheme names to lists of scopes or configurations. - map schemes = 1; -} - -// SecurityScheme defines a security scheme for contacting the agent. -message SecurityScheme { - // The security scheme definition. - oneof scheme { - // API key security scheme. - APIKeySecurityScheme api_key_security_scheme = 1; - - // HTTP authentication security scheme. - HTTPAuthSecurityScheme http_auth_security_scheme = 2; - - // OAuth2 security scheme. - OAuth2SecurityScheme oauth2_security_scheme = 3; - - // OpenID Connect security scheme. - OpenIdConnectSecurityScheme open_id_connect_security_scheme = 4; - - // Mutual TLS security scheme. - MutualTlsSecurityScheme mtls_security_scheme = 5; - } -} - -// APIKeySecurityScheme defines an API key security scheme. -message APIKeySecurityScheme { - // Optional. Description of this security scheme. - string description = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Location of the API key, valid values are "query", "header", or - // "cookie". - string location = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Name of the header, query or cookie parameter to be used. - string name = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// HTTPAuthSecurityScheme defines an HTTP authentication security scheme. -message HTTPAuthSecurityScheme { - // Optional. Description of this security scheme. - string description = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The name of the HTTP Authentication scheme to be used in the - // Authorization header. - string scheme = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. A hint to the client to identify how the bearer token is - // formatted. - string bearer_format = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// OAuth2SecurityScheme defines an OAuth2 security scheme. -message OAuth2SecurityScheme { - // Optional. Description of this security scheme. - string description = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. An object containing configuration information for the flow types - // supported. - OAuthFlows flows = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. URL to the oauth2 authorization server metadata. - string oauth2_metadata_url = 3 [(google.api.field_behavior) = OPTIONAL]; -} - -// OpenIdConnectSecurityScheme defines an OpenID Connect security scheme. -message OpenIdConnectSecurityScheme { - // Optional. Description of this security scheme. - string description = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Well-known URL to discover the OpenID Connect provider metadata. - string open_id_connect_url = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// MutualTlsSecurityScheme defines a Mutual TLS security scheme. -message MutualTlsSecurityScheme { - // Optional. Description of this security scheme. - string description = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// OAuthFlows contains configuration information for supported OAuth flows. -message OAuthFlows { - // The supported OAuth flow configuration. - oneof flow { - // Authorization code flow. - AuthorizationCodeOAuthFlow authorization_code = 1; - - // Client credentials flow. - ClientCredentialsOAuthFlow client_credentials = 2; - - // Implicit flow. - ImplicitOAuthFlow implicit = 3; - - // Resource owner password credentials flow. - PasswordOAuthFlow password = 4; - } -} - -// AuthorizationCodeOAuthFlow defines an authorization code OAuth flow. -message AuthorizationCodeOAuthFlow { - // Optional. The authorization URL to be used for this flow. - string authorization_url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The token URL to be used for this flow. - string token_url = 2 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URL to be used for obtaining refresh tokens. - string refresh_url = 3 [(google.api.field_behavior) = OPTIONAL]; - - // The available scopes for the OAuth2 security scheme. - map scopes = 4; -} - -// ClientCredentialsOAuthFlow defines a client credentials OAuth flow. -message ClientCredentialsOAuthFlow { - // Optional. The token URL to be used for this flow. - string token_url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URL to be used for obtaining refresh tokens. - string refresh_url = 2 [(google.api.field_behavior) = OPTIONAL]; - - // The available scopes for the OAuth2 security scheme. - map scopes = 3; -} - -// ImplicitOAuthFlow defines an implicit OAuth flow. -message ImplicitOAuthFlow { - // Optional. The authorization URL to be used for this flow. - string authorization_url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URL to be used for obtaining refresh tokens. - string refresh_url = 2 [(google.api.field_behavior) = OPTIONAL]; - - // The available scopes for the OAuth2 security scheme. - map scopes = 3; -} - -// PasswordOAuthFlow defines a password OAuth flow. -message PasswordOAuthFlow { - // Optional. The token URL to be used for this flow. - string token_url = 1 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. The URL to be used for obtaining refresh tokens. - string refresh_url = 2 [(google.api.field_behavior) = OPTIONAL]; - - // The available scopes for the OAuth2 security scheme. - map scopes = 3; -} - -// Request message for SendMessage and SendStreamingMessage. -message SendMessageRequest { - // Required. The message to send to the agent. - A2AMessage message = 1 [(google.api.field_behavior) = REQUIRED]; - - // Optional. Configuration for the send request. - SendMessageConfiguration configuration = 2 - [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional metadata for the request. - google.protobuf.Struct metadata = 3 [(google.api.field_behavior) = OPTIONAL]; - - // Optional. Optional tenant, provided as a path parameter. - string tenant = 4 [(google.api.field_behavior) = OPTIONAL]; -} - -// Request message for GetAgentCard. -message GetAgentCardRequest { - // Optional. Optional tenant, provided as a path parameter. - string tenant = 1 [(google.api.field_behavior) = OPTIONAL]; -} - -// Response message for SendMessage. -message SendMessageResponse { - // The response payload. - oneof payload { - // Completed task. - A2ATask task = 1; - - // Single message response. - A2AMessage msg = 2 [json_name = "message"]; - } -} - -// The stream response for a message. -message StreamResponse { - // The stream response payload. - oneof payload { - // Completed task event. - A2ATask task = 1; - - // Message event. - A2AMessage msg = 2 [json_name = "message"]; - - // Task status update event. - TaskStatusUpdateEvent status_update = 3; - - // Task artifact update event. - TaskArtifactUpdateEvent artifact_update = 4; - } -} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto index dcc9b84570cc..fd71f44ba2eb 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent.proto @@ -128,7 +128,10 @@ message DataAgent { // `bigquery_agent_analytics_table` is set. On a BigQuery agent, enabling // this without a table has no effect: no table is created for the agent // and no rows are written. On an agent whose datasource is not BigQuery, - // `CreateDataAgent` rejects either field with `INVALID_ARGUMENT`. + // `CreateDataAgent` and `UpdateDataAgent` reject setting this field to + // `true` or setting `bigquery_agent_analytics_table` with + // `INVALID_ARGUMENT`. See `bigquery_agent_analytics_table` for when this + // is checked. // // This setting is independent of the project-level BigQuery Agent Analytics // setting configured through `SetAgentOpsObservability`. An agent does not @@ -141,17 +144,26 @@ message DataAgent { // `true`. The Preview enrollment described on that field applies here too. // // The trace table is validated when it is set on `CreateDataAgent`, or when - // it is included in the `update_mask` of an `UpdateDataAgent` call. The + // an `UpdateDataAgent` call writes a table to it. An `UpdateDataAgent` call + // writes a field if the field is in `update_mask` or, when `update_mask` is + // omitted, if the field is present in the request, even if its value is + // unchanged. An update that only clears this field is not validated. The // following are rejected with `INVALID_ARGUMENT`: // // * The table must belong to the same project as the agent. // * The agent's datasource must be BigQuery. BigQuery Agent Analytics is not // supported for Looker, Looker Studio or AlloyDB agents. // - // These are validated against the agent as sent in the request. An agent - // that carries no datasource is not validated, and an agent switched to a - // non-BigQuery datasource is not re-validated; in the latter case no trace - // rows are written. + // On `CreateDataAgent`, the datasource is validated against the agent in + // the request. On `UpdateDataAgent`, it is validated against the stored + // agent after applying the update whenever the call writes a table to this + // field or writes `true` to `bigquery_agent_analytics_enabled`. For example, + // an `UpdateDataAgent` call without `update_mask` that carries an unchanged + // `bigquery_agent_analytics_enabled = true` is rejected on an agent whose + // datasource is not BigQuery. An agent that carries no datasource is not + // validated, and an agent switched to a non-BigQuery datasource by an update + // that does neither is not re-validated; in the latter case no trace rows + // are written. // // The destination dataset must already exist and must grant write access to // the project's Gemini Data Analytics service agent, whose address is diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent_service.proto index 7a56c8bdd45c..b2c8f5227df9 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_agent_service.proto @@ -158,8 +158,7 @@ service DataAgentService { } // Enables/Disables required GCP services and configures AgentOps - // observability settings calling the Admin Settings executable node to - // update the AgentOps Observability feature. + // observability settings. rpc SetAgentOpsObservability(SetAgentOpsObservabilityRequest) returns (google.longrunning.Operation) { option (google.api.http) = { diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto index 6b066e949ec4..2967f5a3c7c8 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/data_chat_service.proto @@ -46,7 +46,7 @@ service DataChatService { "https://www.googleapis.com/auth/cloud-platform"; // Answers a data question by generating a stream of - // [Message][google.cloud.geminidataanalytics.v1.Message] objects. + // [Message][google.cloud.geminidataanalytics.v1beta.Message] objects. rpc Chat(ChatRequest) returns (stream Message) { option (google.api.http) = { post: "/v1beta/{parent=projects/*/locations/*}:chat" @@ -335,8 +335,8 @@ message StorageMessage { message ChatRequest { // Mode of thinking for the agent. enum ThinkingMode { - // Unspecified thinking mode, agent will use THINKING mode by default except - // for BigQuery user defaulting to FAST mode by default. + // The default value. For BigQuery and Looker data sources, the agent uses + // FAST. For all other data sources, the agent uses THINKING. THINKING_MODE_UNSPECIFIED = 0; // Fast mode, answers quickly. diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto index 0bc59cd07e15..078e3df71768 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto +++ b/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/proto/google/cloud/geminidataanalytics/v1beta/datasource.proto @@ -89,6 +89,19 @@ message BigQueryTableReferences { repeated BigQueryPropertyGraphReference property_graph_references = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Search over BigQuery resources to discover most relevant tables + // to the query. + // + // When set, at least one of `include_project_ids` or + // `include_dataset_references` must be populated with non-blank identifiers. + // Matches from the two fields are unioned (OR-ed). + // + // Note: `search_scope` is only supported for standalone conversations + // (`ChatRequest.inline_context` or + // `ClientManagedResourceContext.inline_context`) and is not supported in + // [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent]. + SearchScope search_scope = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Parameters for retrieving data from Agent Context. AgentContextReference agent_context_reference = 4 [(google.api.field_behavior) = OPTIONAL]; @@ -109,6 +122,35 @@ message BigQueryTableReference { Schema schema = 6 [(google.api.field_behavior) = OPTIONAL]; } +// Message representing a reference to a single BigQuery dataset. +message BigQueryDatasetReference { + // Required. The project ID that the dataset belongs to. + string project_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The dataset ID. + string dataset_id = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Message representing filters to apply to search over BigQuery tables. +// +// At least one of `include_project_ids` or `include_dataset_references` must be +// populated with non-blank identifiers. Tables matching either field are +// included, so the two fields are unioned (OR-ed) rather than intersected. +// +// Note: `SearchScope` is only supported for standalone conversations +// (`ChatRequest.inline_context` or +// `ClientManagedResourceContext.inline_context`) and is not supported in +// [DataAgent][google.cloud.geminidataanalytics.v1beta.DataAgent]. +message SearchScope { + // Optional. The BigQuery project ids to search over. + repeated string include_project_ids = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The BigQuery dataset references to search over. + repeated BigQueryDatasetReference include_dataset_references = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + // Message representing references to Looker Studio datasources. message StudioDatasourceReferences { // Optional. The references to the studio datasources. @@ -314,6 +356,9 @@ message SpannerDatabaseReference { // Tag to be attached to all queries to Spanner. Allows to identify and // monitor queries sent to Spanner by the GDA service. string request_tag = 9; + + // Optional. The graph IDs to query. + repeated string graph_ids = 10 [(google.api.field_behavior) = OPTIONAL]; } // Message representing reference to a CloudSQL database and agent context. diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/AsyncSendMessage.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/AsyncSendMessage.java deleted file mode 100644 index 89c225668f62..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/AsyncSendMessage.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataA2AService_SendMessage_async] -import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.A2AMessage; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse; -import com.google.protobuf.Struct; - -public class AsyncSendMessage { - - public static void main(String[] args) throws Exception { - asyncSendMessage(); - } - - public static void asyncSendMessage() 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) { - SendMessageRequest request = - SendMessageRequest.newBuilder() - .setMessage(A2AMessage.newBuilder().build()) - .setConfiguration(SendMessageConfiguration.newBuilder().build()) - .setMetadata(Struct.newBuilder().build()) - .setTenant("tenant-877336406") - .build(); - ApiFuture future = - dataA2AServiceClient.sendMessageCallable().futureCall(request); - // Do something. - SendMessageResponse response = future.get(); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataA2AService_SendMessage_async] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/SyncSendMessage.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/SyncSendMessage.java deleted file mode 100644 index 9d706cc54d67..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendmessage/SyncSendMessage.java +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataA2AService_SendMessage_sync] -import com.google.cloud.geminidataanalytics.v1beta.A2AMessage; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageResponse; -import com.google.protobuf.Struct; - -public class SyncSendMessage { - - public static void main(String[] args) throws Exception { - syncSendMessage(); - } - - public static void syncSendMessage() 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) { - SendMessageRequest request = - SendMessageRequest.newBuilder() - .setMessage(A2AMessage.newBuilder().build()) - .setConfiguration(SendMessageConfiguration.newBuilder().build()) - .setMetadata(Struct.newBuilder().build()) - .setTenant("tenant-877336406") - .build(); - SendMessageResponse response = dataA2AServiceClient.sendMessage(request); - } - } -} -// [END geminidataanalytics_v1beta_generated_DataA2AService_SendMessage_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendstreamingmessage/AsyncSendStreamingMessage.java b/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendstreamingmessage/AsyncSendStreamingMessage.java deleted file mode 100644 index c6a0480796f0..000000000000 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/sendstreamingmessage/AsyncSendStreamingMessage.java +++ /dev/null @@ -1,56 +0,0 @@ -/* - * Copyright 2026 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.geminidataanalytics.v1beta.samples; - -// [START geminidataanalytics_v1beta_generated_DataA2AService_SendStreamingMessage_async] -import com.google.api.gax.rpc.ServerStream; -import com.google.cloud.geminidataanalytics.v1beta.A2AMessage; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageConfiguration; -import com.google.cloud.geminidataanalytics.v1beta.SendMessageRequest; -import com.google.cloud.geminidataanalytics.v1beta.StreamResponse; -import com.google.protobuf.Struct; - -public class AsyncSendStreamingMessage { - - public static void main(String[] args) throws Exception { - asyncSendStreamingMessage(); - } - - public static void asyncSendStreamingMessage() 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) { - SendMessageRequest request = - SendMessageRequest.newBuilder() - .setMessage(A2AMessage.newBuilder().build()) - .setConfiguration(SendMessageConfiguration.newBuilder().build()) - .setMetadata(Struct.newBuilder().build()) - .setTenant("tenant-877336406") - .build(); - ServerStream stream = - dataA2AServiceClient.sendStreamingMessageCallable().call(request); - for (StreamResponse response : stream) { - // Do something when a response is received. - } - } - } -} -// [END geminidataanalytics_v1beta_generated_DataA2AService_SendStreamingMessage_async] diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index da79d63d9c25..00d9cc28afec 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-backup - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-backup' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-backup:0.98.0' +implementation 'com.google.cloud:google-cloud-gke-backup:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-backup" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-backup/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-backup/0.99.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/README.md b/java-gke-connect-gateway/README.md index fa941e7b475b..7bdcb6ed6abc 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-connect-gateway - 0.100.0 + 0.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gke-connect-gateway' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.100.0' +implementation 'com.google.cloud:google-cloud-gke-connect-gateway:0.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-connect-gateway" % "0.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-connect-gateway/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-connect-gateway/0.101.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/README.md b/java-gke-multi-cloud/README.md index 262179438af2..daf5e35d4b71 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gke-multi-cloud - 0.98.0 + 0.99.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gke-multi-cloud' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.98.0' +implementation 'com.google.cloud:google-cloud-gke-multi-cloud:0.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gke-multi-cloud" % "0.99.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gke-multi-cloud/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gke-multi-cloud/0.99.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/README.md b/java-gkehub/README.md index e0cf70cc1687..1a8b90d5f6a0 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkehub - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gkehub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkehub:1.99.0' +implementation 'com.google.cloud:google-cloud-gkehub:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkehub" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkehub/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkehub/1.100.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-gkerecommender/README.md b/java-gkerecommender/README.md index d97c4aee2d34..796e590890ab 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gkerecommender - 0.19.0 + 0.20.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-gkerecommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gkerecommender:0.19.0' +implementation 'com.google.cloud:google-cloud-gkerecommender:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gkerecommender" % "0.20.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview [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-gkerecommender.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gkerecommender/0.20.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/README.md b/java-grafeas/README.md index 05d580036259..39e94bbe87d5 100644 --- a/java-grafeas/README.md +++ b/java-grafeas/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: io.grafeas grafeas - 2.100.0 + 2.101.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'io.grafeas:grafeas:2.100.0' +implementation 'io.grafeas:grafeas:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "io.grafeas" % "grafeas" % "2.100.0" +libraryDependencies += "io.grafeas" % "grafeas" % "2.101.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/grafeas/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/io.grafeas/grafeas/2.101.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/README.md b/java-gsuite-addons/README.md index fa6d1edc7c73..785c3775ec0b 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-gsuite-addons - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-gsuite-addons' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-gsuite-addons:2.99.0' +implementation 'com.google.cloud:google-cloud-gsuite-addons:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-gsuite-addons" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-gsuite-addons/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-gsuite-addons/2.100.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-health/README.md b/java-health/README.md index 7b633eb4fdc5..fbda433fe3c7 100644 --- a/java-health/README.md +++ b/java-health/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-health - 0.8.0 + 0.9.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-health' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-health:0.8.0' +implementation 'com.google.cloud:google-cloud-health:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.8.0" +libraryDependencies += "com.google.cloud" % "google-cloud-health" % "0.9.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview [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-health.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-health/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-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index d04f31d4c311..c247640ca3ac 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-hypercomputecluster - 0.19.0 + 0.20.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-hypercomputecluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.19.0' +implementation 'com.google.cloud:google-cloud-hypercomputecluster:0.20.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.19.0" +libraryDependencies += "com.google.cloud" % "google-cloud-hypercomputecluster" % "0.20.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview [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-hypercomputecluster.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.19.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-hypercomputecluster/0.20.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/README.md b/java-iam-admin/README.md index 59c0a7940925..a0acb6cdf3c2 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-admin - 3.94.0 + 3.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-admin' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:3.94.0' +implementation 'com.google.cloud:google-iam-admin:3.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.94.0" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "3.95.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-iam-admin/latest/overview [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.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-admin/3.95.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-policy/README.md b/java-iam-policy/README.md index 6d85468e884f..8cabc74fa8f0 100644 --- a/java-iam-policy/README.md +++ b/java-iam-policy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-iam-policy - 1.96.0 + 1.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-iam-policy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-policy:1.96.0' +implementation 'com.google.cloud:google-iam-policy:1.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.96.0" +libraryDependencies += "com.google.cloud" % "google-iam-policy" % "1.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-iam-v1/latest/history [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-iam-policy/1.97.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/README.md b/java-iamcredentials/README.md index 06af0fc655da..5412a469f052 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iamcredentials - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iamcredentials' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iamcredentials:2.99.0' +implementation 'com.google.cloud:google-cloud-iamcredentials:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iamcredentials" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iamcredentials/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iamcredentials/2.100.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/README.md b/java-iap/README.md index c5a1d5d17b82..6a438e52d617 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iap - 0.55.0 + 0.56.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iap' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iap:0.55.0' +implementation 'com.google.cloud:google-cloud-iap:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iap" % "0.56.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview [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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iap/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-ids/README.md b/java-ids/README.md index 60e5a028016c..be0cdc67c8c0 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-ids - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-ids' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-ids:1.98.0' +implementation 'com.google.cloud:google-cloud-ids:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-ids" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-ids/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-ids/1.99.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/README.md b/java-infra-manager/README.md index 2f9bd68d28b0..861e4ec03668 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-infra-manager - 0.76.0 + 0.77.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-infra-manager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-infra-manager:0.76.0' +implementation 'com.google.cloud:google-cloud-infra-manager:0.77.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.76.0" +libraryDependencies += "com.google.cloud" % "google-cloud-infra-manager" % "0.77.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-infra-manager/latest/overview [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.76.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-infra-manager/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-iot/README.md b/java-iot/README.md index d23e2a955d82..171d08fc074d 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-iot - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-iot' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-iot:2.99.0' +implementation 'com.google.cloud:google-cloud-iot:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-iot" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-iot/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-iot/2.100.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/README.md b/java-kms/README.md index 51ab121bc545..bb86af7962e0 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kms - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-kms' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kms:2.102.0' +implementation 'com.google.cloud:google-cloud-kms:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kms" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kms/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kms/2.103.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/README.md b/java-kmsinventory/README.md index a9296a502345..88e262f878ff 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-kmsinventory - 0.88.0 + 0.89.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-kmsinventory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-kmsinventory:0.88.0' +implementation 'com.google.cloud:google-cloud-kmsinventory:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.88.0" +libraryDependencies += "com.google.cloud" % "google-cloud-kmsinventory" % "0.89.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-kmsinventory/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-kmsinventory/0.89.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/README.md b/java-language/README.md index a9a3d440de0e..c20083954428 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-language - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-language' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-language:2.100.0' +implementation 'com.google.cloud:google-cloud-language:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-language" % "2.101.0" ``` ## Authentication @@ -214,7 +214,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-language/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-language/2.101.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-licensemanager/README.md b/java-licensemanager/README.md index 93dcb553aafd..962084a75a8d 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-licensemanager - 0.32.0 + 0.33.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-licensemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-licensemanager:0.32.0' +implementation 'com.google.cloud:google-cloud-licensemanager:0.33.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.32.0" +libraryDependencies += "com.google.cloud" % "google-cloud-licensemanager" % "0.33.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview [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-licensemanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.32.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-licensemanager/0.33.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/README.md b/java-life-sciences/README.md index f86279cfde37..fe3119fa55c5 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-life-sciences - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-life-sciences' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-life-sciences:0.101.0' +implementation 'com.google.cloud:google-cloud-life-sciences:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-life-sciences" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-life-sciences/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-life-sciences/0.102.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-locationfinder/README.md b/java-locationfinder/README.md index bdfb0ac5a228..5854d8785bae 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-locationfinder - 0.24.0 + 0.25.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-locationfinder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-locationfinder:0.24.0' +implementation 'com.google.cloud:google-cloud-locationfinder:0.25.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.24.0" +libraryDependencies += "com.google.cloud" % "google-cloud-locationfinder" % "0.25.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview [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-locationfinder.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/0.24.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-locationfinder/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-logging/README.md b/java-logging/README.md index a46c0a90c331..560003ed6839 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-logging - 3.40.0 + 3.41.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-logging' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-logging:3.40.0' +implementation 'com.google.cloud:google-cloud-logging:3.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-logging" % "3.41.0" ``` ## Authentication @@ -440,7 +440,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history [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-logging.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/3.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-logging/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-lustre/README.md b/java-lustre/README.md index 368aef56f56c..80ed6d05e806 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-lustre - 0.39.0 + 0.40.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-lustre' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-lustre:0.39.0' +implementation 'com.google.cloud:google-cloud-lustre:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-lustre" % "0.40.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview [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-lustre.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-lustre/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-maintenance/README.md b/java-maintenance/README.md index 30b229b9c3d2..8444fd33afca 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-maintenance - 0.33.0 + 0.34.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-maintenance' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-maintenance:0.33.0' +implementation 'com.google.cloud:google-cloud-maintenance:0.34.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.33.0" +libraryDependencies += "com.google.cloud" % "google-cloud-maintenance" % "0.34.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview [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-maintenance.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/0.33.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-maintenance/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-managed-identities/README.md b/java-managed-identities/README.md index 5c021d19a281..adfc6b3b1c11 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managed-identities - 1.97.0 + 1.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-managed-identities' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managed-identities:1.97.0' +implementation 'com.google.cloud:google-cloud-managed-identities:1.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managed-identities" % "1.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managed-identities/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managed-identities/1.98.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/README.md b/java-managedkafka/README.md index 6a7c41e5c72f..a3e0b1114396 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-managedkafka - 0.55.0 + 0.56.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-managedkafka' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-managedkafka:0.55.0' +implementation 'com.google.cloud:google-cloud-managedkafka:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-managedkafka" % "0.56.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview [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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-managedkafka/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-maps-addressvalidation/README.md b/java-maps-addressvalidation/README.md index 87acd68ae768..db7a1d717e09 100644 --- a/java-maps-addressvalidation/README.md +++ b/java-maps-addressvalidation/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-addressvalidation - 0.93.0 + 0.94.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-addressvalidation:0.93.0' +implementation 'com.google.maps:google-maps-addressvalidation:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.93.0" +libraryDependencies += "com.google.maps" % "google-maps-addressvalidation" % "0.94.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-addressvalidation/latest/overview [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.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-addressvalidation/0.94.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-area-insights/README.md b/java-maps-area-insights/README.md index 201a542aa734..1b3dd2acf5e0 100644 --- a/java-maps-area-insights/README.md +++ b/java-maps-area-insights/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-area-insights - 0.50.0 + 0.51.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-area-insights:0.50.0' +implementation 'com.google.maps:google-maps-area-insights:0.51.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.50.0" +libraryDependencies += "com.google.maps" % "google-maps-area-insights" % "0.51.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview [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-area-insights.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.50.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-area-insights/0.51.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-fleetengine-delivery/README.md b/java-maps-fleetengine-delivery/README.md index 20d7a05c0314..71a0d961f64c 100644 --- a/java-maps-fleetengine-delivery/README.md +++ b/java-maps-fleetengine-delivery/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine-delivery - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine-delivery:0.46.0' +implementation 'com.google.maps:google-maps-fleetengine-delivery:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.46.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine-delivery" % "0.47.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview [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-fleetengine-delivery.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine-delivery/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-maps-fleetengine/README.md b/java-maps-fleetengine/README.md index c6f9f7c99783..f51d70607010 100644 --- a/java-maps-fleetengine/README.md +++ b/java-maps-fleetengine/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-fleetengine - 0.46.0 + 0.47.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-fleetengine:0.46.0' +implementation 'com.google.maps:google-maps-fleetengine:0.47.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.46.0" +libraryDependencies += "com.google.maps" % "google-maps-fleetengine" % "0.47.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview [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-fleetengine.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/0.46.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-fleetengine/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-maps-geocode/README.md b/java-maps-geocode/README.md index 8ecc92ad9912..3657431eda91 100644 --- a/java-maps-geocode/README.md +++ b/java-maps-geocode/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-geocode - 0.11.0 + 0.12.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-geocode:0.11.0' +implementation 'com.google.maps:google-maps-geocode:0.12.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.11.0" +libraryDependencies += "com.google.maps" % "google-maps-geocode" % "0.12.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview [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-geocode.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.11.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-geocode/0.12.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-maps-isochrones/README.md b/java-maps-isochrones/README.md index 4dbdfc51af3a..30a651a194d1 100644 --- a/java-maps-isochrones/README.md +++ b/java-maps-isochrones/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-isochrones - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-isochrones:0.5.0' +implementation 'com.google.maps:google-maps-isochrones:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.5.0" +libraryDependencies += "com.google.maps" % "google-maps-isochrones" % "0.6.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-isochrones/latest/overview [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-isochrones.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-isochrones/0.6.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-mapmanagement/README.md b/java-maps-mapmanagement/README.md index 2b0a5da863c1..45eb86c0f92f 100644 --- a/java-maps-mapmanagement/README.md +++ b/java-maps-mapmanagement/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapmanagement - 0.8.0 + 0.9.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapmanagement:0.8.0' +implementation 'com.google.maps:google-maps-mapmanagement:0.9.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.8.0" +libraryDependencies += "com.google.maps" % "google-maps-mapmanagement" % "0.9.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview [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-mapmanagement.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/0.8.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapmanagement/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-maps-mapsplatformdatasets/README.md b/java-maps-mapsplatformdatasets/README.md index 32dd55439058..06df5afe0bb7 100644 --- a/java-maps-mapsplatformdatasets/README.md +++ b/java-maps-mapsplatformdatasets/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-mapsplatformdatasets - 0.88.0 + 0.89.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.88.0' +implementation 'com.google.maps:google-maps-mapsplatformdatasets:0.89.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.88.0" +libraryDependencies += "com.google.maps" % "google-maps-mapsplatformdatasets" % "0.89.0" ``` ## Authentication @@ -156,7 +156,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-mapsplatformdatasets/latest/overview [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.88.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-mapsplatformdatasets/0.89.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-navconnect/README.md b/java-maps-navconnect/README.md index 96228d45b84e..4d556770399e 100644 --- a/java-maps-navconnect/README.md +++ b/java-maps-navconnect/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-navconnect - 0.5.0 + 0.6.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-navconnect:0.5.0' +implementation 'com.google.maps:google-maps-navconnect:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.5.0" +libraryDependencies += "com.google.maps" % "google-maps-navconnect" % "0.6.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-navconnect/latest/overview [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-navconnect.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-navconnect/0.6.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/README.md b/java-maps-places/README.md index d6218559bb87..4d3635959b99 100644 --- a/java-maps-places/README.md +++ b/java-maps-places/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-places - 0.70.0 + 0.71.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-places:0.70.0' +implementation 'com.google.maps:google-maps-places:0.71.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-places" % "0.70.0" +libraryDependencies += "com.google.maps" % "google-maps-places" % "0.71.0" ``` ## Authentication @@ -161,7 +161,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-places/latest/overview [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.70.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-places/0.71.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/README.md b/java-maps-routeoptimization/README.md index cdd3bb53d066..91bad876a82a 100644 --- a/java-maps-routeoptimization/README.md +++ b/java-maps-routeoptimization/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routeoptimization - 0.57.0 + 0.58.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routeoptimization:0.57.0' +implementation 'com.google.maps:google-maps-routeoptimization:0.58.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.57.0" +libraryDependencies += "com.google.maps" % "google-maps-routeoptimization" % "0.58.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview [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.57.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routeoptimization/0.58.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/README.md b/java-maps-routing/README.md index e4fe25fc5800..6b26c4c65e9f 100644 --- a/java-maps-routing/README.md +++ b/java-maps-routing/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-routing - 1.84.0 + 1.85.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-routing:1.84.0' +implementation 'com.google.maps:google-maps-routing:1.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.84.0" +libraryDependencies += "com.google.maps" % "google-maps-routing" % "1.85.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-routing/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-routing/1.85.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/README.md b/java-maps-solar/README.md index fd7162431609..0a8acb0bea9b 100644 --- a/java-maps-solar/README.md +++ b/java-maps-solar/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.maps google-maps-solar - 0.58.0 + 0.59.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.maps:google-maps-solar:0.58.0' +implementation 'com.google.maps:google-maps-solar:0.59.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.58.0" +libraryDependencies += "com.google.maps" % "google-maps-solar" % "0.59.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview [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.58.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.maps/google-maps-solar/0.59.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-marketingplatformadminapi/README.md b/java-marketingplatformadminapi/README.md index dbea300e31ed..bf4a44c63225 100644 --- a/java-marketingplatformadminapi/README.md +++ b/java-marketingplatformadminapi/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.ads-marketingplatform admin - 0.48.0 + 0.49.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.ads-marketingplatform:admin:0.48.0' +implementation 'com.google.ads-marketingplatform:admin:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.48.0" +libraryDependencies += "com.google.ads-marketingplatform" % "admin" % "0.49.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/admin/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.ads-marketingplatform/admin.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.ads-marketingplatform/admin/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-mediatranslation/README.md b/java-mediatranslation/README.md index 1e6bc85655a5..2dddf816549d 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-mediatranslation - 0.105.0 + 0.106.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-mediatranslation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-mediatranslation:0.105.0' +implementation 'com.google.cloud:google-cloud-mediatranslation:0.106.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.105.0" +libraryDependencies += "com.google.cloud" % "google-cloud-mediatranslation" % "0.106.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-mediatranslation/latest/overview [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.105.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-mediatranslation/0.106.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/README.md b/java-meet/README.md index 39da521eb324..6dbf92c6219f 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-meet - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-meet' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-meet:0.66.0' +implementation 'com.google.cloud:google-cloud-meet:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-meet" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-meet/latest/overview [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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-meet/0.67.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/README.md b/java-memcache/README.md index a8d1b95ea385..3ec0a584b543 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-memcache - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-memcache' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-memcache:2.99.0' +implementation 'com.google.cloud:google-cloud-memcache:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-memcache" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memcache/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-memcache/2.100.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/README.md b/java-migrationcenter/README.md index aabc01d6c770..26807346cfee 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-migrationcenter - 0.81.0 + 0.82.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-migrationcenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-migrationcenter:0.81.0' +implementation 'com.google.cloud:google-cloud-migrationcenter:0.82.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.81.0" +libraryDependencies += "com.google.cloud" % "google-cloud-migrationcenter" % "0.82.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-migrationcenter/latest/overview [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.81.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-migrationcenter/0.82.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-modelarmor/README.md b/java-modelarmor/README.md index 034159bfbf8a..53e74d1af0ab 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-modelarmor - 0.40.0 + 0.41.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-modelarmor' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-modelarmor:0.40.0' +implementation 'com.google.cloud:google-cloud-modelarmor:0.41.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.40.0" +libraryDependencies += "com.google.cloud" % "google-cloud-modelarmor" % "0.41.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview [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-modelarmor.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.40.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-modelarmor/0.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-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json index fbd7f3baa184..ae024f23a022 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json +++ b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1/reflect-config.json @@ -719,6 +719,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.Dictionary", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.Dictionary$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.ExclusionRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.ExclusionRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.FilterConfig", "queryAllDeclaredConstructors": true, @@ -773,6 +809,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRuleSet", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRuleSet$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRuleSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.FilterRuleSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.FilterVersionAlias", "queryAllDeclaredConstructors": true, @@ -1025,6 +1115,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.MatchingScope", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.McpServerFloorSetting", "queryAllDeclaredConstructors": true, @@ -1241,6 +1340,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.Regex", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.Regex$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.RuleFilterType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.modelarmor.v1.SanitizationResult", "queryAllDeclaredConstructors": true, @@ -1745,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.modelarmor.v1.WordList", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.modelarmor.v1.WordList$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.protobuf.Any", "queryAllDeclaredConstructors": true, diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Dictionary.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Dictionary.java new file mode 100644 index 000000000000..0adfe19fcf13 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Dictionary.java @@ -0,0 +1,829 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * Message defining a custom dictionary of words or phrases for syntactic match.
        + *
        + * Dictionary words are case-insensitive and all characters other than letters
        + * and digits in the unicode [Basic Multilingual
        + * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
        + * will be replaced with whitespace when scanning for matches. For example, the
        + * dictionary phrase `Sam Johnson` will match all three phrases `sam johnson`,
        + * `Sam, Johnson`, and `Sam (Johnson)`. Additionally, the characters
        + * surrounding any match must be of a different type than the adjacent
        + * characters within the word, so letters must be next to non-letters and
        + * digits must be next to non-digits. For example, the dictionary word `jen`
        + * will match the first three letters of the text `jen123` but will return no
        + * matches for `jennifer`.
        + *
        + * Dictionary words containing a large number of characters that are not
        + * letters or digits may result in unexpected matches because such characters
        + * are treated as whitespace. For details about the size limits of dictionaries,
        + * see [Quotas and
        + * limits](https://docs.cloud.google.com/model-armor/quotas).
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.Dictionary} + */ +@com.google.protobuf.Generated +public final class Dictionary extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.Dictionary) + DictionaryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Dictionary"); + } + + // Use Dictionary.newBuilder() to construct. + private Dictionary(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Dictionary() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Dictionary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Dictionary.class, + com.google.cloud.modelarmor.v1.Dictionary.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 { + WORD_LIST(1), + 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 WORD_LIST; + 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 WORD_LIST_FIELD_NUMBER = 1; + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return Whether the wordList field is set. + */ + @java.lang.Override + public boolean hasWordList() { + return sourceCase_ == 1; + } + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return The wordList. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.WordList getWordList() { + if (sourceCase_ == 1) { + return (com.google.cloud.modelarmor.v1.WordList) source_; + } + return com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); + } + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.WordListOrBuilder getWordListOrBuilder() { + if (sourceCase_ == 1) { + return (com.google.cloud.modelarmor.v1.WordList) source_; + } + return com.google.cloud.modelarmor.v1.WordList.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 (sourceCase_ == 1) { + output.writeMessage(1, (com.google.cloud.modelarmor.v1.WordList) source_); + } + 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.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.modelarmor.v1.WordList) source_); + } + 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.modelarmor.v1.Dictionary)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.Dictionary other = + (com.google.cloud.modelarmor.v1.Dictionary) obj; + + if (!getSourceCase().equals(other.getSourceCase())) return false; + switch (sourceCase_) { + case 1: + if (!getWordList().equals(other.getWordList())) 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 (sourceCase_) { + case 1: + hash = (37 * hash) + WORD_LIST_FIELD_NUMBER; + hash = (53 * hash) + getWordList().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Dictionary 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.modelarmor.v1.Dictionary parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom( + 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.modelarmor.v1.Dictionary parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Dictionary parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.Dictionary prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Message defining a custom dictionary of words or phrases for syntactic match.
        +   *
        +   * Dictionary words are case-insensitive and all characters other than letters
        +   * and digits in the unicode [Basic Multilingual
        +   * Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
        +   * will be replaced with whitespace when scanning for matches. For example, the
        +   * dictionary phrase `Sam Johnson` will match all three phrases `sam johnson`,
        +   * `Sam, Johnson`, and `Sam (Johnson)`. Additionally, the characters
        +   * surrounding any match must be of a different type than the adjacent
        +   * characters within the word, so letters must be next to non-letters and
        +   * digits must be next to non-digits. For example, the dictionary word `jen`
        +   * will match the first three letters of the text `jen123` but will return no
        +   * matches for `jennifer`.
        +   *
        +   * Dictionary words containing a large number of characters that are not
        +   * letters or digits may result in unexpected matches because such characters
        +   * are treated as whitespace. For details about the size limits of dictionaries,
        +   * see [Quotas and
        +   * limits](https://docs.cloud.google.com/model-armor/quotas).
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.Dictionary} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.Dictionary) + com.google.cloud.modelarmor.v1.DictionaryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Dictionary_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Dictionary.class, + com.google.cloud.modelarmor.v1.Dictionary.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.Dictionary.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (wordListBuilder_ != null) { + wordListBuilder_.clear(); + } + sourceCase_ = 0; + source_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Dictionary getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Dictionary build() { + com.google.cloud.modelarmor.v1.Dictionary result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Dictionary buildPartial() { + com.google.cloud.modelarmor.v1.Dictionary result = + new com.google.cloud.modelarmor.v1.Dictionary(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.Dictionary result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.modelarmor.v1.Dictionary result) { + result.sourceCase_ = sourceCase_; + result.source_ = this.source_; + if (sourceCase_ == 1 && wordListBuilder_ != null) { + result.source_ = wordListBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.Dictionary) { + return mergeFrom((com.google.cloud.modelarmor.v1.Dictionary) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.Dictionary other) { + if (other == com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance()) return this; + switch (other.getSourceCase()) { + case WORD_LIST: + { + mergeWordList(other.getWordList()); + 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: + { + input.readMessage( + internalGetWordListFieldBuilder().getBuilder(), extensionRegistry); + sourceCase_ = 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 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.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.WordList, + com.google.cloud.modelarmor.v1.WordList.Builder, + com.google.cloud.modelarmor.v1.WordListOrBuilder> + wordListBuilder_; + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return Whether the wordList field is set. + */ + @java.lang.Override + public boolean hasWordList() { + return sourceCase_ == 1; + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return The wordList. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.WordList getWordList() { + if (wordListBuilder_ == null) { + if (sourceCase_ == 1) { + return (com.google.cloud.modelarmor.v1.WordList) source_; + } + return com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); + } else { + if (sourceCase_ == 1) { + return wordListBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + public Builder setWordList(com.google.cloud.modelarmor.v1.WordList value) { + if (wordListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + source_ = value; + onChanged(); + } else { + wordListBuilder_.setMessage(value); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + public Builder setWordList(com.google.cloud.modelarmor.v1.WordList.Builder builderForValue) { + if (wordListBuilder_ == null) { + source_ = builderForValue.build(); + onChanged(); + } else { + wordListBuilder_.setMessage(builderForValue.build()); + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + public Builder mergeWordList(com.google.cloud.modelarmor.v1.WordList value) { + if (wordListBuilder_ == null) { + if (sourceCase_ == 1 + && source_ != com.google.cloud.modelarmor.v1.WordList.getDefaultInstance()) { + source_ = + com.google.cloud.modelarmor.v1.WordList.newBuilder( + (com.google.cloud.modelarmor.v1.WordList) source_) + .mergeFrom(value) + .buildPartial(); + } else { + source_ = value; + } + onChanged(); + } else { + if (sourceCase_ == 1) { + wordListBuilder_.mergeFrom(value); + } else { + wordListBuilder_.setMessage(value); + } + } + sourceCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + public Builder clearWordList() { + if (wordListBuilder_ == null) { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + onChanged(); + } + } else { + if (sourceCase_ == 1) { + sourceCase_ = 0; + source_ = null; + } + wordListBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + public com.google.cloud.modelarmor.v1.WordList.Builder getWordListBuilder() { + return internalGetWordListFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.WordListOrBuilder getWordListOrBuilder() { + if ((sourceCase_ == 1) && (wordListBuilder_ != null)) { + return wordListBuilder_.getMessageOrBuilder(); + } else { + if (sourceCase_ == 1) { + return (com.google.cloud.modelarmor.v1.WordList) source_; + } + return com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Message defining a list of words or phrases.
        +     * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.WordList, + com.google.cloud.modelarmor.v1.WordList.Builder, + com.google.cloud.modelarmor.v1.WordListOrBuilder> + internalGetWordListFieldBuilder() { + if (wordListBuilder_ == null) { + if (!(sourceCase_ == 1)) { + source_ = com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); + } + wordListBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.WordList, + com.google.cloud.modelarmor.v1.WordList.Builder, + com.google.cloud.modelarmor.v1.WordListOrBuilder>( + (com.google.cloud.modelarmor.v1.WordList) source_, + getParentForChildren(), + isClean()); + source_ = null; + } + sourceCase_ = 1; + onChanged(); + return wordListBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.Dictionary) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.Dictionary) + private static final com.google.cloud.modelarmor.v1.Dictionary DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.Dictionary(); + } + + public static com.google.cloud.modelarmor.v1.Dictionary getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Dictionary parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.Dictionary getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/DictionaryOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/DictionaryOrBuilder.java new file mode 100644 index 000000000000..d54f77ef39b2 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/DictionaryOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface DictionaryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.Dictionary) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return Whether the wordList field is set. + */ + boolean hasWordList(); + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + * + * @return The wordList. + */ + com.google.cloud.modelarmor.v1.WordList getWordList(); + + /** + * + * + *
        +   * Message defining a list of words or phrases.
        +   * 
        + * + * .google.cloud.modelarmor.v1.WordList word_list = 1; + */ + com.google.cloud.modelarmor.v1.WordListOrBuilder getWordListOrBuilder(); + + com.google.cloud.modelarmor.v1.Dictionary.SourceCase getSourceCase(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRule.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRule.java new file mode 100644 index 000000000000..e9b53534c85c --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRule.java @@ -0,0 +1,1332 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * The rule that specifies conditions when filter detections are excluded from
        + * results.
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.ExclusionRule} + */ +@com.google.protobuf.Generated +public final class ExclusionRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.ExclusionRule) + ExclusionRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ExclusionRule"); + } + + // Use ExclusionRule.newBuilder() to construct. + private ExclusionRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExclusionRule() { + matchingScope_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_ExclusionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.ExclusionRule.class, + com.google.cloud.modelarmor.v1.ExclusionRule.Builder.class); + } + + private int bitField0_; + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DICTIONARY(1), + REGEX(2), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return DICTIONARY; + case 2: + return REGEX; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int DICTIONARY_FIELD_NUMBER = 1; + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return Whether the dictionary field is set. + */ + @java.lang.Override + public boolean hasDictionary() { + return typeCase_ == 1; + } + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return The dictionary. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Dictionary getDictionary() { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.Dictionary) type_; + } + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.DictionaryOrBuilder getDictionaryOrBuilder() { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.Dictionary) type_; + } + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + + public static final int REGEX_FIELD_NUMBER = 2; + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return Whether the regex field is set. + */ + @java.lang.Override + public boolean hasRegex() { + return typeCase_ == 2; + } + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return The regex. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Regex getRegex() { + if (typeCase_ == 2) { + return (com.google.cloud.modelarmor.v1.Regex) type_; + } + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.RegexOrBuilder getRegexOrBuilder() { + if (typeCase_ == 2) { + return (com.google.cloud.modelarmor.v1.Regex) type_; + } + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + + public static final int MATCHING_SCOPE_FIELD_NUMBER = 3; + private int matchingScope_ = 0; + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the matchingScope field is set. + */ + @java.lang.Override + public boolean hasMatchingScope() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchingScope. + */ + @java.lang.Override + public int getMatchingScopeValue() { + return matchingScope_; + } + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchingScope. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MatchingScope getMatchingScope() { + com.google.cloud.modelarmor.v1.MatchingScope result = + com.google.cloud.modelarmor.v1.MatchingScope.forNumber(matchingScope_); + return result == null ? com.google.cloud.modelarmor.v1.MatchingScope.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 (typeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.modelarmor.v1.Dictionary) type_); + } + if (typeCase_ == 2) { + output.writeMessage(2, (com.google.cloud.modelarmor.v1.Regex) type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeEnum(3, matchingScope_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.modelarmor.v1.Dictionary) type_); + } + if (typeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.cloud.modelarmor.v1.Regex) type_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, matchingScope_); + } + 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.modelarmor.v1.ExclusionRule)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.ExclusionRule other = + (com.google.cloud.modelarmor.v1.ExclusionRule) obj; + + if (hasMatchingScope() != other.hasMatchingScope()) return false; + if (hasMatchingScope()) { + if (matchingScope_ != other.matchingScope_) return false; + } + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getDictionary().equals(other.getDictionary())) return false; + break; + case 2: + if (!getRegex().equals(other.getRegex())) 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 (hasMatchingScope()) { + hash = (37 * hash) + MATCHING_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + matchingScope_; + } + switch (typeCase_) { + case 1: + hash = (37 * hash) + DICTIONARY_FIELD_NUMBER; + hash = (53 * hash) + getDictionary().hashCode(); + break; + case 2: + hash = (37 * hash) + REGEX_FIELD_NUMBER; + hash = (53 * hash) + getRegex().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule 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.modelarmor.v1.ExclusionRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom( + 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.modelarmor.v1.ExclusionRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.ExclusionRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * The rule that specifies conditions when filter detections are excluded from
        +   * results.
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.ExclusionRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.ExclusionRule) + com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_ExclusionRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.ExclusionRule.class, + com.google.cloud.modelarmor.v1.ExclusionRule.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.ExclusionRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (dictionaryBuilder_ != null) { + dictionaryBuilder_.clear(); + } + if (regexBuilder_ != null) { + regexBuilder_.clear(); + } + matchingScope_ = 0; + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRule getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRule build() { + com.google.cloud.modelarmor.v1.ExclusionRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRule buildPartial() { + com.google.cloud.modelarmor.v1.ExclusionRule result = + new com.google.cloud.modelarmor.v1.ExclusionRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.ExclusionRule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.matchingScope_ = matchingScope_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.modelarmor.v1.ExclusionRule result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 1 && dictionaryBuilder_ != null) { + result.type_ = dictionaryBuilder_.build(); + } + if (typeCase_ == 2 && regexBuilder_ != null) { + result.type_ = regexBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.ExclusionRule) { + return mergeFrom((com.google.cloud.modelarmor.v1.ExclusionRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.ExclusionRule other) { + if (other == com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance()) return this; + if (other.hasMatchingScope()) { + setMatchingScopeValue(other.getMatchingScopeValue()); + } + switch (other.getTypeCase()) { + case DICTIONARY: + { + mergeDictionary(other.getDictionary()); + break; + } + case REGEX: + { + mergeRegex(other.getRegex()); + break; + } + case TYPE_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( + internalGetDictionaryFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetRegexFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 2; + break; + } // case 18 + case 24: + { + matchingScope_ = 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 typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Dictionary, + com.google.cloud.modelarmor.v1.Dictionary.Builder, + com.google.cloud.modelarmor.v1.DictionaryOrBuilder> + dictionaryBuilder_; + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return Whether the dictionary field is set. + */ + @java.lang.Override + public boolean hasDictionary() { + return typeCase_ == 1; + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return The dictionary. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Dictionary getDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.Dictionary) type_; + } + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return dictionaryBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + public Builder setDictionary(com.google.cloud.modelarmor.v1.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + dictionaryBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + public Builder setDictionary( + com.google.cloud.modelarmor.v1.Dictionary.Builder builderForValue) { + if (dictionaryBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + dictionaryBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + public Builder mergeDictionary(com.google.cloud.modelarmor.v1.Dictionary value) { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1 + && type_ != com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance()) { + type_ = + com.google.cloud.modelarmor.v1.Dictionary.newBuilder( + (com.google.cloud.modelarmor.v1.Dictionary) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + dictionaryBuilder_.mergeFrom(value); + } else { + dictionaryBuilder_.setMessage(value); + } + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + public Builder clearDictionary() { + if (dictionaryBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + dictionaryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + public com.google.cloud.modelarmor.v1.Dictionary.Builder getDictionaryBuilder() { + return internalGetDictionaryFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.DictionaryOrBuilder getDictionaryOrBuilder() { + if ((typeCase_ == 1) && (dictionaryBuilder_ != null)) { + return dictionaryBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.Dictionary) type_; + } + return com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Dictionary which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Dictionary, + com.google.cloud.modelarmor.v1.Dictionary.Builder, + com.google.cloud.modelarmor.v1.DictionaryOrBuilder> + internalGetDictionaryFieldBuilder() { + if (dictionaryBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.cloud.modelarmor.v1.Dictionary.getDefaultInstance(); + } + dictionaryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Dictionary, + com.google.cloud.modelarmor.v1.Dictionary.Builder, + com.google.cloud.modelarmor.v1.DictionaryOrBuilder>( + (com.google.cloud.modelarmor.v1.Dictionary) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged(); + return dictionaryBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Regex, + com.google.cloud.modelarmor.v1.Regex.Builder, + com.google.cloud.modelarmor.v1.RegexOrBuilder> + regexBuilder_; + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return Whether the regex field is set. + */ + @java.lang.Override + public boolean hasRegex() { + return typeCase_ == 2; + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return The regex. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.Regex getRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 2) { + return (com.google.cloud.modelarmor.v1.Regex) type_; + } + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } else { + if (typeCase_ == 2) { + return regexBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + public Builder setRegex(com.google.cloud.modelarmor.v1.Regex value) { + if (regexBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + regexBuilder_.setMessage(value); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + public Builder setRegex(com.google.cloud.modelarmor.v1.Regex.Builder builderForValue) { + if (regexBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + regexBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + public Builder mergeRegex(com.google.cloud.modelarmor.v1.Regex value) { + if (regexBuilder_ == null) { + if (typeCase_ == 2 && type_ != com.google.cloud.modelarmor.v1.Regex.getDefaultInstance()) { + type_ = + com.google.cloud.modelarmor.v1.Regex.newBuilder( + (com.google.cloud.modelarmor.v1.Regex) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 2) { + regexBuilder_.mergeFrom(value); + } else { + regexBuilder_.setMessage(value); + } + } + typeCase_ = 2; + return this; + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + public Builder clearRegex() { + if (regexBuilder_ == null) { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 2) { + typeCase_ = 0; + type_ = null; + } + regexBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + public com.google.cloud.modelarmor.v1.Regex.Builder getRegexBuilder() { + return internalGetRegexFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.RegexOrBuilder getRegexOrBuilder() { + if ((typeCase_ == 2) && (regexBuilder_ != null)) { + return regexBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 2) { + return (com.google.cloud.modelarmor.v1.Regex) type_; + } + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Regular expression which defines the rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Regex, + com.google.cloud.modelarmor.v1.Regex.Builder, + com.google.cloud.modelarmor.v1.RegexOrBuilder> + internalGetRegexFieldBuilder() { + if (regexBuilder_ == null) { + if (!(typeCase_ == 2)) { + type_ = com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + regexBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.Regex, + com.google.cloud.modelarmor.v1.Regex.Builder, + com.google.cloud.modelarmor.v1.RegexOrBuilder>( + (com.google.cloud.modelarmor.v1.Regex) type_, getParentForChildren(), isClean()); + type_ = null; + } + typeCase_ = 2; + onChanged(); + return regexBuilder_; + } + + private int matchingScope_ = 0; + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the matchingScope field is set. + */ + @java.lang.Override + public boolean hasMatchingScope() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchingScope. + */ + @java.lang.Override + public int getMatchingScopeValue() { + return matchingScope_; + } + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for matchingScope to set. + * @return This builder for chaining. + */ + public Builder setMatchingScopeValue(int value) { + matchingScope_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchingScope. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.MatchingScope getMatchingScope() { + com.google.cloud.modelarmor.v1.MatchingScope result = + com.google.cloud.modelarmor.v1.MatchingScope.forNumber(matchingScope_); + return result == null ? com.google.cloud.modelarmor.v1.MatchingScope.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The matchingScope to set. + * @return This builder for chaining. + */ + public Builder setMatchingScope(com.google.cloud.modelarmor.v1.MatchingScope value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + matchingScope_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Specifies the scope of the input that should be matched against
        +     * the exclusion rule. If unspecified, defaults to
        +     * MATCHING_SCOPE_PARTIAL_MATCH.
        +     * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMatchingScope() { + bitField0_ = (bitField0_ & ~0x00000004); + matchingScope_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.ExclusionRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.ExclusionRule) + private static final com.google.cloud.modelarmor.v1.ExclusionRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.ExclusionRule(); + } + + public static com.google.cloud.modelarmor.v1.ExclusionRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExclusionRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.ExclusionRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRuleOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRuleOrBuilder.java new file mode 100644 index 000000000000..aef17e5711ad --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/ExclusionRuleOrBuilder.java @@ -0,0 +1,155 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface ExclusionRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.ExclusionRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return Whether the dictionary field is set. + */ + boolean hasDictionary(); + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + * + * @return The dictionary. + */ + com.google.cloud.modelarmor.v1.Dictionary getDictionary(); + + /** + * + * + *
        +   * Dictionary which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Dictionary dictionary = 1; + */ + com.google.cloud.modelarmor.v1.DictionaryOrBuilder getDictionaryOrBuilder(); + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return Whether the regex field is set. + */ + boolean hasRegex(); + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + * + * @return The regex. + */ + com.google.cloud.modelarmor.v1.Regex getRegex(); + + /** + * + * + *
        +   * Regular expression which defines the rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.Regex regex = 2; + */ + com.google.cloud.modelarmor.v1.RegexOrBuilder getRegexOrBuilder(); + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the matchingScope field is set. + */ + boolean hasMatchingScope(); + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for matchingScope. + */ + int getMatchingScopeValue(); + + /** + * + * + *
        +   * Optional. Specifies the scope of the input that should be matched against
        +   * the exclusion rule. If unspecified, defaults to
        +   * MATCHING_SCOPE_PARTIAL_MATCH.
        +   * 
        + * + * + * optional .google.cloud.modelarmor.v1.MatchingScope matching_scope = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The matchingScope. + */ + com.google.cloud.modelarmor.v1.MatchingScope getMatchingScope(); + + com.google.cloud.modelarmor.v1.ExclusionRule.TypeCase getTypeCase(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfig.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfig.java index f49c38aace7a..972b2a79c25d 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfig.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfig.java @@ -308,6 +308,72 @@ public com.google.cloud.modelarmor.v1.MaliciousUriFilterSettings getMaliciousUri : maliciousUriFilterSettings_; } + public static final int FILTER_RULE_SETTINGS_FIELD_NUMBER = 7; + private com.google.cloud.modelarmor.v1.FilterRuleSettings filterRuleSettings_; + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterRuleSettings field is set. + */ + @java.lang.Override + public boolean hasFilterRuleSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterRuleSettings. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSettings getFilterRuleSettings() { + return filterRuleSettings_ == null + ? com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance() + : filterRuleSettings_; + } + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder + getFilterRuleSettingsOrBuilder() { + return filterRuleSettings_ == null + ? com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance() + : filterRuleSettings_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -334,6 +400,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getMaliciousUriFilterSettings()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(7, getFilterRuleSettings()); + } getUnknownFields().writeTo(output); } @@ -359,6 +428,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 4, getMaliciousUriFilterSettings()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getFilterRuleSettings()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -393,6 +465,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMaliciousUriFilterSettings().equals(other.getMaliciousUriFilterSettings())) return false; } + if (hasFilterRuleSettings() != other.hasFilterRuleSettings()) return false; + if (hasFilterRuleSettings()) { + if (!getFilterRuleSettings().equals(other.getFilterRuleSettings())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -420,6 +496,10 @@ public int hashCode() { hash = (37 * hash) + MALICIOUS_URI_FILTER_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getMaliciousUriFilterSettings().hashCode(); } + if (hasFilterRuleSettings()) { + hash = (37 * hash) + FILTER_RULE_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getFilterRuleSettings().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -565,6 +645,7 @@ private void maybeForceBuilderInitialization() { internalGetSdpSettingsFieldBuilder(); internalGetPiAndJailbreakFilterSettingsFieldBuilder(); internalGetMaliciousUriFilterSettingsFieldBuilder(); + internalGetFilterRuleSettingsFieldBuilder(); } } @@ -592,6 +673,11 @@ public Builder clear() { maliciousUriFilterSettingsBuilder_.dispose(); maliciousUriFilterSettingsBuilder_ = null; } + filterRuleSettings_ = null; + if (filterRuleSettingsBuilder_ != null) { + filterRuleSettingsBuilder_.dispose(); + filterRuleSettingsBuilder_ = null; + } return this; } @@ -653,6 +739,13 @@ private void buildPartial0(com.google.cloud.modelarmor.v1.FilterConfig result) { : maliciousUriFilterSettingsBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filterRuleSettings_ = + filterRuleSettingsBuilder_ == null + ? filterRuleSettings_ + : filterRuleSettingsBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } @@ -680,6 +773,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1.FilterConfig other) { if (other.hasMaliciousUriFilterSettings()) { mergeMaliciousUriFilterSettings(other.getMaliciousUriFilterSettings()); } + if (other.hasFilterRuleSettings()) { + mergeFilterRuleSettings(other.getFilterRuleSettings()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -736,6 +832,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 58: + { + input.readMessage( + internalGetFilterRuleSettingsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1623,6 +1726,241 @@ public Builder clearMaliciousUriFilterSettings() { return maliciousUriFilterSettingsBuilder_; } + private com.google.cloud.modelarmor.v1.FilterRuleSettings filterRuleSettings_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSettings, + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder> + filterRuleSettingsBuilder_; + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterRuleSettings field is set. + */ + public boolean hasFilterRuleSettings() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterRuleSettings. + */ + public com.google.cloud.modelarmor.v1.FilterRuleSettings getFilterRuleSettings() { + if (filterRuleSettingsBuilder_ == null) { + return filterRuleSettings_ == null + ? com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance() + : filterRuleSettings_; + } else { + return filterRuleSettingsBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilterRuleSettings(com.google.cloud.modelarmor.v1.FilterRuleSettings value) { + if (filterRuleSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + filterRuleSettings_ = value; + } else { + filterRuleSettingsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilterRuleSettings( + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder builderForValue) { + if (filterRuleSettingsBuilder_ == null) { + filterRuleSettings_ = builderForValue.build(); + } else { + filterRuleSettingsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFilterRuleSettings( + com.google.cloud.modelarmor.v1.FilterRuleSettings value) { + if (filterRuleSettingsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && filterRuleSettings_ != null + && filterRuleSettings_ + != com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance()) { + getFilterRuleSettingsBuilder().mergeFrom(value); + } else { + filterRuleSettings_ = value; + } + } else { + filterRuleSettingsBuilder_.mergeFrom(value); + } + if (filterRuleSettings_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilterRuleSettings() { + bitField0_ = (bitField0_ & ~0x00000010); + filterRuleSettings_ = null; + if (filterRuleSettingsBuilder_ != null) { + filterRuleSettingsBuilder_.dispose(); + filterRuleSettingsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder + getFilterRuleSettingsBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetFilterRuleSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder + getFilterRuleSettingsOrBuilder() { + if (filterRuleSettingsBuilder_ != null) { + return filterRuleSettingsBuilder_.getMessageOrBuilder(); + } else { + return filterRuleSettings_ == null + ? com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance() + : filterRuleSettings_; + } + } + + /** + * + * + *
        +     * Optional. Settings for customizing filter rules.
        +     * Note: This field is not supported in FloorSetting and Streaming
        +     * Sanitization APIs.
        +     * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSettings, + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder> + internalGetFilterRuleSettingsFieldBuilder() { + if (filterRuleSettingsBuilder_ == null) { + filterRuleSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSettings, + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder>( + getFilterRuleSettings(), getParentForChildren(), isClean()); + filterRuleSettings_ = null; + } + return filterRuleSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.FilterConfig) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfigOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfigOrBuilder.java index 21c41410239d..83ee5f33f865 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfigOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterConfigOrBuilder.java @@ -199,4 +199,53 @@ public interface FilterConfigOrBuilder */ com.google.cloud.modelarmor.v1.MaliciousUriFilterSettingsOrBuilder getMaliciousUriFilterSettingsOrBuilder(); + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the filterRuleSettings field is set. + */ + boolean hasFilterRuleSettings(); + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The filterRuleSettings. + */ + com.google.cloud.modelarmor.v1.FilterRuleSettings getFilterRuleSettings(); + + /** + * + * + *
        +   * Optional. Settings for customizing filter rules.
        +   * Note: This field is not supported in FloorSetting and Streaming
        +   * Sanitization APIs.
        +   * 
        + * + * + * .google.cloud.modelarmor.v1.FilterRuleSettings filter_rule_settings = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder getFilterRuleSettingsOrBuilder(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRule.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRule.java new file mode 100644 index 000000000000..66cb475bc47f --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRule.java @@ -0,0 +1,794 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * A single rule to be applied to filters, specified in `FilterRuleSet`.
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRule} + */ +@com.google.protobuf.Generated +public final class FilterRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.FilterRule) + FilterRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FilterRule"); + } + + // Use FilterRule.newBuilder() to construct. + private FilterRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilterRule() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRule.class, + com.google.cloud.modelarmor.v1.FilterRule.Builder.class); + } + + private int typeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object type_; + + public enum TypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EXCLUSION_RULE(1), + TYPE_NOT_SET(0); + private final int value; + + private TypeCase(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 TypeCase valueOf(int value) { + return forNumber(value); + } + + public static TypeCase forNumber(int value) { + switch (value) { + case 1: + return EXCLUSION_RULE; + case 0: + return TYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public static final int EXCLUSION_RULE_FIELD_NUMBER = 1; + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return Whether the exclusionRule field is set. + */ + @java.lang.Override + public boolean hasExclusionRule() { + return typeCase_ == 1; + } + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return The exclusionRule. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRule getExclusionRule() { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.ExclusionRule) type_; + } + return com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder getExclusionRuleOrBuilder() { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.ExclusionRule) type_; + } + return com.google.cloud.modelarmor.v1.ExclusionRule.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 (typeCase_ == 1) { + output.writeMessage(1, (com.google.cloud.modelarmor.v1.ExclusionRule) type_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (typeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.modelarmor.v1.ExclusionRule) 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.modelarmor.v1.FilterRule)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.FilterRule other = + (com.google.cloud.modelarmor.v1.FilterRule) obj; + + if (!getTypeCase().equals(other.getTypeCase())) return false; + switch (typeCase_) { + case 1: + if (!getExclusionRule().equals(other.getExclusionRule())) 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 (typeCase_) { + case 1: + hash = (37 * hash) + EXCLUSION_RULE_FIELD_NUMBER; + hash = (53 * hash) + getExclusionRule().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRule 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.modelarmor.v1.FilterRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom( + 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.modelarmor.v1.FilterRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.FilterRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * A single rule to be applied to filters, specified in `FilterRuleSet`.
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.FilterRule) + com.google.cloud.modelarmor.v1.FilterRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRule.class, + com.google.cloud.modelarmor.v1.FilterRule.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.FilterRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (exclusionRuleBuilder_ != null) { + exclusionRuleBuilder_.clear(); + } + typeCase_ = 0; + type_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRule getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.FilterRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRule build() { + com.google.cloud.modelarmor.v1.FilterRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRule buildPartial() { + com.google.cloud.modelarmor.v1.FilterRule result = + new com.google.cloud.modelarmor.v1.FilterRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.FilterRule result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.modelarmor.v1.FilterRule result) { + result.typeCase_ = typeCase_; + result.type_ = this.type_; + if (typeCase_ == 1 && exclusionRuleBuilder_ != null) { + result.type_ = exclusionRuleBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.FilterRule) { + return mergeFrom((com.google.cloud.modelarmor.v1.FilterRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.FilterRule other) { + if (other == com.google.cloud.modelarmor.v1.FilterRule.getDefaultInstance()) return this; + switch (other.getTypeCase()) { + case EXCLUSION_RULE: + { + mergeExclusionRule(other.getExclusionRule()); + break; + } + case TYPE_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( + internalGetExclusionRuleFieldBuilder().getBuilder(), extensionRegistry); + typeCase_ = 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 typeCase_ = 0; + private java.lang.Object type_; + + public TypeCase getTypeCase() { + return TypeCase.forNumber(typeCase_); + } + + public Builder clearType() { + typeCase_ = 0; + type_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.ExclusionRule, + com.google.cloud.modelarmor.v1.ExclusionRule.Builder, + com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder> + exclusionRuleBuilder_; + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return Whether the exclusionRule field is set. + */ + @java.lang.Override + public boolean hasExclusionRule() { + return typeCase_ == 1; + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return The exclusionRule. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRule getExclusionRule() { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.ExclusionRule) type_; + } + return com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } else { + if (typeCase_ == 1) { + return exclusionRuleBuilder_.getMessage(); + } + return com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + public Builder setExclusionRule(com.google.cloud.modelarmor.v1.ExclusionRule value) { + if (exclusionRuleBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + onChanged(); + } else { + exclusionRuleBuilder_.setMessage(value); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + public Builder setExclusionRule( + com.google.cloud.modelarmor.v1.ExclusionRule.Builder builderForValue) { + if (exclusionRuleBuilder_ == null) { + type_ = builderForValue.build(); + onChanged(); + } else { + exclusionRuleBuilder_.setMessage(builderForValue.build()); + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + public Builder mergeExclusionRule(com.google.cloud.modelarmor.v1.ExclusionRule value) { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 1 + && type_ != com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance()) { + type_ = + com.google.cloud.modelarmor.v1.ExclusionRule.newBuilder( + (com.google.cloud.modelarmor.v1.ExclusionRule) type_) + .mergeFrom(value) + .buildPartial(); + } else { + type_ = value; + } + onChanged(); + } else { + if (typeCase_ == 1) { + exclusionRuleBuilder_.mergeFrom(value); + } else { + exclusionRuleBuilder_.setMessage(value); + } + } + typeCase_ = 1; + return this; + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + public Builder clearExclusionRule() { + if (exclusionRuleBuilder_ == null) { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + onChanged(); + } + } else { + if (typeCase_ == 1) { + typeCase_ = 0; + type_ = null; + } + exclusionRuleBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + public com.google.cloud.modelarmor.v1.ExclusionRule.Builder getExclusionRuleBuilder() { + return internalGetExclusionRuleFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder getExclusionRuleOrBuilder() { + if ((typeCase_ == 1) && (exclusionRuleBuilder_ != null)) { + return exclusionRuleBuilder_.getMessageOrBuilder(); + } else { + if (typeCase_ == 1) { + return (com.google.cloud.modelarmor.v1.ExclusionRule) type_; + } + return com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } + } + + /** + * + * + *
        +     * Exclusion rule.
        +     * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.ExclusionRule, + com.google.cloud.modelarmor.v1.ExclusionRule.Builder, + com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder> + internalGetExclusionRuleFieldBuilder() { + if (exclusionRuleBuilder_ == null) { + if (!(typeCase_ == 1)) { + type_ = com.google.cloud.modelarmor.v1.ExclusionRule.getDefaultInstance(); + } + exclusionRuleBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1.ExclusionRule, + com.google.cloud.modelarmor.v1.ExclusionRule.Builder, + com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder>( + (com.google.cloud.modelarmor.v1.ExclusionRule) type_, + getParentForChildren(), + isClean()); + type_ = null; + } + typeCase_ = 1; + onChanged(); + return exclusionRuleBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.FilterRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.FilterRule) + private static final com.google.cloud.modelarmor.v1.FilterRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.FilterRule(); + } + + public static com.google.cloud.modelarmor.v1.FilterRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.FilterRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleOrBuilder.java new file mode 100644 index 000000000000..ea9e547ece16 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleOrBuilder.java @@ -0,0 +1,67 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface FilterRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.FilterRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return Whether the exclusionRule field is set. + */ + boolean hasExclusionRule(); + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + * + * @return The exclusionRule. + */ + com.google.cloud.modelarmor.v1.ExclusionRule getExclusionRule(); + + /** + * + * + *
        +   * Exclusion rule.
        +   * 
        + * + * .google.cloud.modelarmor.v1.ExclusionRule exclusion_rule = 1; + */ + com.google.cloud.modelarmor.v1.ExclusionRuleOrBuilder getExclusionRuleOrBuilder(); + + com.google.cloud.modelarmor.v1.FilterRule.TypeCase getTypeCase(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSet.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSet.java new file mode 100644 index 000000000000..3ccb27a611e8 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSet.java @@ -0,0 +1,1399 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * A set of rules that modifies the behavior of specific filters based on the
        + * rules defined within the set.
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRuleSet} + */ +@com.google.protobuf.Generated +public final class FilterRuleSet extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.FilterRuleSet) + FilterRuleSetOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FilterRuleSet"); + } + + // Use FilterRuleSet.newBuilder() to construct. + private FilterRuleSet(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilterRuleSet() { + filterTypes_ = emptyIntList(); + rules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRuleSet.class, + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder.class); + } + + public static final int FILTER_TYPES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.Internal.IntList filterTypes_ = emptyIntList(); + + private static final com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.modelarmor.v1.RuleFilterType> + filterTypes_converter_ = + new com.google.protobuf.Internal.IntListAdapter.IntConverter< + com.google.cloud.modelarmor.v1.RuleFilterType>() { + public com.google.cloud.modelarmor.v1.RuleFilterType convert(int from) { + com.google.cloud.modelarmor.v1.RuleFilterType result = + com.google.cloud.modelarmor.v1.RuleFilterType.forNumber(from); + return result == null + ? com.google.cloud.modelarmor.v1.RuleFilterType.UNRECOGNIZED + : result; + } + }; + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the filterTypes. + */ + @java.lang.Override + public java.util.List getFilterTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.modelarmor.v1.RuleFilterType>(filterTypes_, filterTypes_converter_); + } + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of filterTypes. + */ + @java.lang.Override + public int getFilterTypesCount() { + return filterTypes_.size(); + } + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The filterTypes at the given index. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.RuleFilterType getFilterTypes(int index) { + return filterTypes_converter_.convert(filterTypes_.getInt(index)); + } + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for filterTypes. + */ + @java.lang.Override + public java.util.List getFilterTypesValueList() { + return filterTypes_; + } + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filterTypes at the given index. + */ + @java.lang.Override + public int getFilterTypesValue(int index) { + return filterTypes_.getInt(index); + } + + private int filterTypesMemoizedSerializedSize; + + public static final int RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.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 { + getSerializedSize(); + if (getFilterTypesList().size() > 0) { + output.writeUInt32NoTag(10); + output.writeUInt32NoTag(filterTypesMemoizedSerializedSize); + } + for (int i = 0; i < filterTypes_.size(); i++) { + output.writeEnumNoTag(filterTypes_.getInt(i)); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.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 < filterTypes_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(filterTypes_.getInt(i)); + } + size += dataSize; + if (!getFilterTypesList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + filterTypesMemoizedSerializedSize = dataSize; + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rules_.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.modelarmor.v1.FilterRuleSet)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.FilterRuleSet other = + (com.google.cloud.modelarmor.v1.FilterRuleSet) obj; + + if (!filterTypes_.equals(other.filterTypes_)) return false; + if (!getRulesList().equals(other.getRulesList())) 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 (getFilterTypesCount() > 0) { + hash = (37 * hash) + FILTER_TYPES_FIELD_NUMBER; + hash = (53 * hash) + filterTypes_.hashCode(); + } + if (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet 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.modelarmor.v1.FilterRuleSet parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom( + 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.modelarmor.v1.FilterRuleSet parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.FilterRuleSet prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * A set of rules that modifies the behavior of specific filters based on the
        +   * rules defined within the set.
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRuleSet} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.FilterRuleSet) + com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSet_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRuleSet.class, + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.FilterRuleSet.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + filterTypes_ = emptyIntList(); + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSet getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.FilterRuleSet.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSet build() { + com.google.cloud.modelarmor.v1.FilterRuleSet result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSet buildPartial() { + com.google.cloud.modelarmor.v1.FilterRuleSet result = + new com.google.cloud.modelarmor.v1.FilterRuleSet(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.modelarmor.v1.FilterRuleSet result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.FilterRuleSet result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + filterTypes_.makeImmutable(); + result.filterTypes_ = filterTypes_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.FilterRuleSet) { + return mergeFrom((com.google.cloud.modelarmor.v1.FilterRuleSet) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.FilterRuleSet other) { + if (other == com.google.cloud.modelarmor.v1.FilterRuleSet.getDefaultInstance()) return this; + if (!other.filterTypes_.isEmpty()) { + if (filterTypes_.isEmpty()) { + filterTypes_ = other.filterTypes_; + filterTypes_.makeImmutable(); + bitField0_ |= 0x00000001; + } else { + ensureFilterTypesIsMutable(); + filterTypes_.addAll(other.filterTypes_); + } + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + 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(); + ensureFilterTypesIsMutable(); + filterTypes_.addInt(tmpRaw); + break; + } // case 8 + case 10: + { + int length = input.readRawVarint32(); + int limit = input.pushLimit(length); + ensureFilterTypesIsMutable(); + while (input.getBytesUntilLimit() > 0) { + filterTypes_.addInt(input.readEnum()); + } + input.popLimit(limit); + break; + } // case 10 + case 18: + { + com.google.cloud.modelarmor.v1.FilterRule m = + input.readMessage( + com.google.cloud.modelarmor.v1.FilterRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.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 com.google.protobuf.Internal.IntList filterTypes_ = emptyIntList(); + + private void ensureFilterTypesIsMutable() { + if (!filterTypes_.isModifiable()) { + filterTypes_ = makeMutableCopy(filterTypes_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the filterTypes. + */ + public java.util.List getFilterTypesList() { + return new com.google.protobuf.Internal.IntListAdapter< + com.google.cloud.modelarmor.v1.RuleFilterType>(filterTypes_, filterTypes_converter_); + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of filterTypes. + */ + public int getFilterTypesCount() { + return filterTypes_.size(); + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The filterTypes at the given index. + */ + public com.google.cloud.modelarmor.v1.RuleFilterType getFilterTypes(int index) { + return filterTypes_converter_.convert(filterTypes_.getInt(index)); + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index to set the value at. + * @param value The filterTypes to set. + * @return This builder for chaining. + */ + public Builder setFilterTypes(int index, com.google.cloud.modelarmor.v1.RuleFilterType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterTypesIsMutable(); + filterTypes_.setInt(index, value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The filterTypes to add. + * @return This builder for chaining. + */ + public Builder addFilterTypes(com.google.cloud.modelarmor.v1.RuleFilterType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterTypesIsMutable(); + filterTypes_.addInt(value.getNumber()); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The filterTypes to add. + * @return This builder for chaining. + */ + public Builder addAllFilterTypes( + java.lang.Iterable values) { + ensureFilterTypesIsMutable(); + for (com.google.cloud.modelarmor.v1.RuleFilterType value : values) { + filterTypes_.addInt(value.getNumber()); + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearFilterTypes() { + filterTypes_ = emptyIntList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for filterTypes. + */ + public java.util.List getFilterTypesValueList() { + filterTypes_.makeImmutable(); + return filterTypes_; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filterTypes at the given index. + */ + public int getFilterTypesValue(int index) { + return filterTypes_.getInt(index); + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 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 filterTypes to set. + * @return This builder for chaining. + */ + public Builder setFilterTypesValue(int index, int value) { + ensureFilterTypesIsMutable(); + filterTypes_.setInt(index, value); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for filterTypes to add. + * @return This builder for chaining. + */ + public Builder addFilterTypesValue(int value) { + ensureFilterTypesIsMutable(); + filterTypes_.addInt(value); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. List of filters this rule set is applied to.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param values The enum numeric values on the wire for filterTypes to add. + * @return This builder for chaining. + */ + public Builder addAllFilterTypesValue(java.lang.Iterable values) { + ensureFilterTypesIsMutable(); + for (int value : values) { + filterTypes_.addInt(value); + } + onChanged(); + return this; + } + + private java.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRule, + com.google.cloud.modelarmor.v1.FilterRule.Builder, + com.google.cloud.modelarmor.v1.FilterRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.cloud.modelarmor.v1.FilterRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.cloud.modelarmor.v1.FilterRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.modelarmor.v1.FilterRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.cloud.modelarmor.v1.FilterRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.modelarmor.v1.FilterRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.cloud.modelarmor.v1.FilterRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.modelarmor.v1.FilterRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.modelarmor.v1.FilterRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. Set of rules to be applied to filterTypes.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRule, + com.google.cloud.modelarmor.v1.FilterRule.Builder, + com.google.cloud.modelarmor.v1.FilterRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRule, + com.google.cloud.modelarmor.v1.FilterRule.Builder, + com.google.cloud.modelarmor.v1.FilterRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.FilterRuleSet) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.FilterRuleSet) + private static final com.google.cloud.modelarmor.v1.FilterRuleSet DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.FilterRuleSet(); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSet getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterRuleSet parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.FilterRuleSet getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSetOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSetOrBuilder.java new file mode 100644 index 000000000000..3b320673a38a --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSetOrBuilder.java @@ -0,0 +1,171 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface FilterRuleSetOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.FilterRuleSet) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the filterTypes. + */ + java.util.List getFilterTypesList(); + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The count of filterTypes. + */ + int getFilterTypesCount(); + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the element to return. + * @return The filterTypes at the given index. + */ + com.google.cloud.modelarmor.v1.RuleFilterType getFilterTypes(int index); + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return A list containing the enum numeric values on the wire for filterTypes. + */ + java.util.List getFilterTypesValueList(); + + /** + * + * + *
        +   * Required. List of filters this rule set is applied to.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.RuleFilterType filter_types = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of filterTypes at the given index. + */ + int getFilterTypesValue(int index); + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.modelarmor.v1.FilterRule getRules(int index); + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
        +   * Required. Set of rules to be applied to filterTypes.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.modelarmor.v1.FilterRuleOrBuilder getRulesOrBuilder(int index); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettings.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettings.java new file mode 100644 index 000000000000..abcfb38d17a9 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettings.java @@ -0,0 +1,970 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * Settings for customizing filter rules.
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRuleSettings} + */ +@com.google.protobuf.Generated +public final class FilterRuleSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.FilterRuleSettings) + FilterRuleSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "FilterRuleSettings"); + } + + // Use FilterRuleSettings.newBuilder() to construct. + private FilterRuleSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FilterRuleSettings() { + ruleSets_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRuleSettings.class, + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder.class); + } + + public static final int RULE_SETS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List ruleSets_; + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getRuleSetsList() { + return ruleSets_; + } + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getRuleSetsOrBuilderList() { + return ruleSets_; + } + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getRuleSetsCount() { + return ruleSets_.size(); + } + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSet getRuleSets(int index) { + return ruleSets_.get(index); + } + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder getRuleSetsOrBuilder(int index) { + return ruleSets_.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 < ruleSets_.size(); i++) { + output.writeMessage(1, ruleSets_.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 < ruleSets_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, ruleSets_.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.modelarmor.v1.FilterRuleSettings)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.FilterRuleSettings other = + (com.google.cloud.modelarmor.v1.FilterRuleSettings) obj; + + if (!getRuleSetsList().equals(other.getRuleSetsList())) 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 (getRuleSetsCount() > 0) { + hash = (37 * hash) + RULE_SETS_FIELD_NUMBER; + hash = (53 * hash) + getRuleSetsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings 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.modelarmor.v1.FilterRuleSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + 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.modelarmor.v1.FilterRuleSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.FilterRuleSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Settings for customizing filter rules.
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.FilterRuleSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.FilterRuleSettings) + com.google.cloud.modelarmor.v1.FilterRuleSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.FilterRuleSettings.class, + com.google.cloud.modelarmor.v1.FilterRuleSettings.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.FilterRuleSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (ruleSetsBuilder_ == null) { + ruleSets_ = java.util.Collections.emptyList(); + } else { + ruleSets_ = null; + ruleSetsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSettings getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSettings build() { + com.google.cloud.modelarmor.v1.FilterRuleSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.FilterRuleSettings buildPartial() { + com.google.cloud.modelarmor.v1.FilterRuleSettings result = + new com.google.cloud.modelarmor.v1.FilterRuleSettings(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.modelarmor.v1.FilterRuleSettings result) { + if (ruleSetsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + ruleSets_ = java.util.Collections.unmodifiableList(ruleSets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.ruleSets_ = ruleSets_; + } else { + result.ruleSets_ = ruleSetsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.FilterRuleSettings result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.FilterRuleSettings) { + return mergeFrom((com.google.cloud.modelarmor.v1.FilterRuleSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.FilterRuleSettings other) { + if (other == com.google.cloud.modelarmor.v1.FilterRuleSettings.getDefaultInstance()) + return this; + if (ruleSetsBuilder_ == null) { + if (!other.ruleSets_.isEmpty()) { + if (ruleSets_.isEmpty()) { + ruleSets_ = other.ruleSets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRuleSetsIsMutable(); + ruleSets_.addAll(other.ruleSets_); + } + onChanged(); + } + } else { + if (!other.ruleSets_.isEmpty()) { + if (ruleSetsBuilder_.isEmpty()) { + ruleSetsBuilder_.dispose(); + ruleSetsBuilder_ = null; + ruleSets_ = other.ruleSets_; + bitField0_ = (bitField0_ & ~0x00000001); + ruleSetsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRuleSetsFieldBuilder() + : null; + } else { + ruleSetsBuilder_.addAllMessages(other.ruleSets_); + } + } + } + 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.modelarmor.v1.FilterRuleSet m = + input.readMessage( + com.google.cloud.modelarmor.v1.FilterRuleSet.parser(), extensionRegistry); + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(m); + } else { + ruleSetsBuilder_.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 ruleSets_ = + java.util.Collections.emptyList(); + + private void ensureRuleSetsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + ruleSets_ = + new java.util.ArrayList(ruleSets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSet, + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder> + ruleSetsBuilder_; + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getRuleSetsList() { + if (ruleSetsBuilder_ == null) { + return java.util.Collections.unmodifiableList(ruleSets_); + } else { + return ruleSetsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getRuleSetsCount() { + if (ruleSetsBuilder_ == null) { + return ruleSets_.size(); + } else { + return ruleSetsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSet getRuleSets(int index) { + if (ruleSetsBuilder_ == null) { + return ruleSets_.get(index); + } else { + return ruleSetsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuleSets(int index, com.google.cloud.modelarmor.v1.FilterRuleSet value) { + if (ruleSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetsIsMutable(); + ruleSets_.set(index, value); + onChanged(); + } else { + ruleSetsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRuleSets( + int index, com.google.cloud.modelarmor.v1.FilterRuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.set(index, builderForValue.build()); + onChanged(); + } else { + ruleSetsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRuleSets(com.google.cloud.modelarmor.v1.FilterRuleSet value) { + if (ruleSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetsIsMutable(); + ruleSets_.add(value); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRuleSets(int index, com.google.cloud.modelarmor.v1.FilterRuleSet value) { + if (ruleSetsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRuleSetsIsMutable(); + ruleSets_.add(index, value); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRuleSets( + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(builderForValue.build()); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addRuleSets( + int index, com.google.cloud.modelarmor.v1.FilterRuleSet.Builder builderForValue) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.add(index, builderForValue.build()); + onChanged(); + } else { + ruleSetsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllRuleSets( + java.lang.Iterable values) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, ruleSets_); + onChanged(); + } else { + ruleSetsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRuleSets() { + if (ruleSetsBuilder_ == null) { + ruleSets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + ruleSetsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRuleSets(int index) { + if (ruleSetsBuilder_ == null) { + ensureRuleSetsIsMutable(); + ruleSets_.remove(index); + onChanged(); + } else { + ruleSetsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSet.Builder getRuleSetsBuilder(int index) { + return internalGetRuleSetsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder getRuleSetsOrBuilder(int index) { + if (ruleSetsBuilder_ == null) { + return ruleSets_.get(index); + } else { + return ruleSetsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRuleSetsOrBuilderList() { + if (ruleSetsBuilder_ != null) { + return ruleSetsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(ruleSets_); + } + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSet.Builder addRuleSetsBuilder() { + return internalGetRuleSetsFieldBuilder() + .addBuilder(com.google.cloud.modelarmor.v1.FilterRuleSet.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1.FilterRuleSet.Builder addRuleSetsBuilder(int index) { + return internalGetRuleSetsFieldBuilder() + .addBuilder(index, com.google.cloud.modelarmor.v1.FilterRuleSet.getDefaultInstance()); + } + + /** + * + * + *
        +     * Optional. List of rule sets to be applied to filters.
        +     * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getRuleSetsBuilderList() { + return internalGetRuleSetsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSet, + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder> + internalGetRuleSetsFieldBuilder() { + if (ruleSetsBuilder_ == null) { + ruleSetsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.modelarmor.v1.FilterRuleSet, + com.google.cloud.modelarmor.v1.FilterRuleSet.Builder, + com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder>( + ruleSets_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + ruleSets_ = null; + } + return ruleSetsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.FilterRuleSettings) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.FilterRuleSettings) + private static final com.google.cloud.modelarmor.v1.FilterRuleSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.FilterRuleSettings(); + } + + public static com.google.cloud.modelarmor.v1.FilterRuleSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FilterRuleSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.FilterRuleSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettingsOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettingsOrBuilder.java new file mode 100644 index 000000000000..33de1196fdb9 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterRuleSettingsOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface FilterRuleSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.FilterRuleSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getRuleSetsList(); + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.FilterRuleSet getRuleSets(int index); + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRuleSetsCount(); + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getRuleSetsOrBuilderList(); + + /** + * + * + *
        +   * Optional. List of rule sets to be applied to filters.
        +   * 
        + * + * + * repeated .google.cloud.modelarmor.v1.FilterRuleSet rule_sets = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1.FilterRuleSetOrBuilder getRuleSetsOrBuilder(int index); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterVersionAlias.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterVersionAlias.java index 58d1197151ed..97312afdd2dd 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterVersionAlias.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/FilterVersionAlias.java @@ -47,7 +47,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu * * *
        -   * The `STABLE` alias points to the most recent stable model version.
        +   * `STABLE` alias points to the most recent stable model version.
            * Using this alias means no code changes are required when a new model
            * becomes the stable version.
            * 
        @@ -59,7 +59,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu * * *
        -   * The `LATEST` alias points to the newest model version available.
        +   * `LATEST` alias points to the newest model version available.
            * This version is subject to frequent revisions and offers SLO guarantees
            * but does not assure stability, providing the most current security
            * protections.
        @@ -72,7 +72,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu
            *
            *
            * 
        -   * The `LEGACY` alias could be used for sanitization operations for a
        +   * `LEGACY` alias could be used for sanitization operations for a
            * transition period. New templates cannot be created with this version.
            * 
        * @@ -83,7 +83,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu * * *
        -   * The `RETIRED` alias could be used for versions that are no longer available
        +   * `RETIRED` alias could be used for versions that are no longer available
            * to be used. While new templates cannot be created with this alias, any
            * existing template or request using `RETIRED` version will fall back to
            * the current `STABLE` version for sanitization operations.
        @@ -120,7 +120,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu
            *
            *
            * 
        -   * The `STABLE` alias points to the most recent stable model version.
        +   * `STABLE` alias points to the most recent stable model version.
            * Using this alias means no code changes are required when a new model
            * becomes the stable version.
            * 
        @@ -133,7 +133,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu * * *
        -   * The `LATEST` alias points to the newest model version available.
        +   * `LATEST` alias points to the newest model version available.
            * This version is subject to frequent revisions and offers SLO guarantees
            * but does not assure stability, providing the most current security
            * protections.
        @@ -147,7 +147,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu
            *
            *
            * 
        -   * The `LEGACY` alias could be used for sanitization operations for a
        +   * `LEGACY` alias could be used for sanitization operations for a
            * transition period. New templates cannot be created with this version.
            * 
        * @@ -159,7 +159,7 @@ public enum FilterVersionAlias implements com.google.protobuf.ProtocolMessageEnu * * *
        -   * The `RETIRED` alias could be used for versions that are no longer available
        +   * `RETIRED` alias could be used for versions that are no longer available
            * to be used. While new templates cannot be created with this alias, any
            * existing template or request using `RETIRED` version will fall back to
            * the current `STABLE` version for sanitization operations.
        diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MatchingScope.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MatchingScope.java
        new file mode 100644
        index 000000000000..4f0fae06e4d3
        --- /dev/null
        +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/MatchingScope.java
        @@ -0,0 +1,209 @@
        +/*
        + * Copyright 2026 Google LLC
        + *
        + * Licensed under the Apache License, Version 2.0 (the "License");
        + * you may not use this file except in compliance with the License.
        + * You may obtain a copy of the License at
        + *
        + *     https://www.apache.org/licenses/LICENSE-2.0
        + *
        + * Unless required by applicable law or agreed to in writing, software
        + * distributed under the License is distributed on an "AS IS" BASIS,
        + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        + * See the License for the specific language governing permissions and
        + * limitations under the License.
        + */
        +// Generated by the protocol buffer compiler.  DO NOT EDIT!
        +// NO CHECKED-IN PROTOBUF GENCODE
        +// source: google/cloud/modelarmor/v1/service.proto
        +// Protobuf Java Version: 4.33.6
        +
        +package com.google.cloud.modelarmor.v1;
        +
        +/**
        + *
        + *
        + * 
        + * Defines the scope of the match for a rule.
        + *
        + * Additional values may be added to this enum in the future.
        + * 
        + * + * Protobuf enum {@code google.cloud.modelarmor.v1.MatchingScope} + */ +@com.google.protobuf.Generated +public enum MatchingScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +   * Unspecified matching scope.
        +   * 
        + * + * MATCHING_SCOPE_UNSPECIFIED = 0; + */ + MATCHING_SCOPE_UNSPECIFIED(0), + /** + * + * + *
        +   * Full match.
        +   *
        +   * - Dictionary: the dictionary match covers the entire input content
        +   * - Regular expression: the regular expression pattern matches the entire
        +   * input content
        +   * 
        + * + * MATCHING_SCOPE_FULL_MATCH = 1; + */ + MATCHING_SCOPE_FULL_MATCH(1), + /** + * + * + *
        +   * Partial match.
        +   *
        +   * - Dictionary: at least one of the tokens in the input content matches
        +   * - Regular expression: substring of the input content matches the regular
        +   * expression pattern
        +   * 
        + * + * MATCHING_SCOPE_PARTIAL_MATCH = 2; + */ + MATCHING_SCOPE_PARTIAL_MATCH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "MatchingScope"); + } + + /** + * + * + *
        +   * Unspecified matching scope.
        +   * 
        + * + * MATCHING_SCOPE_UNSPECIFIED = 0; + */ + public static final int MATCHING_SCOPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +   * Full match.
        +   *
        +   * - Dictionary: the dictionary match covers the entire input content
        +   * - Regular expression: the regular expression pattern matches the entire
        +   * input content
        +   * 
        + * + * MATCHING_SCOPE_FULL_MATCH = 1; + */ + public static final int MATCHING_SCOPE_FULL_MATCH_VALUE = 1; + + /** + * + * + *
        +   * Partial match.
        +   *
        +   * - Dictionary: at least one of the tokens in the input content matches
        +   * - Regular expression: substring of the input content matches the regular
        +   * expression pattern
        +   * 
        + * + * MATCHING_SCOPE_PARTIAL_MATCH = 2; + */ + public static final int MATCHING_SCOPE_PARTIAL_MATCH_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 MatchingScope 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 MatchingScope forNumber(int value) { + switch (value) { + case 0: + return MATCHING_SCOPE_UNSPECIFIED; + case 1: + return MATCHING_SCOPE_FULL_MATCH; + case 2: + return MATCHING_SCOPE_PARTIAL_MATCH; + 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 MatchingScope findValueByNumber(int number) { + return MatchingScope.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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto.getDescriptor().getEnumTypes().get(9); + } + + private static final MatchingScope[] VALUES = values(); + + public static MatchingScope 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 MatchingScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.modelarmor.v1.MatchingScope) +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java index 6ea3d528f84c..37030e110894 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Modality.java @@ -24,8 +24,8 @@ * * *
        - * This enum is used in the TemplateMetadata message to indicate the modality
        - * supported for sanitize API calls.
        + * This enum is used in the TemplateMetadata and FloorSettingMetadata messages
        + * to indicate the modality supported for sanitize API calls.
          * 
        * * Protobuf enum {@code google.cloud.modelarmor.v1.Modality} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java index bbf88ed411e2..54c8e8022cc9 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResult.java @@ -1291,9 +1291,9 @@ public int getRaiFilterTypeResultsCount() { * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -1321,9 +1321,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -1341,9 +1341,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -1369,9 +1369,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -2588,9 +2588,9 @@ public int getRaiFilterTypeResultsCount() { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2618,9 +2618,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2638,9 +2638,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2669,9 +2669,9 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2704,9 +2704,9 @@ public Builder clearRaiFilterTypeResults() { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2734,9 +2734,9 @@ public Builder removeRaiFilterTypeResults(java.lang.String key) { * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2761,9 +2761,9 @@ public Builder putRaiFilterTypeResults( * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * @@ -2791,9 +2791,9 @@ public Builder putAllRaiFilterTypeResults( * * *
        -     * The map of RAI filter results where key is RAI filter type - either of
        -     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -     * "sexually_suggestive".
        +     * The map of RAI filter results where the key is the RAI filter type and the
        +     * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +     * "hate_speech", "harassment", and "dangerous".
              * 
        * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java index 8642b79a4060..7e17924b69e5 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RaiFilterResultOrBuilder.java @@ -167,9 +167,9 @@ public interface RaiFilterResultOrBuilder * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -182,9 +182,9 @@ public interface RaiFilterResultOrBuilder * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -203,9 +203,9 @@ public interface RaiFilterResultOrBuilder * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -220,9 +220,9 @@ public interface RaiFilterResultOrBuilder * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * @@ -240,9 +240,9 @@ public interface RaiFilterResultOrBuilder * * *
        -   * The map of RAI filter results where key is RAI filter type - either of
        -   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
        -   * "sexually_suggestive".
        +   * The map of RAI filter results where the key is the RAI filter type and the
        +   * value is the RAI filter's result. Allowed keys are "sexually_explicit",
        +   * "hate_speech", "harassment", and "dangerous".
            * 
        * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Regex.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Regex.java new file mode 100644 index 000000000000..c36f0cc166fd --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Regex.java @@ -0,0 +1,592 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +/** + * + * + *
        + * Message defining a custom regular expression.
        + * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.Regex} + */ +@com.google.protobuf.Generated +public final class Regex extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.Regex) + RegexOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "Regex"); + } + + // Use Regex.newBuilder() to construct. + private Regex(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Regex() { + pattern_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Regex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Regex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Regex.class, + com.google.cloud.modelarmor.v1.Regex.Builder.class); + } + + public static final int PATTERN_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object pattern_ = ""; + + /** + * + * + *
        +   * Required. The regular expression pattern.
        +   * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pattern. + */ + @java.lang.Override + public java.lang.String getPattern() { + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The regular expression pattern.
        +   * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pattern. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPatternBytes() { + java.lang.Object ref = pattern_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pattern_ = 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.GeneratedMessage.isStringEmpty(pattern_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, pattern_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pattern_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, 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.cloud.modelarmor.v1.Regex)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1.Regex other = (com.google.cloud.modelarmor.v1.Regex) obj; + + if (!getPattern().equals(other.getPattern())) 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) + PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getPattern().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Regex 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.modelarmor.v1.Regex parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom( + 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.modelarmor.v1.Regex parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Regex parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Regex parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1.Regex parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.modelarmor.v1.Regex prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Message defining a custom regular expression.
        +   * 
        + * + * Protobuf type {@code google.cloud.modelarmor.v1.Regex} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.Regex) + com.google.cloud.modelarmor.v1.RegexOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Regex_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Regex_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1.Regex.class, + com.google.cloud.modelarmor.v1.Regex.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1.Regex.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + pattern_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_Regex_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Regex getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.Regex.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Regex build() { + com.google.cloud.modelarmor.v1.Regex result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1.Regex buildPartial() { + com.google.cloud.modelarmor.v1.Regex result = new com.google.cloud.modelarmor.v1.Regex(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1.Regex result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.pattern_ = pattern_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1.Regex) { + return mergeFrom((com.google.cloud.modelarmor.v1.Regex) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1.Regex other) { + if (other == com.google.cloud.modelarmor.v1.Regex.getDefaultInstance()) return this; + if (!other.getPattern().isEmpty()) { + pattern_ = other.pattern_; + 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: + { + pattern_ = 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 pattern_ = ""; + + /** + * + * + *
        +     * Required. The regular expression pattern.
        +     * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The pattern. + */ + public java.lang.String getPattern() { + java.lang.Object ref = pattern_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pattern_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The regular expression pattern.
        +     * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for pattern. + */ + public com.google.protobuf.ByteString getPatternBytes() { + java.lang.Object ref = pattern_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pattern_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The regular expression pattern.
        +     * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The pattern to set. + * @return This builder for chaining. + */ + public Builder setPattern(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The regular expression pattern.
        +     * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPattern() { + pattern_ = getDefaultInstance().getPattern(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The regular expression pattern.
        +     * 
        + * + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for pattern to set. + * @return This builder for chaining. + */ + public Builder setPatternBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pattern_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.Regex) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.Regex) + private static final com.google.cloud.modelarmor.v1.Regex DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.Regex(); + } + + public static com.google.cloud.modelarmor.v1.Regex getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Regex parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.modelarmor.v1.Regex getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecuritySchemeOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RegexOrBuilder.java similarity index 55% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecuritySchemeOrBuilder.java rename to java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RegexOrBuilder.java index 0444f5899d51..d73ae93406f4 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/MutualTlsSecuritySchemeOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RegexOrBuilder.java @@ -15,40 +15,40 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/modelarmor/v1/service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.modelarmor.v1; @com.google.protobuf.Generated -public interface MutualTlsSecuritySchemeOrBuilder +public interface RegexOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.cloud.geminidataanalytics.v1beta.MutualTlsSecurityScheme) + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.Regex) com.google.protobuf.MessageOrBuilder { /** * * *
        -   * Optional. Description of this security scheme.
        +   * Required. The regular expression pattern.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The description. + * @return The pattern. */ - java.lang.String getDescription(); + java.lang.String getPattern(); /** * * *
        -   * Optional. Description of this security scheme.
        +   * Required. The regular expression pattern.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * string pattern = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The bytes for description. + * @return The bytes for pattern. */ - com.google.protobuf.ByteString getDescriptionBytes(); + com.google.protobuf.ByteString getPatternBytes(); } diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Role.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RuleFilterType.java similarity index 60% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Role.java rename to java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RuleFilterType.java index c5292226875b..07bb01799ced 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/Role.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/RuleFilterType.java @@ -15,52 +15,52 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/modelarmor/v1/service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.modelarmor.v1; /** * * *
        - * Role indicates the sender of a message.
        + * Model Armor Filter types supported for rules.
          * 
        * - * Protobuf enum {@code google.cloud.geminidataanalytics.v1beta.Role} + * Protobuf enum {@code google.cloud.modelarmor.v1.RuleFilterType} */ @com.google.protobuf.Generated -public enum Role implements com.google.protobuf.ProtocolMessageEnum { +public enum RuleFilterType implements com.google.protobuf.ProtocolMessageEnum { /** * * *
        -   * Default unspecified role.
        +   * Unspecified filter type.
            * 
        * - * ROLE_UNSPECIFIED = 0; + * RULE_FILTER_TYPE_UNSPECIFIED = 0; */ - ROLE_UNSPECIFIED(0), + RULE_FILTER_TYPE_UNSPECIFIED(0), /** * * *
        -   * USER role refers to communication from the client to the server.
        +   * Prompt injection and jailbreak filter.
            * 
        * - * ROLE_USER = 1; + * PROMPT_INJECTION_AND_JAILBREAK = 1; */ - ROLE_USER(1), + PROMPT_INJECTION_AND_JAILBREAK(1), /** * * *
        -   * AGENT role refers to communication from the server to the client.
        +   * Responsible AI filter.
            * 
        * - * ROLE_AGENT = 2; + * RESPONSIBLE_AI = 2; */ - ROLE_AGENT(2), + RESPONSIBLE_AI(2), UNRECOGNIZED(-1), ; @@ -71,41 +71,41 @@ public enum Role implements com.google.protobuf.ProtocolMessageEnum { /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "Role"); + "RuleFilterType"); } /** * * *
        -   * Default unspecified role.
        +   * Unspecified filter type.
            * 
        * - * ROLE_UNSPECIFIED = 0; + * RULE_FILTER_TYPE_UNSPECIFIED = 0; */ - public static final int ROLE_UNSPECIFIED_VALUE = 0; + public static final int RULE_FILTER_TYPE_UNSPECIFIED_VALUE = 0; /** * * *
        -   * USER role refers to communication from the client to the server.
        +   * Prompt injection and jailbreak filter.
            * 
        * - * ROLE_USER = 1; + * PROMPT_INJECTION_AND_JAILBREAK = 1; */ - public static final int ROLE_USER_VALUE = 1; + public static final int PROMPT_INJECTION_AND_JAILBREAK_VALUE = 1; /** * * *
        -   * AGENT role refers to communication from the server to the client.
        +   * Responsible AI filter.
            * 
        * - * ROLE_AGENT = 2; + * RESPONSIBLE_AI = 2; */ - public static final int ROLE_AGENT_VALUE = 2; + public static final int RESPONSIBLE_AI_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -121,7 +121,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static Role valueOf(int value) { + public static RuleFilterType valueOf(int value) { return forNumber(value); } @@ -129,27 +129,27 @@ public static Role valueOf(int value) { * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ - public static Role forNumber(int value) { + public static RuleFilterType forNumber(int value) { switch (value) { case 0: - return ROLE_UNSPECIFIED; + return RULE_FILTER_TYPE_UNSPECIFIED; case 1: - return ROLE_USER; + return PROMPT_INJECTION_AND_JAILBREAK; case 2: - return ROLE_AGENT; + return RESPONSIBLE_AI; default: return null; } } - public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + 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 Role findValueByNumber(int number) { - return Role.forNumber(number); + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RuleFilterType findValueByNumber(int number) { + return RuleFilterType.forNumber(number); } }; @@ -166,14 +166,12 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto.getDescriptor() - .getEnumTypes() - .get(1); + return com.google.cloud.modelarmor.v1.V1mainProto.getDescriptor().getEnumTypes().get(10); } - private static final Role[] VALUES = values(); + private static final RuleFilterType[] VALUES = values(); - public static Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + public static RuleFilterType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); } @@ -185,9 +183,9 @@ public static Role valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor d private final int value; - private Role(int value) { + private RuleFilterType(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.cloud.geminidataanalytics.v1beta.Role) + // @@protoc_insertion_point(enum_scope:google.cloud.modelarmor.v1.RuleFilterType) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java index a65928f1334a..89967d642d9c 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/Template.java @@ -356,7 +356,7 @@ public interface TemplateMetadataOrBuilder * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -372,7 +372,7 @@ public interface TemplateMetadataOrBuilder * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -388,7 +388,7 @@ public interface TemplateMetadataOrBuilder * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -405,7 +405,7 @@ public interface TemplateMetadataOrBuilder * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -421,7 +421,7 @@ public interface TemplateMetadataOrBuilder * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -1672,7 +1672,7 @@ public com.google.cloud.modelarmor.v1.Modality convert(int from) { * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -1692,7 +1692,7 @@ public java.util.List getModalitiesList * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -1711,7 +1711,7 @@ public int getModalitiesCount() { * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -1731,7 +1731,7 @@ public com.google.cloud.modelarmor.v1.Modality getModalities(int index) { * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -1750,7 +1750,7 @@ public java.util.List getModalitiesValueList() { * *
              * Optional. Specifies the modalities to scan.
        -     * If empty, only text modality will be scanned.
        +     * If not specified or empty, only text modality will be scanned.
              * 
        * * @@ -3638,7 +3638,7 @@ private void ensureModalitiesIsMutable() { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3657,7 +3657,7 @@ public java.util.List getModalitiesList * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3675,7 +3675,7 @@ public int getModalitiesCount() { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3694,7 +3694,7 @@ public com.google.cloud.modelarmor.v1.Modality getModalities(int index) { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3720,7 +3720,7 @@ public Builder setModalities(int index, com.google.cloud.modelarmor.v1.Modality * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3745,7 +3745,7 @@ public Builder addModalities(com.google.cloud.modelarmor.v1.Modality value) { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3770,7 +3770,7 @@ public Builder addAllModalities( * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3791,7 +3791,7 @@ public Builder clearModalities() { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3810,7 +3810,7 @@ public java.util.List getModalitiesValueList() { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3829,7 +3829,7 @@ public int getModalitiesValue(int index) { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3852,7 +3852,7 @@ public Builder setModalitiesValue(int index, int value) { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * @@ -3874,7 +3874,7 @@ public Builder addModalitiesValue(int value) { * *
                * Optional. Specifies the modalities to scan.
        -       * If empty, only text modality will be scanned.
        +       * If not specified or empty, only text modality will be scanned.
                * 
        * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java index 3e55a77fa48d..38ecbf6df01b 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/V1mainProto.java @@ -240,6 +240,34 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1_SdpRedactResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_modelarmor_v1_SdpRedactResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_WordList_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_WordList_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_Dictionary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_Regex_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_Regex_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_ExclusionRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_FilterRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_FilterRuleSet_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -423,7 +451,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "floor_setting\030\001 \001(\013" + "2(.google.cloud.modelarmor.v1.FloorSettingB\004\342A\001\002\0225\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"\363\002\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\"\307\003\n" + "\014FilterConfig\022I\n" + "\014rai_settings\030\001" + " \001(\0132-.google.cloud.modelarmor.v1.RaiFilterSettingsB\004\342A\001\001\022I\n" @@ -431,32 +459,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.modelarmor.v1.SdpFilterSettingsB\004\342A\001\001\022h\n" + " pi_and_jailbreak_filter_settings\030\003 \001(\01328.googl" + "e.cloud.modelarmor.v1.PiAndJailbreakFilterSettingsB\004\342A\001\001\022c\n" - + "\035malicious_uri_filter_settings\030\004 \001(\01326.google.cloud.modelarmo" - + "r.v1.MaliciousUriFilterSettingsB\004\342A\001\001\"\343\002\n" + + "\035malicious_uri_filter_settings\030\004" + + " \001(\01326.google.cloud.modelarmor.v1.MaliciousUriFilterSettingsB\004\342A\001\001\022R\n" + + "\024filter_rule_settings\030\007 \001(\0132..google.clo" + + "ud.modelarmor.v1.FilterRuleSettingsB\004\342A\001\001\"\343\002\n" + "\034PiAndJailbreakFilterSettings\022z\n" - + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.modela" - + "rmor.v1.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\004\342A\001\001\022T\n" - + "\020confidence_level\030\003 \001(\01624.google.cloud.mode" - + "larmor.v1.DetectionConfidenceLevelB\004\342A\001\001\"q\n" + + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.mo" + + "delarmor.v1.PiAndJailbreakFilterSettings" + + ".PiAndJailbreakFilterEnforcementB\004\342A\001\001\022T\n" + + "\020confidence_level\030\003 \001(\01624.google.cloud." + + "modelarmor.v1.DetectionConfidenceLevelB\004\342A\001\001\"q\n" + "\037PiAndJailbreakFilterEnforcement\0223\n" + "/PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\202\002\n" + "\032MaliciousUriFilterSettings\022v\n" - + "\022filter_enforcement\030\001 \001(\0162T.google.cloud.modelarmor" - + ".v1.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\004\342A\001\001\"l\n" + + "\022filter_enforcement\030\001 \001(\0162T.google.cloud.modela" + + "rmor.v1.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\004\342A\001\001\"l\n" + "\035MaliciousUriFilterEnforcement\0220\n" + ",MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\221\002\n" + "\021RaiFilterSettings\022R\n" - + "\013rai_filters\030\001 \003(\01327.google.cloud.model" - + "armor.v1.RaiFilterSettings.RaiFilterB\004\342A\001\002\032\247\001\n" + + "\013rai_filters\030\001 \003(\01327.google.cloud.m" + + "odelarmor.v1.RaiFilterSettings.RaiFilterB\004\342A\001\002\032\247\001\n" + "\tRaiFilter\022D\n" - + "\013filter_type\030\001 \001(\0162)." - + "google.cloud.modelarmor.v1.RaiFilterTypeB\004\342A\001\002\022T\n" - + "\020confidence_level\030\002 \001(\01624.googl" - + "e.cloud.modelarmor.v1.DetectionConfidenceLevelB\004\342A\001\001\"\302\001\n" + + "\013filter_type\030\001 \001(" + + "\0162).google.cloud.modelarmor.v1.RaiFilterTypeB\004\342A\001\002\022T\n" + + "\020confidence_level\030\002 \001(\01624.g" + + "oogle.cloud.modelarmor.v1.DetectionConfidenceLevelB\004\342A\001\001\"\302\001\n" + "\021SdpFilterSettings\022H\n" + "\014basic_config\030\001" + " \001(\0132*.google.cloud.modelarmor.v1.SdpBasicConfigB\004\342A\001\001H\000\022N\n" @@ -464,8 +495,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.modelarmor.v1.SdpAdvancedConfigB\004\342A\001\001H\000B\023\n" + "\021sdp_configuration\"\336\001\n" + "\016SdpBasicConfig\022f\n" - + "\022filter_enforcement\030\003 \001(\0162D.google.cloud.modelarm" - + "or.v1.SdpBasicConfig.SdpBasicConfigEnforcementB\004\342A\001\001\"d\n" + + "\022filter_enforcement\030\003 \001(\0162D.google.cloud.mode" + + "larmor.v1.SdpBasicConfig.SdpBasicConfigEnforcementB\004\342A\001\001\"d\n" + "\031SdpBasicConfigEnforcement\022,\n" + "(SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" @@ -476,8 +507,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031SanitizeUserPromptRequest\0229\n" + "\004name\030\001 \001(\tB+\342A\001\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022D\n" - + "\020user_prompt_data\030\002 \001(\0132$." - + "google.cloud.modelarmor.v1.DataItemB\004\342A\001\002\022k\n" + + "\020user_prompt_data\030\002 \001(" + + "\0132$.google.cloud.modelarmor.v1.DataItemB\004\342A\001\002\022k\n" + "!multi_language_detection_metadata\030\006" + " \001(\0132:.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\004\342A\001\001\022L\n" + "\016streaming_mode\030\007" @@ -489,47 +520,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023model_response_data\030\002" + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\004\342A\001\002\022\031\n" + "\013user_prompt\030\004 \001(\tB\004\342A\001\001\022k\n" - + "!multi_language_detection_metadata\030\007 \001" - + "(\0132:.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\004\342A\001\001\022L\n" + + "!multi_language_detection_metadata\030\007" + + " \001(\0132:.google.cloud.modelarmor.v1.MultiLanguageDetectionMetadataB\004\342A\001\001\022L\n" + "\016streaming_mode\030\010" + " \001(\0162).google.cloud.modelarmor.v1.StreamingModeB\004\342A\001\001H\000\210\001\001B\021\n" + "\017_streaming_mode\"o\n" + "\032SanitizeUserPromptResponse\022Q\n" - + "\023sanitization_result\030\001 \001(\0132..google.cloud." - + "modelarmor.v1.SanitizationResultB\004\342A\001\003\"r\n" + + "\023sanitization_result\030\001 \001(\0132..google.cl" + + "oud.modelarmor.v1.SanitizationResultB\004\342A\001\003\"r\n" + "\035SanitizeModelResponseResponse\022Q\n" - + "\023sanitization_result\030\001" - + " \001(\0132..google.cloud.modelarmor.v1.SanitizationResultB\004\342A\001\003\"\221\003\n" + + "\023sanitization_result\030\001 \001(\0132..google.cloud." + + "modelarmor.v1.SanitizationResultB\004\342A\001\003\"\221\003\n" + "\023FilterVersionConfig\022\034\n" + "\016filter_version\030\001 \001(\tB\004\342A\001\003\022W\n" - + "\024filter_version_alias\030\002 \001(\0162." - + ".google.cloud.modelarmor.v1.FilterVersionAliasB\004\342A\001\003H\000\210\001\001\0222\n" + + "\024filter_version_alias\030\002 \001" + + "(\0162..google.cloud.modelarmor.v1.FilterVersionAliasB\004\342A\001\003H\000\210\001\001\0222\n" + "\014release_date\030\003" + " \001(\0132\021.google.type.DateB\004\342A\001\003H\001\210\001\001\022@\n" + "\032projected_deprecation_date\030\004" + " \001(\0132\021.google.type.DateB\004\342A\001\003H\002\210\001\001\022D\n\r" - + "message_items\030\005 \003(\0132\'" - + ".google.cloud.modelarmor.v1.MessageItemB\004\342A\001\003B\027\n" + + "message_items\030\005 \003" + + "(\0132\'.google.cloud.modelarmor.v1.MessageItemB\004\342A\001\003B\027\n" + "\025_filter_version_aliasB\017\n\r" + "_release_dateB\035\n" + "\033_projected_deprecation_date\"\360\005\n" + "\022SanitizationResult\022N\n" + "\022filter_match_state\030\001" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022_\n" - + "\016filter_results\030\002 \003(\0132A.google.cloud.modelarmor.v1.Sanit" - + "izationResult.FilterResultsEntryB\004\342A\001\003\022M\n" - + "\021invocation_result\030\004" - + " \001(\0162,.google.cloud.modelarmor.v1.InvocationResultB\004\342A\001\003\022h\n" - + "\025sanitization_metadata\030\003 \001(\0132C.google.cl" - + "oud.modelarmor.v1.SanitizationResult.SanitizationMetadataB\004\342A\001\003\032\217\002\n" + + "\016filter_results\030\002 \003(\0132A.google.cloud.modelarmor.v1.S" + + "anitizationResult.FilterResultsEntryB\004\342A\001\003\022M\n" + + "\021invocation_result\030\004 \001(\0162,.google.c" + + "loud.modelarmor.v1.InvocationResultB\004\342A\001\003\022h\n" + + "\025sanitization_metadata\030\003 \001(\0132C.googl" + + "e.cloud.modelarmor.v1.SanitizationResult.SanitizationMetadataB\004\342A\001\003\032\217\002\n" + "\024SanitizationMetadata\022\022\n\n" + "error_code\030\001 \001(\003\022\025\n\r" + "error_message\030\002 \001(\t\022*\n" + "\"ignore_partial_invocation_failures\030\003 \001(\010\022J\n" + "\026stream_chunk_processed\030\004" + " \001(\0132$.google.cloud.modelarmor.v1.DataItemB\004\342A\001\003\022T\n" - + "\025filter_version_config\030\006 \001" - + "(\0132/.google.cloud.modelarmor.v1.FilterVersionConfigB\004\342A\001\003\032^\n" + + "\025filter_version_config\030\006" + + " \001(\0132/.google.cloud.modelarmor.v1.FilterVersionConfigB\004\342A\001\003\032^\n" + "\022FilterResultsEntry\022\013\n" + "\003key\030\001 \001(\t\0227\n" + "\005value\030\002 \001(\0132(.google.cloud.modelarmor.v1.FilterResult:\0028\001\"n\n" @@ -537,12 +568,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017source_language\030\001 \001(\tB\004\342A\001\001\022-\n" + "\037enable_multi_language_detection\030\002 \001(\010B\004\342A\001\001\"\234\004\n" + "\014FilterResult\022H\n" - + "\021rai_filter_result\030\001" - + " \001(\0132+.google.cloud.modelarmor.v1.RaiFilterResultH\000\022H\n" + + "\021rai_filter_result\030\001 \001(\0132+.goog" + + "le.cloud.modelarmor.v1.RaiFilterResultH\000\022H\n" + "\021sdp_filter_result\030\002" + " \001(\0132+.google.cloud.modelarmor.v1.SdpFilterResultH\000\022`\n" - + "\036pi_and_jailbreak_filter_result\030\003 \001(\01326.google." - + "cloud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" + + "\036pi_and_jailbreak_filter_result\030\003 \001(\01326.goo" + + "gle.cloud.modelarmor.v1.PiAndJailbreakFilterResultH\000\022[\n" + "\033malicious_uri_filter_result\030\004" + " \001(\01324.google.cloud.modelarmor.v1.MaliciousUriFilterResultH\000\022Q\n" + "\031csam_filter_filter_result\030\005" @@ -554,34 +585,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" - + "\013match_state\030\003 \001(\0162,.goo" - + "gle.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022f\n" - + "\027rai_filter_type_results\030\004 \003(\0132" - + "E.google.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResultsEntry\032\356\001\n" + + "\013match_state\030\003 \001(\0162," + + ".google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022f\n" + + "\027rai_filter_type_results\030\004 " + + "\003(\0132E.google.cloud.modelarmor.v1.RaiFilterResult.RaiFilterTypeResultsEntry\032\356\001\n" + "\023RaiFilterTypeResult\022>\n" + "\013filter_type\030\001 \001(\0162).google.cloud.modelarmor.v1.RaiFilterType\022N\n" - + "\020confidence_level\030\002 \001(\01624.google.cloud." - + "modelarmor.v1.DetectionConfidenceLevel\022G\n" + + "\020confidence_level\030\002 \001(\01624.google.cl" + + "oud.modelarmor.v1.DetectionConfidenceLevel\022G\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\032|\n" + "\031RaiFilterTypeResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022N\n" - + "\005value\030\002 \001(\0132?.google.cloud.modelarmor.v1.Ra" - + "iFilterResult.RaiFilterTypeResult:\0028\001\"\367\001\n" + + "\005value\030\002 \001(\0132?.google.cloud.modelarmor.v" + + "1.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\367\001\n" + "\017SdpFilterResult\022F\n" - + "\016inspect_result\030\001 \001(" - + "\0132,.google.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" - + "\021deidentify_result\030\002 \001(\0132/.g" - + "oogle.cloud.modelarmor.v1.SdpDeidentifyResultH\000\022D\n\r" - + "redact_result\030\003" - + " \001(\0132+.google.cloud.modelarmor.v1.SdpRedactResultH\000B\010\n" + + "\016inspect_result\030\001" + + " \001(\0132,.google.cloud.modelarmor.v1.SdpInspectResultH\000\022L\n" + + "\021deidentify_result\030\002 \001(\013" + + "2/.google.cloud.modelarmor.v1.SdpDeidentifyResultH\000\022D\n\r" + + "redact_result\030\003 \001(\0132+.goo" + + "gle.cloud.modelarmor.v1.SdpRedactResultH\000B\010\n" + "\006result\"\340\002\n" + "\020SdpInspectResult\022O\n" + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" - + "\013match_state\030\003 \001(\0162,.goo" - + "gle.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\0228\n" + + "\013match_state\030\003 \001(\0162," + + ".google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\0228\n" + "\010findings\030\004 \003(\0132&.google.cloud.modelarmor.v1.SdpFinding\022\032\n" + "\022findings_truncated\030\005 \001(\010\022\034\n" + "\024extracted_image_text\030\006 \001(\t\"f\n" @@ -590,9 +621,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tbyte_item\030\002 \001(\0132(.google.cloud.modelarmor.v1.ByteDataItemH\000B\013\n" + "\tdata_item\"\301\002\n" + "\014ByteDataItem\022S\n" - + "\016byte_data_type\030\001 \001(\01625.google.clo" - + "ud.modelarmor.v1.ByteDataItem.ByteItemTypeB\004\342A\001\002\022\027\n" - + "\tbyte_data\030\002 \001(\014B\004\342A\001\002\022\030\n\n" + + "\016byte_data_type\030\001 \001(\01625.google" + + ".cloud.modelarmor.v1.ByteDataItem.ByteItemTypeB\004\342A\001\002\022\027\n" + + "\tbyte_data\030\002 \001(\014B\004\342A\001\002\022\030\n" + + "\n" + "file_label\030\003 \001(\tB\004\342A\001\001\"\250\001\n" + "\014ByteItemType\022\036\n" + "\032BYTE_ITEM_TYPE_UNSPECIFIED\020\000\022\022\n" @@ -605,8 +637,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003CSV\020\007\022\t\n" + "\005IMAGE\020\010\"\322\002\n" + "\023SdpDeidentifyResult\022O\n" - + "\017execution_state\030\001 \001(\0162" - + "0.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + + "\017execution_state\030\001 " + + "\001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\0222\n" @@ -614,67 +646,92 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021transformed_bytes\030\005 \001(\003\022\022\n\n" + "info_types\030\006 \003(\t\"\301\001\n" + "\027SdpImageFindingLocation\022Z\n" - + "\016bounding_boxes\030\001 \003(\0132B.google.cloud.m" - + "odelarmor.v1.SdpImageFindingLocation.SdpBoundingBox\032J\n" + + "\016bounding_boxes\030\001 \003(\0132B.google.clo" + + "ud.modelarmor.v1.SdpImageFindingLocation.SdpBoundingBox\032J\n" + "\016SdpBoundingBox\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\"\217\001\n" + "\022SdpContentLocation\022U\n" - + "\026image_finding_location\030\002" - + " \001(\01323.google.cloud.modelarmor.v1.SdpImageFindingLocationH\000\022\026\n" + + "\026image_finding_location\030\002 \001(\01323.google.clou" + + "d.modelarmor.v1.SdpImageFindingLocationH\000\022\026\n" + "\016container_name\030\001 \001(\tB\n\n" + "\010location\"\217\003\n\n" + "SdpFinding\022\021\n" + "\tinfo_type\030\001 \001(\t\022D\n\n" + "likelihood\030\002 \001(\01620.google.cloud.modelarmor.v1.SdpFindingLikelihood\022K\n" - + "\010location\030\003 \001(\01329.go" - + "ogle.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation\032\332\001\n" - + "\022SdpFindingLocation\0229\n" - + "\n" + + "\010location\030\003 \001(\0132" + + "9.google.cloud.modelarmor.v1.SdpFinding.SdpFindingLocation\032\332\001\n" + + "\022SdpFindingLocation\0229\n\n" + "byte_range\030\001 \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\022>\n" + "\017codepoint_range\030\002 \001(\0132%.google.cloud.modelarmor.v1.RangeInfo\022I\n" - + "\021content_locations\030\003" - + " \003(\0132..google.cloud.modelarmor.v1.SdpContentLocation\"\355\002\n" + + "\021content_locations\030\003 \003(\0132..google" + + ".cloud.modelarmor.v1.SdpContentLocation\"\355\002\n" + "\017SdpRedactResult\022O\n" - + "\017execution_state\030\001 \001(\016" - + "20.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022D\n\r" - + "message_items\030\002 \003(\0132" - + "\'.google.cloud.modelarmor.v1.MessageItemB\004\342A\001\003\022G\n" - + "\013match_state\030\003 \001(\0162,.google.clo" - + "ud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022\034\n" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022D\n\r" + + "message_items\030\002 " + + "\003(\0132\'.google.cloud.modelarmor.v1.MessageItemB\004\342A\001\003\022G\n" + + "\013match_state\030\003 \001(\0162,.google" + + ".cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022\034\n" + "\016redacted_image\030\004 \001(\014B\004\342A\001\003\022>\n" + "\010findings\030\005" + " \003(\0132&.google.cloud.modelarmor.v1.SdpFindingB\004\342A\001\003\022\034\n" - + "\024extracted_image_text\030\006 \001(\t\"\306\002\n" + + "\024extracted_image_text\030\006 \001(\t\"\037\n" + + "\010WordList\022\023\n" + + "\005words\030\001 \003(\tB\004\342A\001\002\"Q\n\n" + + "Dictionary\0229\n" + + "\tword_list\030\001 \001(\0132$.google.cloud.modelarmor.v1.WordListH\000B\010\n" + + "\006source\"\036\n" + + "\005Regex\022\025\n" + + "\007pattern\030\001 \001(\tB\004\342A\001\002\"\352\001\n\r" + + "ExclusionRule\022<\n\n" + + "dictionary\030\001 \001(\0132&.google.cloud.modelarmor.v1.DictionaryH\000\0222\n" + + "\005regex\030\002 \001(\0132!.google.cloud.modelarmor.v1.RegexH\000\022L\n" + + "\016matching_scope\030\003 \001(\0162).google" + + ".cloud.modelarmor.v1.MatchingScopeB\004\342A\001\001H\001\210\001\001B\006\n" + + "\004typeB\021\n" + + "\017_matching_scope\"Y\n\n" + + "FilterRule\022C\n" + + "\016exclusion_rule\030\001" + + " \001(\0132).google.cloud.modelarmor.v1.ExclusionRuleH\000B\006\n" + + "\004type\"\224\001\n\r" + + "FilterRuleSet\022F\n" + + "\014filter_types\030\001 " + + "\003(\0162*.google.cloud.modelarmor.v1.RuleFilterTypeB\004\342A\001\002\022;\n" + + "\005rules\030\002" + + " \003(\0132&.google.cloud.modelarmor.v1.FilterRuleB\004\342A\001\002\"X\n" + + "\022FilterRuleSettings\022B\n" + + "\trule_sets\030\001 \003(\0132).go" + + "ogle.cloud.modelarmor.v1.FilterRuleSetB\004\342A\001\001\"\306\002\n" + "\032PiAndJailbreakFilterResult\022O\n" + "\017execution_state\030\001" + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" - + "\013match_state\030\003 \001(\016" - + "2,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022N\n" - + "\020confidence_level\030\005 \001(\01624" - + ".google.cloud.modelarmor.v1.DetectionConfidenceLevel\"\311\003\n" + + "\013match_state\030\003 \001(" + + "\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022N\n" + + "\020confidence_level\030\005 \001(\0162" + + "4.google.cloud.modelarmor.v1.DetectionConfidenceLevel\"\311\003\n" + "\030MaliciousUriFilterResult\022O\n" - + "\017execution_state\030\001 \001(\01620.google.clou" - + "d.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620.google.clo" + + "ud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022q\n" - + "\033malicious_uri_matched_items\030\004 \003(\0132L.google.cloud.modelarm" - + "or.v1.MaliciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + + "\033malicious_uri_matched_items\030\004 \003(\0132L.google.cloud.modelar" + + "mor.v1.MaliciousUriFilterResult.MaliciousUriMatchedItem\032`\n" + "\027MaliciousUriMatchedItem\022\013\n" + "\003uri\030\001 \001(\t\0228\n" + "\tlocations\030\002 \003(\0132%.google.cloud.modelarmor.v1.RangeInfo\"\242\004\n" + "\025VirusScanFilterResult\022O\n" - + "\017execution_state\030\001 " - + "\001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + + "\017execution_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\022b\n" - + "\024scanned_content_type\030\004 \001(\0162D.google.clou" - + "d.modelarmor.v1.VirusScanFilterResult.ScannedContentType\022\031\n" + + "\024scanned_content_type\030\004 \001(\0162D.google.clo" + + "ud.modelarmor.v1.VirusScanFilterResult.ScannedContentType\022\031\n" + "\014scanned_size\030\005 \001(\003H\000\210\001\001\022>\n\r" + "virus_details\030\006 \003(\0132\'.google.cloud.modelarmor.v1.VirusDetail\"_\n" + "\022ScannedContentType\022$\n" @@ -696,14 +753,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033POTENTIALLY_HARMFUL_CONTENT\020\004\022 \n" + "\034POTENTIALLY_UNWANTED_CONTENT\020\005\"\354\001\n" + "\020CsamFilterResult\022O\n" - + "\017execution_state\030\001 \001(\01620.goog" - + "le.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + + "\017execution_state\030\001 \001(\01620.goo" + + "gle.cloud.modelarmor.v1.FilterExecutionStateB\004\342A\001\003\022>\n\r" + "message_items\030\002 \003(\0132\'.google.cloud.modelarmor.v1.MessageItem\022G\n" + "\013match_state\030\003" + " \001(\0162,.google.cloud.modelarmor.v1.FilterMatchStateB\004\342A\001\003\"\270\001\n" + "\013MessageItem\022I\n" - + "\014message_type\030\001" - + " \001(\01623.google.cloud.modelarmor.v1.MessageItem.MessageType\022\017\n" + + "\014message_type\030\001 \001(\01623.google.cloud" + + ".modelarmor.v1.MessageItem.MessageType\022\017\n" + "\007message\030\002 \001(\t\"M\n" + "\013MessageType\022\034\n" + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\010\n" @@ -736,7 +793,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004HIGH\020\003*\212\001\n" + "\024SdpFindingLikelihood\022&\n" + "\"SDP_FINDING_LIKELIHOOD_UNSPECIFIED\020\000\022\021\n\r" - + "VERY_UNLIKELY\020\001\022\014\n" + + "V", + "ERY_UNLIKELY\020\001\022\014\n" + "\010UNLIKELY\020\002\022\014\n" + "\010POSSIBLE\020\003\022\n\n" + "\006LIKELY\020\004\022\017\n" @@ -759,71 +817,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033FILTER_VERSION_ALIAS_STABLE\020\001\022\037\n" + "\033FILTER_VERSION_ALIAS_LATEST\020\002\022\037\n" + "\033FILTER_VERSION_ALIAS_LEGACY\020\003\022 \n" - + "\034FILTER_VERSION_ALIAS_RETIRED\020\0042\361\022\n\n" + + "\034FILTER_VERSION_ALIAS_RETIRED\020\004*p\n\r" + + "MatchingScope\022\036\n" + + "\032MATCHING_SCOPE_UNSPECIFIED\020\000\022\035\n" + + "\031MATCHING_SCOPE_FULL_MATCH\020\001\022 \n" + + "\034MATCHING_SCOPE_PARTIAL_MATCH\020\002*j\n" + + "\016RuleFilterType\022 \n" + + "\034RULE_FILTER_TYPE_UNSPECIFIED\020\000\022\"\n" + + "\036PROMPT_INJECTION_AND_JAILBREAK\020\001\022\022\n" + + "\016RESPONSIBLE_AI\020\0022\361\022\n\n" + "ModelArmor\022\264\001\n\r" - + "ListTemplates\0220.google.cloud.modelarmor.v1.ListTemplatesRequest\0321.google.cloud" - + ".modelarmor.v1.ListTemplatesResponse\">\332A" - + "\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/templates\022\241\001\n" - + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTemplateReq", - "uest\032$.google.cloud.modelarmor.v1.Templa" - + "te\"<\332A\004name\202\323\344\223\002/\022-/v1/{name=projects/*/" - + "locations/*/templates/*}\022\310\001\n\016CreateTempl" - + "ate\0221.google.cloud.modelarmor.v1.CreateT" - + "emplateRequest\032$.google.cloud.modelarmor" - + ".v1.Template\"]\332A\033parent,template,templat" - + "e_id\202\323\344\223\0029\"-/v1/{parent=projects/*/locat" - + "ions/*}/templates:\010template\022\312\001\n\016UpdateTe" - + "mplate\0221.google.cloud.modelarmor.v1.Upda" - + "teTemplateRequest\032$.google.cloud.modelar" - + "mor.v1.Template\"_\332A\024template,update_mask" - + "\202\323\344\223\002B26/v1/{template.name=projects/*/lo" - + "cations/*/templates/*}:\010template\022\231\001\n\016Del" - + "eteTemplate\0221.google.cloud.modelarmor.v1" - + ".DeleteTemplateRequest\032\026.google.protobuf" - + ".Empty\"<\332A\004name\202\323\344\223\002/*-/v1/{name=project" - + "s/*/locations/*/templates/*}\022\230\002\n\017GetFloo" - + "rSetting\0222.google.cloud.modelarmor.v1.Ge" - + "tFloorSettingRequest\032(.google.cloud.mode" - + "larmor.v1.FloorSetting\"\246\001\332A\004name\202\323\344\223\002\230\001\022" - + "./v1/{name=projects/*/locations/*/floorS" - + "etting}Z/\022-/v1/{name=folders/*/locations" - + "/*/floorSetting}Z5\0223/v1/{name=organizati" - + "ons/*/locations/*/floorSetting}\022\212\003\n\022Upda" - + "teFloorSetting\0225.google.cloud.modelarmor" - + ".v1.UpdateFloorSettingRequest\032(.google.c" - + "loud.modelarmor.v1.FloorSetting\"\222\002\332A\031flo" - + "or_setting,update_mask\202\323\344\223\002\357\0012cloud.google.com/go/modela" - + "rmor/apiv1/modelarmorpb;modelarmorpb\252\002\032G" - + "oogle.Cloud.ModelArmor.V1\312\002\032Google\\Cloud" - + "\\ModelArmor\\V1b\006proto3" + + "ListTemplates\0220.google.cloud.modelarmor.v1.ListTemplate" + + "sRequest\0321.google.cloud.modelarmor.v1.Li" + + "stTemplatesResponse\">\332A\006parent\202\323\344\223\002/\022-/v" + + "1/{parent=projects/*/locations/*}/templates\022\241\001\n" + + "\013GetTemplate\022..google.cloud.modelarmor.v1.GetTemplateRequest\032$.google.clo" + + "ud.modelarmor.v1.Template\"<\332A\004name\202\323\344\223\002/" + + "\022-/v1/{name=projects/*/locations/*/templates/*}\022\310\001\n" + + "\016CreateTemplate\0221.google.cloud.modelarmor.v1.CreateTemplateRequest\032$." + + "google.cloud.modelarmor.v1.Template\"]\332A\033" + + "parent,template,template_id\202\323\344\223\0029\"-/v1/{" + + "parent=projects/*/locations/*}/templates:\010template\022\312\001\n" + + "\016UpdateTemplate\0221.google.cloud.modelarmor.v1.UpdateTemplateRequest" + + "\032$.google.cloud.modelarmor.v1.Template\"_" + + "\332A\024template,update_mask\202\323\344\223\002B26/v1/{temp" + + "late.name=projects/*/locations/*/templates/*}:\010template\022\231\001\n" + + "\016DeleteTemplate\0221.google.cloud.modelarmor.v1.DeleteTemplateRe" + + "quest\032\026.google.protobuf.Empty\"<\332A\004name\202\323" + + "\344\223\002/*-/v1/{name=projects/*/locations/*/templates/*}\022\230\002\n" + + "\017GetFloorSetting\0222.google.cloud.modelarmor.v1.GetFloorSettingRequ" + + "est\032(.google.cloud.modelarmor.v1.FloorSe" + + "tting\"\246\001\332A\004name\202\323\344\223\002\230\001\022./v1/{name=projec" + + "ts/*/locations/*/floorSetting}Z/\022-/v1/{name=folders/*/locations/*/floorSetting}Z" + + "5\0223/v1/{name=organizations/*/locations/*/floorSetting}\022\212\003\n" + + "\022UpdateFloorSetting\0225.google.cloud.modelarmor.v1.UpdateFloorSe" + + "ttingRequest\032(.google.cloud.modelarmor.v" + + "1.FloorSetting\"\222\002\332A\031floor_setting,update" + + "_mask\202\323\344\223\002\357\0012clo" + + "ud.google.com/go/modelarmor/apiv1/modela" + + "rmorpb;modelarmorpb\252\002\032Google.Cloud.Model" + + "Armor.V1\312\002\032Google\\Cloud\\ModelArmor\\V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1014,6 +1065,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SdpSettings", "PiAndJailbreakFilterSettings", "MaliciousUriFilterSettings", + "FilterRuleSettings", }); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterSettings_descriptor = getDescriptor().getMessageType(14); @@ -1297,8 +1349,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Findings", "ExtractedImageText", }); - internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor = + internal_static_google_cloud_modelarmor_v1_WordList_descriptor = getDescriptor().getMessageType(38); + internal_static_google_cloud_modelarmor_v1_WordList_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_WordList_descriptor, + new java.lang.String[] { + "Words", + }); + internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor = + getDescriptor().getMessageType(39); + internal_static_google_cloud_modelarmor_v1_Dictionary_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_Dictionary_descriptor, + new java.lang.String[] { + "WordList", "Source", + }); + internal_static_google_cloud_modelarmor_v1_Regex_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_modelarmor_v1_Regex_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_Regex_descriptor, + new java.lang.String[] { + "Pattern", + }); + internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor = + getDescriptor().getMessageType(41); + internal_static_google_cloud_modelarmor_v1_ExclusionRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_ExclusionRule_descriptor, + new java.lang.String[] { + "Dictionary", "Regex", "MatchingScope", "Type", + }); + internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_modelarmor_v1_FilterRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_FilterRule_descriptor, + new java.lang.String[] { + "ExclusionRule", "Type", + }); + internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor = + getDescriptor().getMessageType(43); + internal_static_google_cloud_modelarmor_v1_FilterRuleSet_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_FilterRuleSet_descriptor, + new java.lang.String[] { + "FilterTypes", "Rules", + }); + internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor = + getDescriptor().getMessageType(44); + internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1_FilterRuleSettings_descriptor, + new java.lang.String[] { + "RuleSets", + }); + internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor = + getDescriptor().getMessageType(45); internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_PiAndJailbreakFilterResult_descriptor, @@ -1306,7 +1414,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(46); internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MaliciousUriFilterResult_descriptor, @@ -1323,7 +1431,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Locations", }); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(47); internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusScanFilterResult_descriptor, @@ -1336,7 +1444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VirusDetails", }); internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(48); internal_static_google_cloud_modelarmor_v1_VirusDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_VirusDetail_descriptor, @@ -1344,7 +1452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vendor", "Names", "ThreatType", }); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(49); internal_static_google_cloud_modelarmor_v1_CsamFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_CsamFilterResult_descriptor, @@ -1352,7 +1460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", }); internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(50); internal_static_google_cloud_modelarmor_v1_MessageItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_MessageItem_descriptor, @@ -1360,7 +1468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageType", "Message", }); internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(51); internal_static_google_cloud_modelarmor_v1_RangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1_RangeInfo_descriptor, diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringList.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordList.java similarity index 51% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringList.java rename to java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordList.java index 0acbeb3b8100..e6689aac3f0e 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/StringList.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordList.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/modelarmor/v1/service.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.modelarmor.v1; /** * * *
        - * StringList is a wrapper for a repeated list of strings.
        + * Message defining a list of words or phrases.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.StringList} + * Protobuf type {@code google.cloud.modelarmor.v1.WordList} */ @com.google.protobuf.Generated -public final class StringList extends com.google.protobuf.GeneratedMessage +public final class WordList extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.StringList) - StringListOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1.WordList) + WordListOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,99 +43,107 @@ public final class StringList extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "StringList"); + "WordList"); } - // Use StringList.newBuilder() to construct. - private StringList(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use WordList.newBuilder() to construct. + private WordList(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private StringList() { - list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + private WordList() { + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StringList_descriptor; + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_WordList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StringList_fieldAccessorTable + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_WordList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.StringList.class, - com.google.cloud.geminidataanalytics.v1beta.StringList.Builder.class); + com.google.cloud.modelarmor.v1.WordList.class, + com.google.cloud.modelarmor.v1.WordList.Builder.class); } - public static final int LIST_FIELD_NUMBER = 1; + public static final int WORDS_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private com.google.protobuf.LazyStringArrayList list_ = + private com.google.protobuf.LazyStringArrayList words_ = com.google.protobuf.LazyStringArrayList.emptyList(); /** * * *
        -   * The list of strings.
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
            * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return A list containing the list. + * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList getListList() { - return list_; + public com.google.protobuf.ProtocolStringList getWordsList() { + return words_; } /** * * *
        -   * The list of strings.
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
            * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The count of list. + * @return The count of words. */ - public int getListCount() { - return list_.size(); + public int getWordsCount() { + return words_.size(); } /** * * *
        -   * The list of strings.
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
            * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. - * @return The list at the given index. + * @return The words at the given index. */ - public java.lang.String getList(int index) { - return list_.get(index); + public java.lang.String getWords(int index) { + return words_.get(index); } /** * * *
        -   * The list of strings.
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
            * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. - * @return The bytes of the list at the given index. + * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString getListBytes(int index) { - return list_.getByteString(index); + public com.google.protobuf.ByteString getWordsBytes(int index) { + return words_.getByteString(index); } private byte memoizedIsInitialized = -1; @@ -152,8 +160,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - for (int i = 0; i < list_.size(); i++) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, list_.getRaw(i)); + for (int i = 0; i < words_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, words_.getRaw(i)); } getUnknownFields().writeTo(output); } @@ -166,11 +174,11 @@ public int getSerializedSize() { size = 0; { int dataSize = 0; - for (int i = 0; i < list_.size(); i++) { - dataSize += computeStringSizeNoTag(list_.getRaw(i)); + for (int i = 0; i < words_.size(); i++) { + dataSize += computeStringSizeNoTag(words_.getRaw(i)); } size += dataSize; - size += 1 * getListList().size(); + size += 1 * getWordsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -182,13 +190,12 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.StringList)) { + if (!(obj instanceof com.google.cloud.modelarmor.v1.WordList)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.StringList other = - (com.google.cloud.geminidataanalytics.v1beta.StringList) obj; + com.google.cloud.modelarmor.v1.WordList other = (com.google.cloud.modelarmor.v1.WordList) obj; - if (!getListList().equals(other.getListList())) return false; + if (!getWordsList().equals(other.getWordsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -200,80 +207,80 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (getListCount() > 0) { - hash = (37 * hash) + LIST_FIELD_NUMBER; - hash = (53 * hash) + getListList().hashCode(); + if (getWordsCount() > 0) { + hash = (37 * hash) + WORDS_FIELD_NUMBER; + hash = (53 * hash) + getWordsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.modelarmor.v1.WordList parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList 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.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( 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.geminidataanalytics.v1beta.StringList parseFrom(byte[] data) + public static com.google.cloud.modelarmor.v1.WordList parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.cloud.modelarmor.v1.WordList parseFrom(java.io.InputStream input) + throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseDelimitedFrom( + public static com.google.cloud.modelarmor.v1.WordList parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseDelimitedFrom( + public static com.google.cloud.modelarmor.v1.WordList parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList parseFrom( + public static com.google.cloud.modelarmor.v1.WordList parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -290,8 +297,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.StringList prototype) { + public static Builder newBuilder(com.google.cloud.modelarmor.v1.WordList prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -310,31 +316,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * StringList is a wrapper for a repeated list of strings.
        +   * Message defining a list of words or phrases.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.StringList} + * Protobuf type {@code google.cloud.modelarmor.v1.WordList} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.StringList) - com.google.cloud.geminidataanalytics.v1beta.StringListOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1.WordList) + com.google.cloud.modelarmor.v1.WordListOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StringList_descriptor; + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_WordList_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StringList_fieldAccessorTable + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_WordList_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.StringList.class, - com.google.cloud.geminidataanalytics.v1beta.StringList.Builder.class); + com.google.cloud.modelarmor.v1.WordList.class, + com.google.cloud.modelarmor.v1.WordList.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.StringList.newBuilder() + // Construct using com.google.cloud.modelarmor.v1.WordList.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -345,24 +351,24 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_StringList_descriptor; + return com.google.cloud.modelarmor.v1.V1mainProto + .internal_static_google_cloud_modelarmor_v1_WordList_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.StringList.getDefaultInstance(); + public com.google.cloud.modelarmor.v1.WordList getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1.WordList.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList build() { - com.google.cloud.geminidataanalytics.v1beta.StringList result = buildPartial(); + public com.google.cloud.modelarmor.v1.WordList build() { + com.google.cloud.modelarmor.v1.WordList result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -370,9 +376,9 @@ public com.google.cloud.geminidataanalytics.v1beta.StringList build() { } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.StringList buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.StringList result = - new com.google.cloud.geminidataanalytics.v1beta.StringList(this); + public com.google.cloud.modelarmor.v1.WordList buildPartial() { + com.google.cloud.modelarmor.v1.WordList result = + new com.google.cloud.modelarmor.v1.WordList(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -380,34 +386,33 @@ public com.google.cloud.geminidataanalytics.v1beta.StringList buildPartial() { return result; } - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.StringList result) { + private void buildPartial0(com.google.cloud.modelarmor.v1.WordList result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - list_.makeImmutable(); - result.list_ = list_; + words_.makeImmutable(); + result.words_ = words_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.StringList) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.StringList) other); + if (other instanceof com.google.cloud.modelarmor.v1.WordList) { + return mergeFrom((com.google.cloud.modelarmor.v1.WordList) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.StringList other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.StringList.getDefaultInstance()) - return this; - if (!other.list_.isEmpty()) { - if (list_.isEmpty()) { - list_ = other.list_; + public Builder mergeFrom(com.google.cloud.modelarmor.v1.WordList other) { + if (other == com.google.cloud.modelarmor.v1.WordList.getDefaultInstance()) return this; + if (!other.words_.isEmpty()) { + if (words_.isEmpty()) { + words_ = other.words_; bitField0_ |= 0x00000001; } else { - ensureListIsMutable(); - list_.addAll(other.list_); + ensureWordsIsMutable(); + words_.addAll(other.words_); } onChanged(); } @@ -440,8 +445,8 @@ public Builder mergeFrom( case 10: { java.lang.String s = input.readStringRequireUtf8(); - ensureListIsMutable(); - list_.add(s); + ensureWordsIsMutable(); + words_.add(s); break; } // case 10 default: @@ -463,12 +468,12 @@ public Builder mergeFrom( private int bitField0_; - private com.google.protobuf.LazyStringArrayList list_ = + private com.google.protobuf.LazyStringArrayList words_ = com.google.protobuf.LazyStringArrayList.emptyList(); - private void ensureListIsMutable() { - if (!list_.isModifiable()) { - list_ = new com.google.protobuf.LazyStringArrayList(list_); + private void ensureWordsIsMutable() { + if (!words_.isModifiable()) { + words_ = new com.google.protobuf.LazyStringArrayList(words_); } bitField0_ |= 0x00000001; } @@ -477,84 +482,94 @@ private void ensureListIsMutable() { * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return A list containing the list. + * @return A list containing the words. */ - public com.google.protobuf.ProtocolStringList getListList() { - list_.makeImmutable(); - return list_; + public com.google.protobuf.ProtocolStringList getWordsList() { + words_.makeImmutable(); + return words_; } /** * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @return The count of list. + * @return The count of words. */ - public int getListCount() { - return list_.size(); + public int getWordsCount() { + return words_.size(); } /** * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the element to return. - * @return The list at the given index. + * @return The words at the given index. */ - public java.lang.String getList(int index) { - return list_.get(index); + public java.lang.String getWords(int index) { + return words_.get(index); } /** * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index of the value to return. - * @return The bytes of the list at the given index. + * @return The bytes of the words at the given index. */ - public com.google.protobuf.ByteString getListBytes(int index) { - return list_.getByteString(index); + public com.google.protobuf.ByteString getWordsBytes(int index) { + return words_.getByteString(index); } /** * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @param index The index to set the value at. - * @param value The list to set. + * @param value The words to set. * @return This builder for chaining. */ - public Builder setList(int index, java.lang.String value) { + public Builder setWords(int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.set(index, value); + ensureWordsIsMutable(); + words_.set(index, value); bitField0_ |= 0x00000001; onChanged(); return this; @@ -564,20 +579,22 @@ public Builder setList(int index, java.lang.String value) { * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The list to add. + * @param value The words to add. * @return This builder for chaining. */ - public Builder addList(java.lang.String value) { + public Builder addWords(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - ensureListIsMutable(); - list_.add(value); + ensureWordsIsMutable(); + words_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; @@ -587,17 +604,19 @@ public Builder addList(java.lang.String value) { * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param values The list to add. + * @param values The words to add. * @return This builder for chaining. */ - public Builder addAllList(java.lang.Iterable values) { - ensureListIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll(values, list_); + public Builder addAllWords(java.lang.Iterable values) { + ensureWordsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, words_); bitField0_ |= 0x00000001; onChanged(); return this; @@ -607,15 +626,17 @@ public Builder addAllList(java.lang.Iterable values) { * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ - public Builder clearList() { - list_ = com.google.protobuf.LazyStringArrayList.emptyList(); + public Builder clearWords() { + words_ = com.google.protobuf.LazyStringArrayList.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); ; onChanged(); @@ -626,44 +647,46 @@ public Builder clearList() { * * *
        -     * The list of strings.
        +     * Required. Words or phrases defining the dictionary. The dictionary must
        +     * contain at least one phrase and every phrase must contain at least two
        +     * characters that are letters or digits.
              * 
        * - * repeated string list = 1; + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; * - * @param value The bytes of the list to add. + * @param value The bytes of the words to add. * @return This builder for chaining. */ - public Builder addListBytes(com.google.protobuf.ByteString value) { + public Builder addWordsBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - ensureListIsMutable(); - list_.add(value); + ensureWordsIsMutable(); + words_.add(value); bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.StringList) + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1.WordList) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.StringList) - private static final com.google.cloud.geminidataanalytics.v1beta.StringList DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1.WordList) + private static final com.google.cloud.modelarmor.v1.WordList DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.StringList(); + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1.WordList(); } - public static com.google.cloud.geminidataanalytics.v1beta.StringList getDefaultInstance() { + public static com.google.cloud.modelarmor.v1.WordList 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 StringList parsePartialFrom( + public WordList parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -682,17 +705,17 @@ public StringList 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.geminidataanalytics.v1beta.StringList getDefaultInstanceForType() { + public com.google.cloud.modelarmor.v1.WordList getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordListOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordListOrBuilder.java new file mode 100644 index 000000000000..cafc2b126014 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/java/com/google/cloud/modelarmor/v1/WordListOrBuilder.java @@ -0,0 +1,90 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1/service.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.modelarmor.v1; + +@com.google.protobuf.Generated +public interface WordListOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1.WordList) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
        +   * 
        + * + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the words. + */ + java.util.List getWordsList(); + + /** + * + * + *
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
        +   * 
        + * + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of words. + */ + int getWordsCount(); + + /** + * + * + *
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
        +   * 
        + * + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The words at the given index. + */ + java.lang.String getWords(int index); + + /** + * + * + *
        +   * Required. Words or phrases defining the dictionary. The dictionary must
        +   * contain at least one phrase and every phrase must contain at least two
        +   * characters that are letters or digits.
        +   * 
        + * + * repeated string words = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the words at the given index. + */ + com.google.protobuf.ByteString getWordsBytes(int index); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto index d891ac9ac9fa..a684b055817b 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1/src/main/proto/google/cloud/modelarmor/v1/service.proto @@ -249,8 +249,8 @@ enum StreamingMode { STREAMING_MODE_REALTIME = 2; } -// This enum is used in the TemplateMetadata message to indicate the modality -// supported for sanitize API calls. +// This enum is used in the TemplateMetadata and FloorSettingMetadata messages +// to indicate the modality supported for sanitize API calls. enum Modality { // Unspecified modality. If specified, all modalities will be sanitized. MODALITY_UNSPECIFIED = 0; @@ -273,28 +273,62 @@ enum FilterVersionAlias { // The default value. If used, it will resolve to the `STABLE` alias. FILTER_VERSION_ALIAS_UNSPECIFIED = 0; - // The `STABLE` alias points to the most recent stable model version. + // `STABLE` alias points to the most recent stable model version. // Using this alias means no code changes are required when a new model // becomes the stable version. FILTER_VERSION_ALIAS_STABLE = 1; - // The `LATEST` alias points to the newest model version available. + // `LATEST` alias points to the newest model version available. // This version is subject to frequent revisions and offers SLO guarantees // but does not assure stability, providing the most current security // protections. FILTER_VERSION_ALIAS_LATEST = 2; - // The `LEGACY` alias could be used for sanitization operations for a + // `LEGACY` alias could be used for sanitization operations for a // transition period. New templates cannot be created with this version. FILTER_VERSION_ALIAS_LEGACY = 3; - // The `RETIRED` alias could be used for versions that are no longer available + // `RETIRED` alias could be used for versions that are no longer available // to be used. While new templates cannot be created with this alias, any // existing template or request using `RETIRED` version will fall back to // the current `STABLE` version for sanitization operations. FILTER_VERSION_ALIAS_RETIRED = 4; } +// Defines the scope of the match for a rule. +// +// Additional values may be added to this enum in the future. +enum MatchingScope { + // Unspecified matching scope. + MATCHING_SCOPE_UNSPECIFIED = 0; + + // Full match. + // + // - Dictionary: the dictionary match covers the entire input content + // - Regular expression: the regular expression pattern matches the entire + // input content + MATCHING_SCOPE_FULL_MATCH = 1; + + // Partial match. + // + // - Dictionary: at least one of the tokens in the input content matches + // - Regular expression: substring of the input content matches the regular + // expression pattern + MATCHING_SCOPE_PARTIAL_MATCH = 2; +} + +// Model Armor Filter types supported for rules. +enum RuleFilterType { + // Unspecified filter type. + RULE_FILTER_TYPE_UNSPECIFIED = 0; + + // Prompt injection and jailbreak filter. + PROMPT_INJECTION_AND_JAILBREAK = 1; + + // Responsible AI filter. + RESPONSIBLE_AI = 2; +} + // Represents the configuration for selecting a Filter Version. // Allows customers to choose to use either a specific version or a predefined // alias. @@ -395,7 +429,7 @@ message Template { [(google.api.field_behavior) = OPTIONAL]; // Optional. Specifies the modalities to scan. - // If empty, only text modality will be scanned. + // If not specified or empty, only text modality will be scanned. repeated Modality modalities = 11 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates whether the template is subject to data residency @@ -503,7 +537,7 @@ message FloorSetting { // Message describing MCP Server Floor Setting. message McpServerFloorSetting { - // Enforcement type for Model Armor filters. + // enforcement type for Model Armor filters. oneof enforcement_type { // Optional. If true, Model Armor filters will be run in inspect only mode. // No action will be taken on the request. @@ -721,6 +755,12 @@ message FilterConfig { // Optional. Malicious URI filter settings. MaliciousUriFilterSettings malicious_uri_filter_settings = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Settings for customizing filter rules. + // Note: This field is not supported in FloorSetting and Streaming + // Sanitization APIs. + FilterRuleSettings filter_rule_settings = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Prompt injection and Jailbreak Filter settings. @@ -1078,9 +1118,9 @@ message RaiFilterResult { // equal to or higher than the confidence level defined in configuration. FilterMatchState match_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - // The map of RAI filter results where key is RAI filter type - either of - // "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence", - // "sexually_suggestive". + // The map of RAI filter results where the key is the RAI filter type and the + // value is the RAI filter's result. Allowed keys are "sexually_explicit", + // "hate_speech", "harassment", and "dangerous". map rai_filter_type_results = 4; } @@ -1323,6 +1363,92 @@ message SdpRedactResult { string extracted_image_text = 6; } +// Message defining a list of words or phrases. +message WordList { + // Required. Words or phrases defining the dictionary. The dictionary must + // contain at least one phrase and every phrase must contain at least two + // characters that are letters or digits. + repeated string words = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Message defining a custom dictionary of words or phrases for syntactic match. +// +// Dictionary words are case-insensitive and all characters other than letters +// and digits in the unicode [Basic Multilingual +// Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane) +// will be replaced with whitespace when scanning for matches. For example, the +// dictionary phrase `Sam Johnson` will match all three phrases `sam johnson`, +// `Sam, Johnson`, and `Sam (Johnson)`. Additionally, the characters +// surrounding any match must be of a different type than the adjacent +// characters within the word, so letters must be next to non-letters and +// digits must be next to non-digits. For example, the dictionary word `jen` +// will match the first three letters of the text `jen123` but will return no +// matches for `jennifer`. +// +// Dictionary words containing a large number of characters that are not +// letters or digits may result in unexpected matches because such characters +// are treated as whitespace. For details about the size limits of dictionaries, +// see [Quotas and +// limits](https://docs.cloud.google.com/model-armor/quotas). +message Dictionary { + // Source of the dictionary. + oneof source { + // Message defining a list of words or phrases. + WordList word_list = 1; + } +} + +// Message defining a custom regular expression. +message Regex { + // Required. The regular expression pattern. + string pattern = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// The rule that specifies conditions when filter detections are excluded from +// results. +message ExclusionRule { + // Exclusion rule types. + oneof type { + // Dictionary which defines the rule. + Dictionary dictionary = 1; + + // Regular expression which defines the rule. + Regex regex = 2; + } + + // Optional. Specifies the scope of the input that should be matched against + // the exclusion rule. If unspecified, defaults to + // MATCHING_SCOPE_PARTIAL_MATCH. + optional MatchingScope matching_scope = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + +// A single rule to be applied to filters, specified in `FilterRuleSet`. +message FilterRule { + // Rule types. + oneof type { + // Exclusion rule. + ExclusionRule exclusion_rule = 1; + } +} + +// A set of rules that modifies the behavior of specific filters based on the +// rules defined within the set. +message FilterRuleSet { + // Required. List of filters this rule set is applied to. + repeated RuleFilterType filter_types = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Set of rules to be applied to filterTypes. + repeated FilterRule rules = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Settings for customizing filter rules. +message FilterRuleSettings { + // Optional. List of rule sets to be applied to filters. + repeated FilterRuleSet rule_sets = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // Prompt injection and Jailbreak Filter Result. message PiAndJailbreakFilterResult { // Output only. Reports whether Prompt injection and Jailbreak filter was diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index a9b836d52302..425225a7b7ba 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-dashboard - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-dashboard' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.101.0' +implementation 'com.google.cloud:google-cloud-monitoring-dashboard:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-dashboard" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-dashboard/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-dashboard/2.102.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/README.md b/java-monitoring-metricsscope/README.md index 538719dc37ec..d4c6aa8b8a3b 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring-metricsscope - 0.93.0 + 0.94.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-monitoring-metricsscope' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.93.0' +implementation 'com.google.cloud:google-cloud-monitoring-metricsscope:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring-metricsscope" % "0.94.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring-metricsscope/latest/overview [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.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring-metricsscope/0.94.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/README.md b/java-monitoring/README.md index 76a94126cda4..e5dd610b3b74 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-monitoring - 3.100.0 + 3.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-monitoring' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-monitoring:3.100.0' +implementation 'com.google.cloud:google-cloud-monitoring:3.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-monitoring" % "3.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-monitoring/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-monitoring/3.101.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/README.md b/java-netapp/README.md index f93fc8ab85dd..c892794303ba 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-netapp - 0.78.0 + 0.79.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-netapp' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-netapp:0.78.0' +implementation 'com.google.cloud:google-cloud-netapp:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-netapp" % "0.79.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-netapp/latest/overview [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.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-netapp/0.79.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/README.md b/java-network-management/README.md index d66232439593..18ea7f7d302a 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-management - 1.100.0 + 1.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-management:1.100.0' +implementation 'com.google.cloud:google-cloud-network-management:1.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-management" % "1.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-management/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.101.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/README.md b/java-network-security/README.md index 844cf80b6ea9..23ca2cd561aa 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-network-security - 0.102.0 + 0.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-network-security' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-network-security:0.102.0' +implementation 'com.google.cloud:google-cloud-network-security:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-network-security" % "0.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-network-security/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-security/0.103.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/README.md b/java-networkconnectivity/README.md index 3ee904826f3d..de7de939351a 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkconnectivity - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-networkconnectivity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkconnectivity:1.98.0' +implementation 'com.google.cloud:google-cloud-networkconnectivity:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkconnectivity" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkconnectivity/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkconnectivity/1.99.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/README.md b/java-networkservices/README.md index 5ffdc520c289..1cac3c1a4d09 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-networkservices - 0.55.0 + 0.56.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-networkservices' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-networkservices:0.55.0' +implementation 'com.google.cloud:google-cloud-networkservices:0.56.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.55.0" +libraryDependencies += "com.google.cloud" % "google-cloud-networkservices" % "0.56.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview [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.55.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-networkservices/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-notebooks/README.md b/java-notebooks/README.md index 7040f3d36077..026aa881a710 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-notebooks - 1.97.0 + 1.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-notebooks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-notebooks:1.97.0' +implementation 'com.google.cloud:google-cloud-notebooks:1.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-notebooks" % "1.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-notebooks/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-notebooks/1.98.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/README.md b/java-optimization/README.md index addc0051c7c6..d466bc7f45ce 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-optimization - 1.97.0 + 1.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-optimization' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-optimization:1.97.0' +implementation 'com.google.cloud:google-cloud-optimization:1.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-optimization" % "1.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-optimization/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-optimization/1.98.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-oracledatabase/README.md b/java-oracledatabase/README.md index 0f3eac42c0d9..2e73deb2f47b 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-oracledatabase - 0.48.0 + 0.49.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-oracledatabase' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-oracledatabase:0.48.0' +implementation 'com.google.cloud:google-cloud-oracledatabase:0.49.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.48.0" +libraryDependencies += "com.google.cloud" % "google-cloud-oracledatabase" % "0.49.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview [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-oracledatabase.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/0.48.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-oracledatabase/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-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index 7e9a4adb497d..44da51ff1745 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orchestration-airflow - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orchestration-airflow' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.99.0' +implementation 'com.google.cloud:google-cloud-orchestration-airflow:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orchestration-airflow" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-orchestration-airflow/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orchestration-airflow/1.100.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/README.md b/java-orgpolicy/README.md index 4db918dd8af5..fff8ef6a0b4f 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-orgpolicy - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-orgpolicy' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-orgpolicy:2.99.0' +implementation 'com.google.cloud:google-cloud-orgpolicy:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-orgpolicy" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-orgpolicy/2.100.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/README.md b/java-os-config/README.md index 9dd08415373d..8c605949296b 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-config - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-config' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-config:2.101.0' +implementation 'com.google.cloud:google-cloud-os-config:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-config" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-config/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-config/2.102.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/README.md b/java-os-login/README.md index 2a208b6c3eb3..16a3ba52ab3d 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-os-login - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-os-login' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-os-login:2.98.0' +implementation 'com.google.cloud:google-cloud-os-login:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-os-login" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-os-login/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-os-login/2.99.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-parallelstore/README.md b/java-parallelstore/README.md index 5926f72648f1..ff03becec05e 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parallelstore - 0.62.0 + 0.63.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parallelstore' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parallelstore:0.62.0' +implementation 'com.google.cloud:google-cloud-parallelstore:0.63.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.62.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parallelstore" % "0.63.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview [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-parallelstore.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.62.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parallelstore/0.63.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-parametermanager/README.md b/java-parametermanager/README.md index 49276c0f3786..ab142d68fca8 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-parametermanager - 0.43.0 + 0.44.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-parametermanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-parametermanager:0.43.0' +implementation 'com.google.cloud:google-cloud-parametermanager:0.44.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.43.0" +libraryDependencies += "com.google.cloud" % "google-cloud-parametermanager" % "0.44.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview [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-parametermanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/0.43.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-parametermanager/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-phishingprotection/README.md b/java-phishingprotection/README.md index d33da957e840..843ba5c0393f 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-phishingprotection - 0.130.0 + 0.131.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-phishingprotection' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-phishingprotection:0.130.0' +implementation 'com.google.cloud:google-cloud-phishingprotection:0.131.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.130.0" +libraryDependencies += "com.google.cloud" % "google-cloud-phishingprotection" % "0.131.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-phishingprotection/latest/overview [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.130.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-phishingprotection/0.131.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/README.md b/java-policy-troubleshooter/README.md index dae46e8ab8e8..69210d4f0a26 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policy-troubleshooter - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-policy-troubleshooter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.98.0' +implementation 'com.google.cloud:google-cloud-policy-troubleshooter:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policy-troubleshooter" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policy-troubleshooter/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policy-troubleshooter/1.99.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/README.md b/java-policysimulator/README.md index 29e77d31c0bf..648462bc8e40 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-policysimulator - 0.78.0 + 0.79.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-policysimulator' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-policysimulator:0.78.0' +implementation 'com.google.cloud:google-cloud-policysimulator:0.79.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.78.0" +libraryDependencies += "com.google.cloud" % "google-cloud-policysimulator" % "0.79.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-policysimulator/latest/overview [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.78.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-policysimulator/0.79.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/README.md b/java-private-catalog/README.md index 866b24961534..436a7387b373 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-private-catalog - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-private-catalog' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-private-catalog:0.101.0' +implementation 'com.google.cloud:google-cloud-private-catalog:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-private-catalog" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-private-catalog/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-private-catalog/0.102.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-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 9fee220f5c4a..0b4073606a30 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-privilegedaccessmanager - 0.53.0 + 0.54.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-privilegedaccessmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.53.0' +implementation 'com.google.cloud:google-cloud-privilegedaccessmanager:0.54.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.53.0" +libraryDependencies += "com.google.cloud" % "google-cloud-privilegedaccessmanager" % "0.54.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview [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-privilegedaccessmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.53.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-privilegedaccessmanager/0.54.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-productregistry/README.md b/java-productregistry/README.md index bef7f757519b..7091906da864 100644 --- a/java-productregistry/README.md +++ b/java-productregistry/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-productregistry - 0.5.0 + 0.6.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-productregistry' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-productregistry:0.5.0' +implementation 'com.google.cloud:google-cloud-productregistry:0.6.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.5.0" +libraryDependencies += "com.google.cloud" % "google-cloud-productregistry" % "0.6.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-productregistry/latest/overview [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-productregistry.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.5.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-productregistry/0.6.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/README.md b/java-profiler/README.md index 2cf5d7cd8d6b..af2d7ba11567 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-profiler - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-profiler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-profiler:2.99.0' +implementation 'com.google.cloud:google-cloud-profiler:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-profiler" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-profiler/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-profiler/2.100.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/README.md b/java-publicca/README.md index 42e4628ce23e..c2cf1069f3b3 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-publicca - 0.96.0 + 0.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-publicca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-publicca:0.96.0' +implementation 'com.google.cloud:google-cloud-publicca:0.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-publicca" % "0.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-publicca/latest/overview [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-publicca/0.97.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-pubsub/README.md b/java-pubsub/README.md index 62e722f86b29..b0ba4d3a5d39 100644 --- a/java-pubsub/README.md +++ b/java-pubsub/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-pubsub - 1.157.0 + 1.158.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-pubsub' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-pubsub:1.157.0' +implementation 'com.google.cloud:google-cloud-pubsub:1.158.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.157.0" +libraryDependencies += "com.google.cloud" % "google-cloud-pubsub" % "1.158.0" ``` ## Authentication @@ -398,7 +398,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history [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-pubsub.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.157.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-pubsub/1.158.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/README.md b/java-rapidmigrationassessment/README.md index 33f0e9834cb6..1c4175aaf999 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-rapidmigrationassessment - 0.82.0 + 0.83.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-rapidmigrationassessment' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.82.0' +implementation 'com.google.cloud:google-cloud-rapidmigrationassessment:0.83.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.82.0" +libraryDependencies += "com.google.cloud" % "google-cloud-rapidmigrationassessment" % "0.83.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-rapidmigrationassessment/latest/overview [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.82.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-rapidmigrationassessment/0.83.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/README.md b/java-recaptchaenterprise/README.md index f9c699873542..5d5af948a41d 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recaptchaenterprise - 3.96.0 + 3.97.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recaptchaenterprise' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.96.0' +implementation 'com.google.cloud:google-cloud-recaptchaenterprise:3.97.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.96.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recaptchaenterprise" % "3.97.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recaptchaenterprise/latest/overview [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.96.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recaptchaenterprise/3.97.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/README.md b/java-recommendations-ai/README.md index f88621f553f6..e86d7cdabc1c 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -45,7 +45,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommendations-ai - 0.106.0 + 0.107.0 ``` @@ -60,13 +60,13 @@ implementation 'com.google.cloud:google-cloud-recommendations-ai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommendations-ai:0.106.0' +implementation 'com.google.cloud:google-cloud-recommendations-ai:0.107.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.106.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommendations-ai" % "0.107.0" ``` ## Authentication @@ -187,7 +187,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommendations-ai/latest/overview [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.106.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommendations-ai/0.107.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/README.md b/java-recommender/README.md index f09c382df1aa..bc0ba2b3f65a 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-recommender - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-recommender' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-recommender:2.101.0' +implementation 'com.google.cloud:google-cloud-recommender:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-recommender" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-recommender/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-recommender/2.102.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/README.md b/java-redis-cluster/README.md index a0ddeb2c8d81..e3212feb36c2 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis-cluster - 0.71.0 + 0.72.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-redis-cluster' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis-cluster:0.71.0' +implementation 'com.google.cloud:google-cloud-redis-cluster:0.72.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.71.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis-cluster" % "0.72.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis-cluster/latest/overview [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.71.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis-cluster/0.72.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/README.md b/java-redis/README.md index d6d28cbac76a..1ec60b98c3ba 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-redis - 2.102.0 + 2.103.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-redis' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-redis:2.102.0' +implementation 'com.google.cloud:google-cloud-redis:2.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-redis" % "2.103.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-redis/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-redis/2.103.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/README.md b/java-resourcemanager/README.md index 76a2236f5e24..a6723f0986a6 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-resourcemanager - 1.101.0 + 1.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-resourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-resourcemanager:1.101.0' +implementation 'com.google.cloud:google-cloud-resourcemanager:1.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-resourcemanager" % "1.102.0" ``` ## Authentication @@ -323,7 +323,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-resourcemanager/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-resourcemanager/1.102.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/README.md b/java-retail/README.md index 144b23a47143..2ed9340e5702 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-retail - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-retail' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-retail:2.101.0' +implementation 'com.google.cloud:google-cloud-retail:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-retail" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-retail/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-retail/2.102.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/README.md b/java-run/README.md index c36cfe7e048a..08eebd394178 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-run - 0.99.0 + 0.100.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-run' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-run:0.99.0' +implementation 'com.google.cloud:google-cloud-run:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-run" % "0.100.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-run/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.100.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-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index b995d51bca5d..67c4bf536280 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-saasservicemgmt - 0.29.0 + 0.30.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-saasservicemgmt' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.29.0' +implementation 'com.google.cloud:google-cloud-saasservicemgmt:0.30.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.29.0" +libraryDependencies += "com.google.cloud" % "google-cloud-saasservicemgmt" % "0.30.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview [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-saasservicemgmt.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/0.29.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-saasservicemgmt/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-scheduler/README.md b/java-scheduler/README.md index 13431fac7cfc..e3ab30c36dac 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-scheduler - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-scheduler' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-scheduler:2.99.0' +implementation 'com.google.cloud:google-cloud-scheduler:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-scheduler" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-scheduler/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-scheduler/2.100.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/README.md b/java-secretmanager/README.md index 38680db81bcb..5117a3f2e745 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-secretmanager - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-secretmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-secretmanager:2.99.0' +implementation 'com.google.cloud:google-cloud-secretmanager:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-secretmanager" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-secretmanager/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-secretmanager/2.100.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/README.md b/java-securesourcemanager/README.md index 27d517ddb1ca..2b9d0f3ff38f 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securesourcemanager - 0.69.0 + 0.70.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securesourcemanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securesourcemanager:0.69.0' +implementation 'com.google.cloud:google-cloud-securesourcemanager:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securesourcemanager" % "0.70.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securesourcemanager/latest/overview [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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securesourcemanager/0.70.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/README.md b/java-security-private-ca/README.md index aa2e5357f720..15060ac6b322 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-security-private-ca - 2.101.0 + 2.102.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-security-private-ca' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-security-private-ca:2.101.0' +implementation 'com.google.cloud:google-cloud-security-private-ca:2.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-security-private-ca" % "2.102.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-security-private-ca/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-security-private-ca/2.102.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/README.md b/java-securitycenter-settings/README.md index d8a8b23e2664..88de04f7b70a 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter-settings - 0.102.0 + 0.103.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter-settings' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.102.0' +implementation 'com.google.cloud:google-cloud-securitycenter-settings:0.103.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.102.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter-settings" % "0.103.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter-settings/latest/overview [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.102.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter-settings/0.103.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/README.md b/java-securitycenter/README.md index ce53ff75a433..b74f52befac5 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycenter - 2.107.0 + 2.108.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycenter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycenter:2.107.0' +implementation 'com.google.cloud:google-cloud-securitycenter:2.108.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.107.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycenter" % "2.108.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycenter/latest/overview [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-securitycenter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.107.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycenter/2.108.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/README.md b/java-securitycentermanagement/README.md index 96b895d0bf17..62177618bb73 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securitycentermanagement - 0.67.0 + 0.68.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securitycentermanagement' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.67.0' +implementation 'com.google.cloud:google-cloud-securitycentermanagement:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.67.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securitycentermanagement" % "0.68.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securitycentermanagement/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securitycentermanagement/0.68.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/README.md b/java-securityposture/README.md index 8201bea694bf..23ad138fe953 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-securityposture - 0.64.0 + 0.65.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-securityposture' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-securityposture:0.64.0' +implementation 'com.google.cloud:google-cloud-securityposture:0.65.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.64.0" +libraryDependencies += "com.google.cloud" % "google-cloud-securityposture" % "0.65.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-securityposture/latest/overview [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.64.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-securityposture/0.65.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/README.md b/java-service-control/README.md index 40af65e20e67..03d00b2eafd0 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-control - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-control' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-control:1.99.0' +implementation 'com.google.cloud:google-cloud-service-control:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-control" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-control/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-control/1.100.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/README.md b/java-service-management/README.md index 13433f219bcc..44b3ea068e23 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-management - 3.97.0 + 3.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-management' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-management:3.97.0' +implementation 'com.google.cloud:google-cloud-service-management:3.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-management" % "3.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-management/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-management/3.98.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/README.md b/java-service-usage/README.md index 52d20ea6bb48..d3f75d60ea21 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-service-usage - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-service-usage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-service-usage:2.99.0' +implementation 'com.google.cloud:google-cloud-service-usage:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-service-usage" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-service-usage/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-service-usage/2.100.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/README.md b/java-servicedirectory/README.md index e15c9b35eb33..9a85f90f6e45 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicedirectory - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-servicedirectory' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicedirectory:2.100.0' +implementation 'com.google.cloud:google-cloud-servicedirectory:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicedirectory" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicedirectory/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicedirectory/2.101.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/README.md b/java-servicehealth/README.md index 9c70fbd2e7d0..da62eb73f412 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-servicehealth - 0.66.0 + 0.67.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-servicehealth' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-servicehealth:0.66.0' +implementation 'com.google.cloud:google-cloud-servicehealth:0.67.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.66.0" +libraryDependencies += "com.google.cloud" % "google-cloud-servicehealth" % "0.67.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-servicehealth/latest/overview [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.66.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-servicehealth/0.67.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/README.md b/java-shell/README.md index 5828996a6fad..ba9a76e98000 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-shell - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-shell' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-shell:2.98.0' +implementation 'com.google.cloud:google-cloud-shell:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-shell" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-shell/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-shell/2.99.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/README.md b/java-shopping-css/README.md index 6953584aac0b..0dd6093b89d8 100644 --- a/java-shopping-css/README.md +++ b/java-shopping-css/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-css - 0.67.0 + 0.68.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-css:0.67.0' +implementation 'com.google.shopping:google-shopping-css:0.68.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.67.0" +libraryDependencies += "com.google.shopping" % "google-shopping-css" % "0.68.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-css/latest/overview [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.67.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-css/0.68.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/README.md b/java-shopping-merchant-accounts/README.md index 833de4e76007..caea07662667 100644 --- a/java-shopping-merchant-accounts/README.md +++ b/java-shopping-merchant-accounts/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-accounts - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-accounts:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-accounts:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-accounts" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-accounts/1.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-shopping-merchant-conversions/README.md b/java-shopping-merchant-conversions/README.md index 48544ce20967..f61ab704aa4d 100644 --- a/java-shopping-merchant-conversions/README.md +++ b/java-shopping-merchant-conversions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-conversions - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-conversions:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-conversions:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-conversions" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-conversions/1.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-shopping-merchant-datasources/README.md b/java-shopping-merchant-datasources/README.md index 09e5813c5de8..062b9c9e23ec 100644 --- a/java-shopping-merchant-datasources/README.md +++ b/java-shopping-merchant-datasources/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-datasources - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-datasources:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-datasources:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-datasources" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-datasources/1.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-shopping-merchant-inventories/README.md b/java-shopping-merchant-inventories/README.md index 14530a1b0005..335af60eb687 100644 --- a/java-shopping-merchant-inventories/README.md +++ b/java-shopping-merchant-inventories/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-inventories - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-inventories:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-inventories:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-inventories" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-inventories/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-inventories/1.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-shopping-merchant-issue-resolution/README.md b/java-shopping-merchant-issue-resolution/README.md index 22af3731f6a3..489405868e64 100644 --- a/java-shopping-merchant-issue-resolution/README.md +++ b/java-shopping-merchant-issue-resolution/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-issue-resolution - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-issue-resolution:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-issue-resolution" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-issue-resolution.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-issue-resolution/1.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-shopping-merchant-lfp/README.md b/java-shopping-merchant-lfp/README.md index b5256ef79f6f..cc909ba1fe3d 100644 --- a/java-shopping-merchant-lfp/README.md +++ b/java-shopping-merchant-lfp/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-lfp - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-lfp:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-lfp:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-lfp" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-lfp/1.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-shopping-merchant-loyaltycustomers/README.md b/java-shopping-merchant-loyaltycustomers/README.md index d0e666a0c3b6..d2f87b7e3a95 100644 --- a/java-shopping-merchant-loyaltycustomers/README.md +++ b/java-shopping-merchant-loyaltycustomers/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-loyaltycustomers - 0.3.0 + 0.4.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.3.0' +implementation 'com.google.shopping:google-shopping-merchant-loyaltycustomers:0.4.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.3.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-loyaltycustomers" % "0.4.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-loyaltycustomers/latest/overview [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-loyaltycustomers.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/0.3.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-loyaltycustomers/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-shopping-merchant-notifications/README.md b/java-shopping-merchant-notifications/README.md index b4544d2f96b9..a9030da84115 100644 --- a/java-shopping-merchant-notifications/README.md +++ b/java-shopping-merchant-notifications/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-notifications - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-notifications:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-notifications:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-notifications" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-notifications.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-notifications/1.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-shopping-merchant-order-tracking/README.md b/java-shopping-merchant-order-tracking/README.md index 1f1a7ca9e7d7..cf2cfe696d6e 100644 --- a/java-shopping-merchant-order-tracking/README.md +++ b/java-shopping-merchant-order-tracking/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-order-tracking - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-order-tracking:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-order-tracking" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.shopping/google-shopping-merchant-order-tracking.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-order-tracking/1.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-shopping-merchant-product-studio/README.md b/java-shopping-merchant-product-studio/README.md index 2cd83dfe70fb..37e83aa07383 100644 --- a/java-shopping-merchant-product-studio/README.md +++ b/java-shopping-merchant-product-studio/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-productstudio - 0.39.0 + 0.40.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.39.0' +implementation 'com.google.shopping:google-shopping-merchant-productstudio:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.39.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-productstudio" % "0.40.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview [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-productstudio.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-productstudio/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-shopping-merchant-products/README.md b/java-shopping-merchant-products/README.md index 4656ff79f231..26c372461ca6 100644 --- a/java-shopping-merchant-products/README.md +++ b/java-shopping-merchant-products/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-products - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-products:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-products:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-products" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-products/1.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-shopping-merchant-promotions/README.md b/java-shopping-merchant-promotions/README.md index 63cbf7052545..9e135f8c7680 100644 --- a/java-shopping-merchant-promotions/README.md +++ b/java-shopping-merchant-promotions/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-promotions - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-promotions:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-promotions:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-promotions" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-promotions/1.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-shopping-merchant-quota/README.md b/java-shopping-merchant-quota/README.md index def2d3495426..c2ea497c6461 100644 --- a/java-shopping-merchant-quota/README.md +++ b/java-shopping-merchant-quota/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-quota - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-quota:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-quota:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-quota" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-quota/1.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-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/HttpJsonAccountLimitsServiceStub.java b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/HttpJsonAccountLimitsServiceStub.java index 8568ffcf0ac9..450786a67769 100644 --- a/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/HttpJsonAccountLimitsServiceStub.java +++ b/java-shopping-merchant-quota/google-shopping-merchant-quota/src/main/java/com/google/shopping/merchant/quota/v1/stub/HttpJsonAccountLimitsServiceStub.java @@ -65,7 +65,7 @@ public class HttpJsonAccountLimitsServiceStub extends AccountLimitsServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/accounts/v1/{name=accounts/*/limits/*}", + "/quota/v1/{name=accounts/*/limits/*}", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = @@ -100,7 +100,7 @@ public class HttpJsonAccountLimitsServiceStub extends AccountLimitsServiceStub { .setRequestFormatter( ProtoMessageRequestFormatter.newBuilder() .setPath( - "/accounts/v1/{parent=accounts/*}/limits", + "/quota/v1/{parent=accounts/*}/limits", request -> { Map fields = new HashMap<>(); ProtoRestSerializer serializer = diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsProto.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsProto.java index bb15ff0d2022..99fab2acb718 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsProto.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/AccountLimitsProto.java @@ -101,21 +101,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031ListAccountLimitsResponse\022G\n" + "\016account_limits\030\001 \003(\0132/.google" + ".shopping.merchant.quota.v1.AccountLimit\022\027\n" - + "\017next_page_token\030\002 \001(\t2\342\003\n" - + "\024AccountLimitsService\022\265\001\n" + + "\017next_page_token\030\002 \001(\t2\334\003\n" + + "\024AccountLimitsService\022\262\001\n" + "\017GetAccountLimit\0229.google.shopping.merchant.quota.v1.GetAccountLim" + "itRequest\032/.google.shopping.merchant.quo" - + "ta.v1.AccountLimit\"6\332A\004name\202\323\344\223\002)\022\'/accounts/v1/{name=accounts/*/limits/*}\022\310\001\n" - + "\021ListAccountLimits\022;.google.shopping.merch" - + "ant.quota.v1.ListAccountLimitsRequest\032<.google.shopping.merchant.quota.v1.ListAc" - + "countLimitsResponse\"8\332A\006parent\202\323\344\223\002)\022\'/a" - + "ccounts/v1/{parent=accounts/*}/limits\032G\312" - + "A\032merchantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\360\001\n" - + "%com.google.shopping.merchant.quota.v1B\022Accoun" - + "tLimitsProtoP\001ZAcloud.google.com/go/shopping/merchant/quota/apiv1/quotapb;quotap" - + "b\252\002!Google.Shopping.Merchant.Quota.V1\312\002!" - + "Google\\Shopping\\Merchant\\Quota\\V1\352\002%Goog" - + "le::Shopping::Merchant::Quota::V1b\006proto3" + + "ta.v1.AccountLimit\"3\332A\004name\202\323\344\223\002&\022$/quota/v1/{name=accounts/*/limits/*}\022\305\001\n" + + "\021ListAccountLimits\022;.google.shopping.merchant" + + ".quota.v1.ListAccountLimitsRequest\032<.google.shopping.merchant.quota.v1.ListAccou" + + "ntLimitsResponse\"5\332A\006parent\202\323\344\223\002&\022$/quot" + + "a/v1/{parent=accounts/*}/limits\032G\312A\032merc" + + "hantapi.googleapis.com\322A\'https://www.googleapis.com/auth/contentB\360\001\n" + + "%com.google.shopping.merchant.quota.v1B\022AccountLimit" + + "sProtoP\001ZAcloud.google.com/go/shopping/m" + + "erchant/quota/apiv1/quotapb;quotapb\252\002!Go" + + "ogle.Shopping.Merchant.Quota.V1\312\002!Google" + + "\\Shopping\\Merchant\\Quota\\V1\352\002%Google::Sh" + + "opping::Merchant::Quota::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroup.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroup.java index afa3b0e4b88d..9d09c7e9baef 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroup.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroup.java @@ -139,7 +139,7 @@ public com.google.protobuf.ByteString getNameBytes() { *
            * Output only. The current quota usage, meaning the number of calls already
            * made on a given day to the methods in the group. The daily quota limits
        -   * reset at at 12:00 PM midday UTC.
        +   * reset at 12:00 PM midday UTC.
            * 
        * * int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -857,7 +857,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { *
              * Output only. The current quota usage, meaning the number of calls already
              * made on a given day to the methods in the group. The daily quota limits
        -     * reset at at 12:00 PM midday UTC.
        +     * reset at 12:00 PM midday UTC.
              * 
        * * int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -875,7 +875,7 @@ public long getQuotaUsage() { *
              * Output only. The current quota usage, meaning the number of calls already
              * made on a given day to the methods in the group. The daily quota limits
        -     * reset at at 12:00 PM midday UTC.
        +     * reset at 12:00 PM midday UTC.
              * 
        * * int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -897,7 +897,7 @@ public Builder setQuotaUsage(long value) { *
              * Output only. The current quota usage, meaning the number of calls already
              * made on a given day to the methods in the group. The daily quota limits
        -     * reset at at 12:00 PM midday UTC.
        +     * reset at 12:00 PM midday UTC.
              * 
        * * int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupOrBuilder.java b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupOrBuilder.java index 6519a94b02db..1c022999694e 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupOrBuilder.java +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/java/com/google/shopping/merchant/quota/v1/QuotaGroupOrBuilder.java @@ -62,7 +62,7 @@ public interface QuotaGroupOrBuilder *
            * Output only. The current quota usage, meaning the number of calls already
            * made on a given day to the methods in the group. The daily quota limits
        -   * reset at at 12:00 PM midday UTC.
        +   * reset at 12:00 PM midday UTC.
            * 
        * * int64 quota_usage = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/accountlimits.proto b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/accountlimits.proto index 71ce95653f31..906d3433ad83 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/accountlimits.proto +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/accountlimits.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -37,7 +37,7 @@ service AccountLimitsService { // Retrieves an account limit. rpc GetAccountLimit(GetAccountLimitRequest) returns (AccountLimit) { option (google.api.http) = { - get: "/accounts/v1/{name=accounts/*/limits/*}" + get: "/quota/v1/{name=accounts/*/limits/*}" }; option (google.api.method_signature) = "name"; } @@ -46,7 +46,7 @@ service AccountLimitsService { rpc ListAccountLimits(ListAccountLimitsRequest) returns (ListAccountLimitsResponse) { option (google.api.http) = { - get: "/accounts/v1/{parent=accounts/*}/limits" + get: "/quota/v1/{parent=accounts/*}/limits" }; option (google.api.method_signature) = "parent"; } diff --git a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/quota.proto b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/quota.proto index 27dc8f8c2189..b05af490d92f 100644 --- a/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/quota.proto +++ b/java-shopping-merchant-quota/proto-google-shopping-merchant-quota-v1/src/main/proto/google/shopping/merchant/quota/v1/quota.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -67,7 +67,7 @@ message QuotaGroup { // Output only. The current quota usage, meaning the number of calls already // made on a given day to the methods in the group. The daily quota limits - // reset at at 12:00 PM midday UTC. + // reset at 12:00 PM midday UTC. int64 quota_usage = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The maximum number of calls allowed per day for the group. diff --git a/java-shopping-merchant-reports/README.md b/java-shopping-merchant-reports/README.md index 3e78695bebb8..5b473a18bd63 100644 --- a/java-shopping-merchant-reports/README.md +++ b/java-shopping-merchant-reports/README.md @@ -18,20 +18,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reports - 1.27.0 + 1.28.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reports:1.27.0' +implementation 'com.google.shopping:google-shopping-merchant-reports:1.28.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.27.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reports" % "1.28.0" ``` ## Authentication @@ -149,7 +149,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reports/latest/overview [stability-image]: https://img.shields.io/badge/stability-stable-green [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/1.27.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reports/1.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-shopping-merchant-reviews/README.md b/java-shopping-merchant-reviews/README.md index 9738d32136f2..87ded201d3c2 100644 --- a/java-shopping-merchant-reviews/README.md +++ b/java-shopping-merchant-reviews/README.md @@ -21,20 +21,20 @@ If you are using Maven, add this to your pom.xml file: com.google.shopping google-shopping-merchant-reviews - 0.45.0 + 0.46.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.shopping:google-shopping-merchant-reviews:0.45.0' +implementation 'com.google.shopping:google-shopping-merchant-reviews:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.45.0" +libraryDependencies += "com.google.shopping" % "google-shopping-merchant-reviews" % "0.46.0" ``` ## Authentication @@ -155,7 +155,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview [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-reviews.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.shopping/google-shopping-merchant-reviews/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-spanner/README.md b/java-spanner/README.md index f62778a90aea..16ef4b818ddf 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanner - 6.124.0 + 6.125.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.124.0' +implementation 'com.google.cloud:google-cloud-spanner:6.125.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.124.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.125.0" ``` ## Authentication @@ -590,7 +590,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history [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-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.124.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.125.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-spanneradapter/README.md b/java-spanneradapter/README.md index 5971b9a45cc9..4ab3d0c5e94c 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-spanneradapter - 0.35.0 + 0.36.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-spanneradapter' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanneradapter:0.35.0' +implementation 'com.google.cloud:google-cloud-spanneradapter:0.36.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.35.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanneradapter" % "0.36.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview [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-spanneradapter.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.35.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanneradapter/0.36.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/README.md b/java-speech/README.md index b9e3bcec9a97..b3e39cd92eb5 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-speech - 4.94.0 + 4.95.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-speech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-speech:4.94.0' +implementation 'com.google.cloud:google-cloud-speech:4.95.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.94.0" +libraryDependencies += "com.google.cloud" % "google-cloud-speech" % "4.95.0" ``` ## Authentication @@ -218,7 +218,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-speech/latest/overview [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.94.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-speech/4.95.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/README.md b/java-storage-transfer/README.md index bc504cdf6b1f..8ee912121b09 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage-transfer - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-storage-transfer' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage-transfer:1.99.0' +implementation 'com.google.cloud:google-cloud-storage-transfer:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage-transfer" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage-transfer/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage-transfer/1.100.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/README.md b/java-storage/README.md index 47e039aa150a..9ebfe4a34046 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -45,12 +45,12 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storage - 2.75.0 + 2.76.0 com.google.cloud google-cloud-storage-control - 2.75.0 + 2.76.0 ``` @@ -65,13 +65,13 @@ implementation 'com.google.cloud:google-cloud-storage' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storage:2.75.0' +implementation 'com.google.cloud:google-cloud-storage:2.76.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.75.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storage" % "2.76.0" ``` ## Authentication @@ -474,7 +474,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storage/latest/history [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.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.75.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storage/2.76.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-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index ad3ad71e4728..bb43e9837430 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storagebatchoperations - 0.39.0 + 0.40.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storagebatchoperations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.39.0' +implementation 'com.google.cloud:google-cloud-storagebatchoperations:0.40.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.39.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storagebatchoperations" % "0.40.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview [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-storagebatchoperations.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/0.39.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storagebatchoperations/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-storageinsights/README.md b/java-storageinsights/README.md index 5bd9eb83bf41..e9a1ac0ee4ad 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-storageinsights - 0.84.0 + 0.85.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-storageinsights' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-storageinsights:0.84.0' +implementation 'com.google.cloud:google-cloud-storageinsights:0.85.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.84.0" +libraryDependencies += "com.google.cloud" % "google-cloud-storageinsights" % "0.85.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-storageinsights/latest/overview [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.84.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-storageinsights/0.85.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/README.md b/java-talent/README.md index 2278ad668fd0..2814ec044d47 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-talent - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-talent' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-talent:2.100.0' +implementation 'com.google.cloud:google-cloud-talent:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-talent" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-talent/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-talent/2.101.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/README.md b/java-tasks/README.md index 4ebe1cefc927..1ed8b458f3b3 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tasks - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tasks' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tasks:2.99.0' +implementation 'com.google.cloud:google-cloud-tasks:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tasks" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tasks/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tasks/2.100.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/README.md b/java-telcoautomation/README.md index 80e422bd6d5b..d0e5d3c93212 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-telcoautomation - 0.69.0 + 0.70.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-telcoautomation' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-telcoautomation:0.69.0' +implementation 'com.google.cloud:google-cloud-telcoautomation:0.70.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.69.0" +libraryDependencies += "com.google.cloud" % "google-cloud-telcoautomation" % "0.70.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-telcoautomation/latest/overview [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.69.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-telcoautomation/0.70.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/README.md b/java-texttospeech/README.md index 6fd9059fe635..e5da97b2f875 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-texttospeech - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-texttospeech' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-texttospeech:2.100.0' +implementation 'com.google.cloud:google-cloud-texttospeech:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-texttospeech" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-texttospeech/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-texttospeech/2.101.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/README.md b/java-tpu/README.md index fb6b6ecea14b..a2b8a263aa2b 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-tpu - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-tpu' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-tpu:2.100.0' +implementation 'com.google.cloud:google-cloud-tpu:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-tpu" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-tpu/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-tpu/2.101.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/README.md b/java-trace/README.md index e27d64009499..1b9d430bbc58 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-trace - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-trace' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-trace:2.99.0' +implementation 'com.google.cloud:google-cloud-trace:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-trace" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-trace/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-trace/2.100.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/README.md b/java-translate/README.md index 05e1dc454fe8..4ab8b7854547 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-translate - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-translate' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-translate:2.99.0' +implementation 'com.google.cloud:google-cloud-translate:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-translate" % "2.100.0" ``` ## Authentication @@ -259,7 +259,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-translate/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-translate/2.100.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-valkey/README.md b/java-valkey/README.md index ba4bcebb1056..24420803b7b7 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-valkey - 0.45.0 + 0.46.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-valkey' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-valkey:0.45.0' +implementation 'com.google.cloud:google-cloud-valkey:0.46.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.45.0" +libraryDependencies += "com.google.cloud" % "google-cloud-valkey" % "0.46.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview [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-valkey.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/0.45.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-valkey/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-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java index 9f2325cbb0fe..ea9accea4caa 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreClient.java @@ -60,8 +60,8 @@ * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = memorystoreClient.getInstance(name); + * AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * AclPolicy response = memorystoreClient.getAclPolicy(name); * } * }
        * @@ -76,6 +76,31 @@ * Method Variants * * + *

        ListAclPolicies + *

        Lists all ACL policies owned by a project in either the specified location (region) or all locations. + *

        The location should have the following format: + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project are queried, and the results are aggregated. + * + *

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

        + *
          + *
        • listAclPolicies(ListAclPoliciesRequest request) + *

        + *

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

        + *
          + *
        • listAclPolicies(LocationName parent) + *

        • listAclPolicies(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.

        + *
          + *
        • listAclPoliciesPagedCallable() + *

        • listAclPoliciesCallable() + *

        + * + * + * *

        ListInstances *

        Lists Instances in a given project and location. * @@ -96,6 +121,25 @@ * * * + *

        GetAclPolicy + *

        Gets the details of a specific Memorystore ACL policy. + * + *

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

        + *
          + *
        • getAclPolicy(GetAclPolicyRequest request) + *

        + *

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

        + *
          + *
        • getAclPolicy(AclPolicyName name) + *

        • getAclPolicy(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.

        + *
          + *
        • getAclPolicyCallable() + *

        + * + * + * *

        GetInstance *

        Gets details of a single Instance. * @@ -115,6 +159,25 @@ * * * + *

        CreateAclPolicy + *

        Creates an ACL policy. The creation is executed synchronously and the policy is available for use immediately after the RPC returns. + * + *

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

        + *
          + *
        • createAclPolicy(CreateAclPolicyRequest request) + *

        + *

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

        + *
          + *
        • createAclPolicy(LocationName parent, AclPolicy aclPolicy, String aclPolicyId) + *

        • createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) + *

        + *

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

        + *
          + *
        • createAclPolicyCallable() + *

        + * + * + * *

        CreateInstance *

        Creates a new Instance in a given project and location. * @@ -135,6 +198,27 @@ * * * + *

        UpdateAclPolicy + *

        Updates the ACL policy. + *

        The operation will apply the updated ACL policy to all the linked instances. The operation will return success if it successfully applied the policy to all the instances. If the operation completed with a failure, the service will continue to apply the policy via reconciliation for the failed instances even after operation completion to ensure eventual consistency. + *

        Completed longrunning.Operation will contain the new ACL policy object in the response field. + * + *

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

        + *
          + *
        • updateAclPolicyAsync(UpdateAclPolicyRequest request) + *

        + *

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

        + *
          + *
        • updateAclPolicyAsync(AclPolicy aclPolicy, 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.

        + *
          + *
        • updateAclPolicyOperationCallable() + *

        • updateAclPolicyCallable() + *

        + * + * + * *

        UpdateInstance *

        Updates the parameters of a single Instance. * @@ -154,6 +238,65 @@ * * * + *

        DeleteAclPolicy + *

        Deletes a specific ACL policy. This action will delete the ACL policy and all the rules associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

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

        + *
          + *
        • deleteAclPolicyAsync(DeleteAclPolicyRequest request) + *

        + *

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

        + *
          + *
        • deleteAclPolicyAsync(AclPolicyName name) + *

        • deleteAclPolicyAsync(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.

        + *
          + *
        • deleteAclPolicyOperationCallable() + *

        • deleteAclPolicyCallable() + *

        + * + * + * + *

        GetAclPolicyRevision + *

        Gets details of a specific ACL policy revision. + * + *

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

        + *
          + *
        • getAclPolicyRevision(GetAclPolicyRevisionRequest request) + *

        + *

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

        + *
          + *
        • getAclPolicyRevision(AclPolicyRevisionName name) + *

        • getAclPolicyRevision(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.

        + *
          + *
        • getAclPolicyRevisionCallable() + *

        + * + * + * + *

        ListAclPolicyRevisions + *

        Lists all ACL policy revisions in a given ACL policy. + * + *

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

        + *
          + *
        • listAclPolicyRevisions(ListAclPolicyRevisionsRequest request) + *

        + *

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

        + *
          + *
        • listAclPolicyRevisions(AclPolicyName parent) + *

        • listAclPolicyRevisions(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.

        + *
          + *
        • listAclPolicyRevisionsPagedCallable() + *

        • listAclPolicyRevisionsCallable() + *

        + * + * + * *

        DeleteInstance *

        Deletes a single Instance. * @@ -720,6 +863,222 @@ public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

        The location should have the following format: + * + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + * + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPoliciesPagedResponse listAclPolicies(@Nullable LocationName parent) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

        The location should have the following format: + * + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + * + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAclPoliciesPagedResponse listAclPolicies(String parent) { + ListAclPoliciesRequest request = ListAclPoliciesRequest.newBuilder().setParent(parent).build(); + return listAclPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

        The location should have the following format: + * + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + * + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   ListAclPoliciesRequest request =
        +   *       ListAclPoliciesRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   for (AclPolicy element : memorystoreClient.listAclPolicies(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 ListAclPoliciesPagedResponse listAclPolicies(ListAclPoliciesRequest request) { + return listAclPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

        The location should have the following format: + * + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + * + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   ListAclPoliciesRequest request =
        +   *       ListAclPoliciesRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   ApiFuture future =
        +   *       memorystoreClient.listAclPoliciesPagedCallable().futureCall(request);
        +   *   // Do something.
        +   *   for (AclPolicy element : future.get().iterateAll()) {
        +   *     // doThingsWith(element);
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listAclPoliciesPagedCallable() { + return stub.listAclPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists all ACL policies owned by a project in either the specified location (region) or all + * locations. + * + *

        The location should have the following format: + * + *

          + *
        • `projects/{project_id}/locations/{location_id}` + *
        + * + *

        If `location_id` is specified as `-` (wildcard), then all regions available to the project + * are queried, and the results are aggregated. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   ListAclPoliciesRequest request =
        +   *       ListAclPoliciesRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setPageSize(883849137)
        +   *           .setPageToken("pageToken873572522")
        +   *           .build();
        +   *   while (true) {
        +   *     ListAclPoliciesResponse response =
        +   *         memorystoreClient.listAclPoliciesCallable().call(request);
        +   *     for (AclPolicy element : response.getAclPoliciesList()) {
        +   *       // doThingsWith(element);
        +   *     }
        +   *     String nextPageToken = response.getNextPageToken();
        +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
        +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
        +   *     } else {
        +   *       break;
        +   *     }
        +   *   }
        +   * }
        +   * }
        + */ + public final UnaryCallable + listAclPoliciesCallable() { + return stub.listAclPoliciesCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists Instances in a given project and location. @@ -892,7 +1251,7 @@ public final UnaryCallable listInst // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Instance. + * Gets the details of a specific Memorystore ACL policy. * *

        Sample code: * @@ -903,24 +1262,25 @@ public final UnaryCallable listInst * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]"); - * Instance response = memorystoreClient.getInstance(name); + * AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * AclPolicy response = memorystoreClient.getAclPolicy(name); * } * }

        * - * @param name Required. The name of the instance to retrieve. Format: - * projects/{project}/locations/{location}/instances/{instance} + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` where `location` refers + * to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final Instance getInstance(@Nullable InstanceName name) { - GetInstanceRequest request = - GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - return getInstance(request); + public final AclPolicy getAclPolicy(@Nullable AclPolicyName name) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAclPolicy(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Gets details of a single Instance. + * Gets the details of a specific Memorystore ACL policy. * *

        Sample code: * @@ -931,8 +1291,119 @@ public final Instance getInstance(@Nullable InstanceName 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString(); - * Instance response = memorystoreClient.getInstance(name); + * String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * AclPolicy response = memorystoreClient.getAclPolicy(name); + * } + * }

        + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` where `location` refers + * to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy getAclPolicy(String name) { + GetAclPolicyRequest request = GetAclPolicyRequest.newBuilder().setName(name).build(); + return getAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Memorystore ACL policy. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   GetAclPolicyRequest request =
        +   *       GetAclPolicyRequest.newBuilder()
        +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +   *           .build();
        +   *   AclPolicy response = memorystoreClient.getAclPolicy(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 AclPolicy getAclPolicy(GetAclPolicyRequest request) { + return getAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the details of a specific Memorystore ACL policy. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   GetAclPolicyRequest request =
        +   *       GetAclPolicyRequest.newBuilder()
        +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.getAclPolicyCallable().futureCall(request);
        +   *   // Do something.
        +   *   AclPolicy response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable getAclPolicyCallable() { + return stub.getAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
        +   *   Instance response = memorystoreClient.getInstance(name);
        +   * }
        +   * }
        + * + * @param name Required. The name of the instance to retrieve. Format: + * projects/{project}/locations/{location}/instances/{instance} + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Instance getInstance(@Nullable InstanceName name) { + GetInstanceRequest request = + GetInstanceRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getInstance(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   String name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
        +   *   Instance response = memorystoreClient.getInstance(name);
            * }
            * }
        * @@ -990,19 +1461,802 @@ public final Instance getInstance(GetInstanceRequest request) { * GetInstanceRequest.newBuilder() * .setName(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString()) * .build(); - * ApiFuture future = memorystoreClient.getInstanceCallable().futureCall(request); + * ApiFuture future = memorystoreClient.getInstanceCallable().futureCall(request); + * // Do something. + * Instance response = future.get(); + * } + * }
        + */ + public final UnaryCallable getInstanceCallable() { + return stub.getInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +   *   String aclPolicyId = "aclPolicyId-1805591401";
        +   *   AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +   * }
        +   * }
        + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
          + *
        • Must contain only lowercase letters, numbers, and hyphens. + *
        • Must start with a letter. + *
        • Must be between 1-63 characters. + *
        • Must end with a number or a letter. + *
        • Must be unique within the customer project / location + *
        + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy( + @Nullable LocationName parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +   *   String aclPolicyId = "aclPolicyId-1805591401";
        +   *   AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +   * }
        +   * }
        + * + * @param parent Required. The resource name of the ACL policy location using the form: + * `projects/{project}/locations/{location}` where `location` refers to a Google Cloud region. + * @param aclPolicy Required. The ACL policy that is to be created. + * @param aclPolicyId Required. The logical name of the ACL policy in the customer project with + * the following restrictions: + *
          + *
        • Must contain only lowercase letters, numbers, and hyphens. + *
        • Must start with a letter. + *
        • Must be between 1-63 characters. + *
        • Must end with a number or a letter. + *
        • Must be unique within the customer project / location + *
        + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AclPolicy createAclPolicy(String parent, AclPolicy aclPolicy, String aclPolicyId) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(parent) + .setAclPolicy(aclPolicy) + .setAclPolicyId(aclPolicyId) + .build(); + return createAclPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   CreateAclPolicyRequest request =
        +   *       CreateAclPolicyRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setAclPolicyId("aclPolicyId-1805591401")
        +   *           .setAclPolicy(AclPolicy.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   AclPolicy response = memorystoreClient.createAclPolicy(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 AclPolicy createAclPolicy(CreateAclPolicyRequest request) { + return createAclPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an ACL policy. The creation is executed synchronously and the policy is available for + * use immediately after the RPC returns. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   CreateAclPolicyRequest request =
        +   *       CreateAclPolicyRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setAclPolicyId("aclPolicyId-1805591401")
        +   *           .setAclPolicy(AclPolicy.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.createAclPolicyCallable().futureCall(request);
        +   *   // Do something.
        +   *   AclPolicy response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable createAclPolicyCallable() { + return stub.createAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance in a given project and location. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +   *   Instance instance = Instance.newBuilder().build();
        +   *   String instanceId = "instanceId902024336";
        +   *   Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get();
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource where this instance will be created. Format: + * projects/{project}/locations/{location} + * @param instance Required. The instance to create. + * @param instanceId Required. The ID to use for the instance, which will become the final + * component of the instance's resource name. + *

        This value is subject to the following restrictions: + *

          + *
        • Must be 4-63 characters in length + *
        • Must begin with a letter or digit + *
        • Must contain only lowercase letters, digits, and hyphens + *
        • Must not end with a hyphen + *
        • Must be unique within a location + *
        + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createInstanceAsync( + @Nullable LocationName parent, Instance instance, String instanceId) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setInstance(instance) + .setInstanceId(instanceId) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance in a given project and location. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
        +   *   Instance instance = Instance.newBuilder().build();
        +   *   String instanceId = "instanceId902024336";
        +   *   Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get();
        +   * }
        +   * }
        + * + * @param parent Required. The parent resource where this instance will be created. Format: + * projects/{project}/locations/{location} + * @param instance Required. The instance to create. + * @param instanceId Required. The ID to use for the instance, which will become the final + * component of the instance's resource name. + *

        This value is subject to the following restrictions: + *

          + *
        • Must be 4-63 characters in length + *
        • Must begin with a letter or digit + *
        • Must contain only lowercase letters, digits, and hyphens + *
        • Must not end with a hyphen + *
        • Must be unique within a location + *
        + * + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createInstanceAsync( + String parent, Instance instance, String instanceId) { + CreateInstanceRequest request = + CreateInstanceRequest.newBuilder() + .setParent(parent) + .setInstance(instance) + .setInstanceId(instanceId) + .build(); + return createInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance in a given project and location. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   CreateInstanceRequest request =
        +   *       CreateInstanceRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setInstanceId("instanceId902024336")
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   Instance response = memorystoreClient.createInstanceAsync(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 createInstanceAsync( + CreateInstanceRequest request) { + return createInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance in a given project and location. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   CreateInstanceRequest request =
        +   *       CreateInstanceRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setInstanceId("instanceId902024336")
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       memorystoreClient.createInstanceOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Instance response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + createInstanceOperationCallable() { + return stub.createInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a new Instance in a given project and location. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   CreateInstanceRequest request =
        +   *       CreateInstanceRequest.newBuilder()
        +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
        +   *           .setInstanceId("instanceId902024336")
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.createInstanceCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable createInstanceCallable() { + return stub.createInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

        The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

        Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +   *   FieldMask updateMask = FieldMask.newBuilder().build();
        +   *   AclPolicy response = memorystoreClient.updateAclPolicyAsync(aclPolicy, updateMask).get();
        +   * }
        +   * }
        + * + * @param aclPolicy Required. The ACL policy to be updated. + * @param updateMask Optional. Mask of fields to be updated. At least one path must be supplied in + * this field. The elements of the repeated paths field may only include these fields from + * `AclPolicy`: + *

        * `rules` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateAclPolicyAsync( + AclPolicy aclPolicy, FieldMask updateMask) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(aclPolicy) + .setUpdateMask(updateMask) + .build(); + return updateAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

        The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

        Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateAclPolicyRequest request =
        +   *       UpdateAclPolicyRequest.newBuilder()
        +   *           .setAclPolicy(AclPolicy.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   AclPolicy response = memorystoreClient.updateAclPolicyAsync(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 updateAclPolicyAsync( + UpdateAclPolicyRequest request) { + return updateAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

        The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

        Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateAclPolicyRequest request =
        +   *       UpdateAclPolicyRequest.newBuilder()
        +   *           .setAclPolicy(AclPolicy.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       memorystoreClient.updateAclPolicyOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   AclPolicy response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + updateAclPolicyOperationCallable() { + return stub.updateAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the ACL policy. + * + *

        The operation will apply the updated ACL policy to all the linked instances. The operation + * will return success if it successfully applied the policy to all the instances. If the + * operation completed with a failure, the service will continue to apply the policy via + * reconciliation for the failed instances even after operation completion to ensure eventual + * consistency. + * + *

        Completed longrunning.Operation will contain the new ACL policy object in the response + * field. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateAclPolicyRequest request =
        +   *       UpdateAclPolicyRequest.newBuilder()
        +   *           .setAclPolicy(AclPolicy.newBuilder().build())
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.updateAclPolicyCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable updateAclPolicyCallable() { + return stub.updateAclPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   Instance instance = Instance.newBuilder().build();
        +   *   FieldMask updateMask = FieldMask.newBuilder().build();
        +   *   Instance response = memorystoreClient.updateInstanceAsync(instance, updateMask).get();
        +   * }
        +   * }
        + * + * @param instance Required. The instance to update. + * @param updateMask Optional. The list of fields to be updated on the instance. At least one + * field must be specified. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture updateInstanceAsync( + Instance instance, FieldMask updateMask) { + UpdateInstanceRequest request = + UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build(); + return updateInstanceAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateInstanceRequest request =
        +   *       UpdateInstanceRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   Instance response = memorystoreClient.updateInstanceAsync(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 updateInstanceAsync( + UpdateInstanceRequest request) { + return updateInstanceOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateInstanceRequest request =
        +   *       UpdateInstanceRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       memorystoreClient.updateInstanceOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   Instance response = future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + updateInstanceOperationCallable() { + return stub.updateInstanceOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the parameters of a single Instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   UpdateInstanceRequest request =
        +   *       UpdateInstanceRequest.newBuilder()
        +   *           .setUpdateMask(FieldMask.newBuilder().build())
        +   *           .setInstance(Instance.newBuilder().build())
        +   *           .setRequestId("requestId693933066")
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.updateInstanceCallable().futureCall(request);
        +   *   // Do something.
        +   *   Operation response = future.get();
        +   * }
        +   * }
        + */ + public final UnaryCallable updateInstanceCallable() { + return stub.updateInstanceCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +   *   memorystoreClient.deleteAclPolicyAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` where `location` + * refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync( + @Nullable AclPolicyName name) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString();
        +   *   memorystoreClient.deleteAclPolicyAsync(name).get();
        +   * }
        +   * }
        + * + * @param name Required. Memorystore ACL policy resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` where `location` + * refers to a Google Cloud region. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAclPolicyAsync(String name) { + DeleteAclPolicyRequest request = DeleteAclPolicyRequest.newBuilder().setName(name).build(); + return deleteAclPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   DeleteAclPolicyRequest request =
        +   *       DeleteAclPolicyRequest.newBuilder()
        +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +   *           .setRequestId("requestId693933066")
        +   *           .setEtag("etag3123477")
        +   *           .build();
        +   *   memorystoreClient.deleteAclPolicyAsync(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 deleteAclPolicyAsync( + DeleteAclPolicyRequest request) { + return deleteAclPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   DeleteAclPolicyRequest request =
        +   *       DeleteAclPolicyRequest.newBuilder()
        +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +   *           .setRequestId("requestId693933066")
        +   *           .setEtag("etag3123477")
        +   *           .build();
        +   *   OperationFuture future =
        +   *       memorystoreClient.deleteAclPolicyOperationCallable().futureCall(request);
        +   *   // Do something.
        +   *   future.get();
        +   * }
        +   * }
        + */ + public final OperationCallable + deleteAclPolicyOperationCallable() { + return stub.deleteAclPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a specific ACL policy. This action will delete the ACL policy and all the rules + * associated with it. An ACL policy cannot be deleted if it is attached to an instance. + * + *

        Sample code: + * + *

        {@code
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        +   * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        +   *   DeleteAclPolicyRequest request =
        +   *       DeleteAclPolicyRequest.newBuilder()
        +   *           .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +   *           .setRequestId("requestId693933066")
        +   *           .setEtag("etag3123477")
        +   *           .build();
        +   *   ApiFuture future = memorystoreClient.deleteAclPolicyCallable().futureCall(request);
            *   // Do something.
        -   *   Instance response = future.get();
        +   *   future.get();
            * }
            * }
        */ - public final UnaryCallable getInstanceCallable() { - return stub.getInstanceCallable(); + public final UnaryCallable deleteAclPolicyCallable() { + return stub.deleteAclPolicyCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

        Sample code: * @@ -1013,43 +2267,28 @@ public final UnaryCallable getInstanceCallable() { * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get(); + * AclPolicyRevisionName name = + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); * } * } * - * @param parent Required. The parent resource where this instance will be created. Format: - * projects/{project}/locations/{location} - * @param instance Required. The instance to create. - * @param instanceId Required. The ID to use for the instance, which will become the final - * component of the instance's resource name. - *

        This value is subject to the following restrictions: - *

          - *
        • Must be 4-63 characters in length - *
        • Must begin with a letter or digit - *
        • Must contain only lowercase letters, digits, and hyphens - *
        • Must not end with a hyphen - *
        • Must be unique within a location - *
        - * + * @param name Required. Memorystore ACL policy revision resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + * where `location` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createInstanceAsync( - @Nullable LocationName parent, Instance instance, String instanceId) { - CreateInstanceRequest request = - CreateInstanceRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setInstance(instance) - .setInstanceId(instanceId) + public final AclPolicyRevision getAclPolicyRevision(@Nullable AclPolicyRevisionName name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createInstanceAsync(request); + return getAclPolicyRevision(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

        Sample code: * @@ -1060,43 +2299,27 @@ public final OperationFuture createInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); - * Instance instance = Instance.newBuilder().build(); - * String instanceId = "instanceId902024336"; - * Instance response = memorystoreClient.createInstanceAsync(parent, instance, instanceId).get(); + * String name = + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString(); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); * } * } * - * @param parent Required. The parent resource where this instance will be created. Format: - * projects/{project}/locations/{location} - * @param instance Required. The instance to create. - * @param instanceId Required. The ID to use for the instance, which will become the final - * component of the instance's resource name. - *

        This value is subject to the following restrictions: - *

          - *
        • Must be 4-63 characters in length - *
        • Must begin with a letter or digit - *
        • Must contain only lowercase letters, digits, and hyphens - *
        • Must not end with a hyphen - *
        • Must be unique within a location - *
        - * + * @param name Required. Memorystore ACL policy revision resource name using the form: + * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + * where `location` refers to a Google Cloud region. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture createInstanceAsync( - String parent, Instance instance, String instanceId) { - CreateInstanceRequest request = - CreateInstanceRequest.newBuilder() - .setParent(parent) - .setInstance(instance) - .setInstanceId(instanceId) - .build(); - return createInstanceAsync(request); + public final AclPolicyRevision getAclPolicyRevision(String name) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder().setName(name).build(); + return getAclPolicyRevision(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

        Sample code: * @@ -1107,28 +2330,26 @@ public final OperationFuture createInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetAclPolicyRevisionRequest request = + * GetAclPolicyRevisionRequest.newBuilder() + * .setName( + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString()) * .build(); - * Instance response = memorystoreClient.createInstanceAsync(request).get(); + * AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(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 OperationFuture createInstanceAsync( - CreateInstanceRequest request) { - return createInstanceOperationCallable().futureCall(request); + public final AclPolicyRevision getAclPolicyRevision(GetAclPolicyRevisionRequest request) { + return getAclPolicyRevisionCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Gets details of a specific ACL policy revision. * *

        Sample code: * @@ -1139,28 +2360,27 @@ public final OperationFuture createInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * GetAclPolicyRevisionRequest request = + * GetAclPolicyRevisionRequest.newBuilder() + * .setName( + * AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + * .toString()) * .build(); - * OperationFuture future = - * memorystoreClient.createInstanceOperationCallable().futureCall(request); + * ApiFuture future = + * memorystoreClient.getAclPolicyRevisionCallable().futureCall(request); * // Do something. - * Instance response = future.get(); + * AclPolicyRevision response = future.get(); * } * } */ - public final OperationCallable - createInstanceOperationCallable() { - return stub.createInstanceOperationCallable(); + public final UnaryCallable + getAclPolicyRevisionCallable() { + return stub.getAclPolicyRevisionCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a new Instance in a given project and location. + * Lists all ACL policy revisions in a given ACL policy. * *

        Sample code: * @@ -1171,26 +2391,30 @@ public final OperationFuture createInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * CreateInstanceRequest request = - * CreateInstanceRequest.newBuilder() - * .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) - * .setInstanceId("instanceId902024336") - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") - * .build(); - * ApiFuture future = memorystoreClient.createInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } + * + * @param parent Required. The resource name of the ACL policy to list revisions for. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final UnaryCallable createInstanceCallable() { - return stub.createInstanceCallable(); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + @Nullable AclPolicyName parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

        Sample code: * @@ -1201,27 +2425,27 @@ public final UnaryCallable createInstanceCalla * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * Instance instance = Instance.newBuilder().build(); - * FieldMask updateMask = FieldMask.newBuilder().build(); - * Instance response = memorystoreClient.updateInstanceAsync(instance, updateMask).get(); + * String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + * // doThingsWith(element); + * } * } * } * - * @param instance Required. The instance to update. - * @param updateMask Optional. The list of fields to be updated on the instance. At least one - * field must be specified. + * @param parent Required. The resource name of the ACL policy to list revisions for. Format: + * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final OperationFuture updateInstanceAsync( - Instance instance, FieldMask updateMask) { - UpdateInstanceRequest request = - UpdateInstanceRequest.newBuilder().setInstance(instance).setUpdateMask(updateMask).build(); - return updateInstanceAsync(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions(String parent) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder().setParent(parent).build(); + return listAclPolicyRevisions(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

        Sample code: * @@ -1232,27 +2456,30 @@ public final OperationFuture updateInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * Instance response = memorystoreClient.updateInstanceAsync(request).get(); + * for (AclPolicyRevision element : + * memorystoreClient.listAclPolicyRevisions(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 OperationFuture updateInstanceAsync( - UpdateInstanceRequest request) { - return updateInstanceOperationCallable().futureCall(request); + public final ListAclPolicyRevisionsPagedResponse listAclPolicyRevisions( + ListAclPolicyRevisionsRequest request) { + return listAclPolicyRevisionsPagedCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

        Sample code: * @@ -1263,27 +2490,29 @@ public final OperationFuture updateInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * OperationFuture future = - * memorystoreClient.updateInstanceOperationCallable().futureCall(request); + * ApiFuture future = + * memorystoreClient.listAclPolicyRevisionsPagedCallable().futureCall(request); * // Do something. - * Instance response = future.get(); + * for (AclPolicyRevision element : future.get().iterateAll()) { + * // doThingsWith(element); + * } * } * } */ - public final OperationCallable - updateInstanceOperationCallable() { - return stub.updateInstanceOperationCallable(); + public final UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return stub.listAclPolicyRevisionsPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates the parameters of a single Instance. + * Lists all ACL policy revisions in a given ACL policy. * *

        Sample code: * @@ -1294,20 +2523,31 @@ public final OperationFuture updateInstanceAsync( * // - It may require specifying regional endpoints when creating the service client as shown in * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { - * UpdateInstanceRequest request = - * UpdateInstanceRequest.newBuilder() - * .setUpdateMask(FieldMask.newBuilder().build()) - * .setInstance(Instance.newBuilder().build()) - * .setRequestId("requestId693933066") + * ListAclPolicyRevisionsRequest request = + * ListAclPolicyRevisionsRequest.newBuilder() + * .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + * .setPageSize(883849137) + * .setPageToken("pageToken873572522") * .build(); - * ApiFuture future = memorystoreClient.updateInstanceCallable().futureCall(request); - * // Do something. - * Operation response = future.get(); + * while (true) { + * ListAclPolicyRevisionsResponse response = + * memorystoreClient.listAclPolicyRevisionsCallable().call(request); + * for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + * // doThingsWith(element); + * } + * String nextPageToken = response.getNextPageToken(); + * if (!Strings.isNullOrEmpty(nextPageToken)) { + * request = request.toBuilder().setPageToken(nextPageToken).build(); + * } else { + * break; + * } + * } * } * } */ - public final UnaryCallable updateInstanceCallable() { - return stub.updateInstanceCallable(); + public final UnaryCallable + listAclPolicyRevisionsCallable() { + return stub.listAclPolicyRevisionsCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -4647,6 +5887,83 @@ public boolean awaitTermination(long duration, TimeUnit unit) throws Interrupted return stub.awaitTermination(duration, unit); } + public static class ListAclPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPoliciesPagedResponse(ListAclPoliciesPage page) { + super(page, ListAclPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPoliciesPage + extends AbstractPage< + ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy, ListAclPoliciesPage> { + + private ListAclPoliciesPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + super(context, response); + } + + private static ListAclPoliciesPage createEmptyPage() { + return new ListAclPoliciesPage(null, null); + } + + @Override + protected ListAclPoliciesPage createPage( + @Nullable PageContext context, + @Nullable ListAclPoliciesResponse response) { + return new ListAclPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPoliciesRequest, + ListAclPoliciesResponse, + AclPolicy, + ListAclPoliciesPage, + ListAclPoliciesFixedSizeCollection> { + + private ListAclPoliciesFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAclPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPoliciesFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPoliciesFixedSizeCollection(pages, collectionSize); + } + } + public static class ListInstancesPagedResponse extends AbstractPagedListResponse< ListInstancesRequest, @@ -4724,6 +6041,97 @@ protected ListInstancesFixedSizeCollection createCollection( } } + public static class ListAclPolicyRevisionsPagedResponse + extends AbstractPagedListResponse< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAclPolicyRevisionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAclPolicyRevisionsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAclPolicyRevisionsPagedResponse(ListAclPolicyRevisionsPage page) { + super(page, ListAclPolicyRevisionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAclPolicyRevisionsPage + extends AbstractPage< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage> { + + private ListAclPolicyRevisionsPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + super(context, response); + } + + private static ListAclPolicyRevisionsPage createEmptyPage() { + return new ListAclPolicyRevisionsPage(null, null); + } + + @Override + protected ListAclPolicyRevisionsPage createPage( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + @Nullable ListAclPolicyRevisionsResponse response) { + return new ListAclPolicyRevisionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + @Nullable + PageContext< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAclPolicyRevisionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAclPolicyRevisionsRequest, + ListAclPolicyRevisionsResponse, + AclPolicyRevision, + ListAclPolicyRevisionsPage, + ListAclPolicyRevisionsFixedSizeCollection> { + + private ListAclPolicyRevisionsFixedSizeCollection( + @Nullable List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAclPolicyRevisionsFixedSizeCollection createEmptyCollection() { + return new ListAclPolicyRevisionsFixedSizeCollection(null, 0); + } + + @Override + protected ListAclPolicyRevisionsFixedSizeCollection createCollection( + @Nullable List pages, int collectionSize) { + return new ListAclPolicyRevisionsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListBackupCollectionsPagedResponse extends AbstractPagedListResponse< ListBackupCollectionsRequest, diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java index 8bbe95fc5ba5..5e2f2b91e0e8 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/MemorystoreSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse; @@ -66,7 +68,7 @@ * *

        For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getInstance: + * of getAclPolicy: * *

        {@code
          * // This snippet has been automatically generated and should be regarded as a code template only.
        @@ -76,10 +78,10 @@
          * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          * MemorystoreSettings.Builder memorystoreSettingsBuilder = MemorystoreSettings.newBuilder();
          * memorystoreSettingsBuilder
        - *     .getInstanceSettings()
        + *     .getAclPolicySettings()
          *     .setRetrySettings(
          *         memorystoreSettingsBuilder
        - *             .getInstanceSettings()
        + *             .getAclPolicySettings()
          *             .getRetrySettings()
          *             .toBuilder()
          *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
        @@ -127,17 +129,34 @@
         @Generated("by gapic-generator-java")
         public class MemorystoreSettings extends ClientSettings {
         
        +  /** Returns the object with the settings used for calls to listAclPolicies. */
        +  public PagedCallSettings<
        +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +      listAclPoliciesSettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).listAclPoliciesSettings();
        +  }
        +
           /** Returns the object with the settings used for calls to listInstances. */
           public PagedCallSettings
               listInstancesSettings() {
             return ((MemorystoreStubSettings) getStubSettings()).listInstancesSettings();
           }
         
        +  /** Returns the object with the settings used for calls to getAclPolicy. */
        +  public UnaryCallSettings getAclPolicySettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).getAclPolicySettings();
        +  }
        +
           /** Returns the object with the settings used for calls to getInstance. */
           public UnaryCallSettings getInstanceSettings() {
             return ((MemorystoreStubSettings) getStubSettings()).getInstanceSettings();
           }
         
        +  /** Returns the object with the settings used for calls to createAclPolicy. */
        +  public UnaryCallSettings createAclPolicySettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).createAclPolicySettings();
        +  }
        +
           /** Returns the object with the settings used for calls to createInstance. */
           public UnaryCallSettings createInstanceSettings() {
             return ((MemorystoreStubSettings) getStubSettings()).createInstanceSettings();
        @@ -149,6 +168,17 @@ public UnaryCallSettings createInstanceSetting
             return ((MemorystoreStubSettings) getStubSettings()).createInstanceOperationSettings();
           }
         
        +  /** Returns the object with the settings used for calls to updateAclPolicy. */
        +  public UnaryCallSettings updateAclPolicySettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).updateAclPolicySettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateAclPolicy. */
        +  public OperationCallSettings
        +      updateAclPolicyOperationSettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).updateAclPolicyOperationSettings();
        +  }
        +
           /** Returns the object with the settings used for calls to updateInstance. */
           public UnaryCallSettings updateInstanceSettings() {
             return ((MemorystoreStubSettings) getStubSettings()).updateInstanceSettings();
        @@ -160,6 +190,32 @@ public UnaryCallSettings updateInstanceSetting
             return ((MemorystoreStubSettings) getStubSettings()).updateInstanceOperationSettings();
           }
         
        +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
        +  public UnaryCallSettings deleteAclPolicySettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).deleteAclPolicySettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
        +  public OperationCallSettings
        +      deleteAclPolicyOperationSettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).deleteAclPolicyOperationSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to getAclPolicyRevision. */
        +  public UnaryCallSettings
        +      getAclPolicyRevisionSettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).getAclPolicyRevisionSettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to listAclPolicyRevisions. */
        +  public PagedCallSettings<
        +          ListAclPolicyRevisionsRequest,
        +          ListAclPolicyRevisionsResponse,
        +          ListAclPolicyRevisionsPagedResponse>
        +      listAclPolicyRevisionsSettings() {
        +    return ((MemorystoreStubSettings) getStubSettings()).listAclPolicyRevisionsSettings();
        +  }
        +
           /** Returns the object with the settings used for calls to deleteInstance. */
           public UnaryCallSettings deleteInstanceSettings() {
             return ((MemorystoreStubSettings) getStubSettings()).deleteInstanceSettings();
        @@ -470,6 +526,13 @@ public Builder applyToAllUnaryMethods(
               return this;
             }
         
        +    /** Returns the builder for the settings used for calls to listAclPolicies. */
        +    public PagedCallSettings.Builder<
        +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +        listAclPoliciesSettings() {
        +      return getStubSettingsBuilder().listAclPoliciesSettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to listInstances. */
             public PagedCallSettings.Builder<
                     ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
        @@ -477,11 +540,21 @@ public Builder applyToAllUnaryMethods(
               return getStubSettingsBuilder().listInstancesSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to getAclPolicy. */
        +    public UnaryCallSettings.Builder getAclPolicySettings() {
        +      return getStubSettingsBuilder().getAclPolicySettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to getInstance. */
             public UnaryCallSettings.Builder getInstanceSettings() {
               return getStubSettingsBuilder().getInstanceSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to createAclPolicy. */
        +    public UnaryCallSettings.Builder createAclPolicySettings() {
        +      return getStubSettingsBuilder().createAclPolicySettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to createInstance. */
             public UnaryCallSettings.Builder createInstanceSettings() {
               return getStubSettingsBuilder().createInstanceSettings();
        @@ -493,6 +566,17 @@ public UnaryCallSettings.Builder createInstanc
               return getStubSettingsBuilder().createInstanceOperationSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
        +    public UnaryCallSettings.Builder updateAclPolicySettings() {
        +      return getStubSettingsBuilder().updateAclPolicySettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
        +    public OperationCallSettings.Builder
        +        updateAclPolicyOperationSettings() {
        +      return getStubSettingsBuilder().updateAclPolicyOperationSettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to updateInstance. */
             public UnaryCallSettings.Builder updateInstanceSettings() {
               return getStubSettingsBuilder().updateInstanceSettings();
        @@ -504,6 +588,32 @@ public UnaryCallSettings.Builder updateInstanc
               return getStubSettingsBuilder().updateInstanceOperationSettings();
             }
         
        +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
        +    public UnaryCallSettings.Builder deleteAclPolicySettings() {
        +      return getStubSettingsBuilder().deleteAclPolicySettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
        +    public OperationCallSettings.Builder
        +        deleteAclPolicyOperationSettings() {
        +      return getStubSettingsBuilder().deleteAclPolicyOperationSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getAclPolicyRevision. */
        +    public UnaryCallSettings.Builder
        +        getAclPolicyRevisionSettings() {
        +      return getStubSettingsBuilder().getAclPolicyRevisionSettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */
        +    public PagedCallSettings.Builder<
        +            ListAclPolicyRevisionsRequest,
        +            ListAclPolicyRevisionsResponse,
        +            ListAclPolicyRevisionsPagedResponse>
        +        listAclPolicyRevisionsSettings() {
        +      return getStubSettingsBuilder().listAclPolicyRevisionsSettings();
        +    }
        +
             /** Returns the builder for the settings used for calls to deleteInstance. */
             public UnaryCallSettings.Builder deleteInstanceSettings() {
               return getStubSettingsBuilder().deleteInstanceSettings();
        diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
        index 5f617deae39f..33656b38489d 100644
        --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
        +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/gapic_metadata.json
        @@ -19,9 +19,15 @@
                     "BackupInstance": {
                       "methods": ["backupInstanceAsync", "backupInstanceAsync", "backupInstanceAsync", "backupInstanceOperationCallable", "backupInstanceCallable"]
                     },
        +            "CreateAclPolicy": {
        +              "methods": ["createAclPolicy", "createAclPolicy", "createAclPolicy", "createAclPolicyCallable"]
        +            },
                     "CreateInstance": {
                       "methods": ["createInstanceAsync", "createInstanceAsync", "createInstanceAsync", "createInstanceOperationCallable", "createInstanceCallable"]
                     },
        +            "DeleteAclPolicy": {
        +              "methods": ["deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyAsync", "deleteAclPolicyOperationCallable", "deleteAclPolicyCallable"]
        +            },
                     "DeleteAuthToken": {
                       "methods": ["deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenAsync", "deleteAuthTokenOperationCallable", "deleteAuthTokenCallable"]
                     },
        @@ -40,6 +46,12 @@
                     "FinishMigration": {
                       "methods": ["finishMigrationAsync", "finishMigrationAsync", "finishMigrationAsync", "finishMigrationOperationCallable", "finishMigrationCallable"]
                     },
        +            "GetAclPolicy": {
        +              "methods": ["getAclPolicy", "getAclPolicy", "getAclPolicy", "getAclPolicyCallable"]
        +            },
        +            "GetAclPolicyRevision": {
        +              "methods": ["getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevision", "getAclPolicyRevisionCallable"]
        +            },
                     "GetAuthToken": {
                       "methods": ["getAuthToken", "getAuthToken", "getAuthToken", "getAuthTokenCallable"]
                     },
        @@ -64,6 +76,12 @@
                     "GetTokenAuthUser": {
                       "methods": ["getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUser", "getTokenAuthUserCallable"]
                     },
        +            "ListAclPolicies": {
        +              "methods": ["listAclPolicies", "listAclPolicies", "listAclPolicies", "listAclPoliciesPagedCallable", "listAclPoliciesCallable"]
        +            },
        +            "ListAclPolicyRevisions": {
        +              "methods": ["listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisions", "listAclPolicyRevisionsPagedCallable", "listAclPolicyRevisionsCallable"]
        +            },
                     "ListAuthTokens": {
                       "methods": ["listAuthTokens", "listAuthTokens", "listAuthTokens", "listAuthTokensPagedCallable", "listAuthTokensCallable"]
                     },
        @@ -88,6 +106,9 @@
                     "StartMigration": {
                       "methods": ["startMigrationAsync", "startMigrationOperationCallable", "startMigrationCallable"]
                     },
        +            "UpdateAclPolicy": {
        +              "methods": ["updateAclPolicyAsync", "updateAclPolicyAsync", "updateAclPolicyOperationCallable", "updateAclPolicyCallable"]
        +            },
                     "UpdateInstance": {
                       "methods": ["updateInstanceAsync", "updateInstanceAsync", "updateInstanceOperationCallable", "updateInstanceCallable"]
                     }
        diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/package-info.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/package-info.java
        index fa44a1c7c3c8..7c25c3715beb 100644
        --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/package-info.java
        +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/package-info.java
        @@ -32,8 +32,8 @@
          * // - It may require specifying regional endpoints when creating the service client as shown in
          * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          * try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) {
        - *   InstanceName name = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
        - *   Instance response = memorystoreClient.getInstance(name);
        + *   AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        + *   AclPolicy response = memorystoreClient.getAclPolicy(name);
          * }
          * }
        */ diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java index 7f583380fb04..b0878caa564b 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/GrpcMemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1.stub; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse; @@ -35,6 +37,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyRevision; import com.google.cloud.memorystore.v1.AddAuthTokenRequest; import com.google.cloud.memorystore.v1.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1.AuthToken; @@ -42,13 +46,17 @@ import com.google.cloud.memorystore.v1.BackupCollection; import com.google.cloud.memorystore.v1.BackupInstanceRequest; import com.google.cloud.memorystore.v1.CertificateAuthority; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1.CreateInstanceRequest; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1.DeleteBackupRequest; import com.google.cloud.memorystore.v1.DeleteInstanceRequest; import com.google.cloud.memorystore.v1.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1.ExportBackupRequest; import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1.GetAuthTokenRequest; import com.google.cloud.memorystore.v1.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1.GetBackupRequest; @@ -57,6 +65,10 @@ import com.google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1.ListAuthTokensRequest; import com.google.cloud.memorystore.v1.ListAuthTokensResponse; import com.google.cloud.memorystore.v1.ListBackupCollectionsRequest; @@ -72,6 +84,7 @@ import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1.StartMigrationRequest; import com.google.cloud.memorystore.v1.TokenAuthUser; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1.UpdateInstanceRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; @@ -92,6 +105,18 @@ @NullMarked @Generated("by gapic-generator-java") public class GrpcMemorystoreStub extends MemorystoreStub { + private static final MethodDescriptor + listAclPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/ListAclPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listInstancesMethodDescriptor = MethodDescriptor.newBuilder() @@ -104,6 +129,16 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + getAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/GetAclPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor getInstanceMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -113,6 +148,17 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + createAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/CreateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -124,6 +170,17 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + updateAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/UpdateAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor updateInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -135,6 +192,42 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + deleteAclPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/DeleteAclPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAclPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAclPolicyRevisionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/GetAclPolicyRevision") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAclPolicyRevisionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AclPolicyRevision.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/ListAclPolicyRevisions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAclPolicyRevisionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor deleteInstanceMethodDescriptor = MethodDescriptor.newBuilder() @@ -391,16 +484,34 @@ public class GrpcMemorystoreStub extends MemorystoreStub { .setSampledToLocalTracing(true) .build(); + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable getInstanceCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable createInstanceCallable; private final OperationCallable createInstanceOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable updateInstanceCallable; private final OperationCallable updateInstanceOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; @@ -506,6 +617,18 @@ protected GrpcMemorystoreStub( this.callableFactory = callableFactory; this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + GrpcCallSettings + listAclPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings listInstancesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listInstancesMethodDescriptor) @@ -517,6 +640,17 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings getAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings getInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getInstanceMethodDescriptor) @@ -528,6 +662,17 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings createAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings createInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createInstanceMethodDescriptor) @@ -539,6 +684,16 @@ protected GrpcMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + GrpcCallSettings updateAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); GrpcCallSettings updateInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(updateInstanceMethodDescriptor) @@ -549,6 +704,42 @@ protected GrpcMemorystoreStub( return builder.build(); }) .build(); + GrpcCallSettings deleteAclPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + getAclPolicyRevisionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAclPolicyRevisionsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings deleteInstanceTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -812,15 +1003,27 @@ protected GrpcMemorystoreStub( }) .build(); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.listInstancesCallable = callableFactory.createUnaryCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); this.listInstancesPagedCallable = callableFactory.createPagedCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.getInstanceCallable = callableFactory.createUnaryCallable( getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.createInstanceCallable = callableFactory.createUnaryCallable( createInstanceTransportSettings, settings.createInstanceSettings(), clientContext); @@ -830,6 +1033,15 @@ protected GrpcMemorystoreStub( settings.createInstanceOperationSettings(), clientContext, operationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + operationsStub); this.updateInstanceCallable = callableFactory.createUnaryCallable( updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); @@ -839,6 +1051,30 @@ protected GrpcMemorystoreStub( settings.updateInstanceOperationSettings(), clientContext, operationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -1016,6 +1252,17 @@ public GrpcOperationsStub getOperationsStub() { return operationsStub; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable listInstancesCallable() { return listInstancesCallable; @@ -1027,11 +1274,21 @@ public UnaryCallable listInstancesC return listInstancesPagedCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable getInstanceCallable() { return getInstanceCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable createInstanceCallable() { return createInstanceCallable; @@ -1043,6 +1300,17 @@ public UnaryCallable createInstanceCallable() return createInstanceOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable updateInstanceCallable() { return updateInstanceCallable; @@ -1054,6 +1322,35 @@ public UnaryCallable updateInstanceCallable() return updateInstanceOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java index 711bd14ae613..4f9ceb1ec5d0 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/HttpJsonMemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1.stub; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse; @@ -43,6 +45,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyRevision; import com.google.cloud.memorystore.v1.AddAuthTokenRequest; import com.google.cloud.memorystore.v1.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1.AuthToken; @@ -50,13 +54,17 @@ import com.google.cloud.memorystore.v1.BackupCollection; import com.google.cloud.memorystore.v1.BackupInstanceRequest; import com.google.cloud.memorystore.v1.CertificateAuthority; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1.CreateInstanceRequest; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1.DeleteBackupRequest; import com.google.cloud.memorystore.v1.DeleteInstanceRequest; import com.google.cloud.memorystore.v1.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1.ExportBackupRequest; import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1.GetAuthTokenRequest; import com.google.cloud.memorystore.v1.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1.GetBackupRequest; @@ -65,6 +73,10 @@ import com.google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1.ListAuthTokensRequest; import com.google.cloud.memorystore.v1.ListAuthTokensResponse; import com.google.cloud.memorystore.v1.ListBackupCollectionsRequest; @@ -80,6 +92,7 @@ import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1.StartMigrationRequest; import com.google.cloud.memorystore.v1.TokenAuthUser; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1.UpdateInstanceRequest; import com.google.common.collect.ImmutableMap; import com.google.longrunning.Operation; @@ -105,6 +118,7 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { private static final TypeRegistry typeRegistry = TypeRegistry.newBuilder() + .add(AclPolicy.getDescriptor()) .add(Empty.getDescriptor()) .add(Instance.getDescriptor()) .add(TokenAuthUser.getDescriptor()) @@ -112,6 +126,42 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .add(OperationMetadata.getDescriptor()) .build(); + private static final ApiMethodDescriptor + listAclPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/ListAclPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/aclPolicies", + 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(ListAclPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor listInstancesMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -150,6 +200,40 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private static final ApiMethodDescriptor + getAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/GetAclPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*}", + 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(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor getInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -184,6 +268,46 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private static final ApiMethodDescriptor + createAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/CreateAclPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*}/aclPolicies", + 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, "aclPolicyId", request.getAclPolicyId()); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AclPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -226,6 +350,49 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + updateAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/UpdateAclPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{aclPolicy.name=projects/*/locations/*/aclPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "aclPolicy.name", request.getAclPolicy().getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "requestId", request.getRequestId()); + serializer.putQueryParam(fields, "updateMask", request.getUpdateMask()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("aclPolicy", request.getAclPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor updateInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -269,6 +436,117 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { HttpJsonOperationSnapshot.create(response)) .build(); + private static final ApiMethodDescriptor + deleteAclPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/DeleteAclPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*}", + 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, "etag", request.getEtag()); + 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( + (DeleteAclPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAclPolicyRevisionMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/GetAclPolicyRevision") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}", + 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(AclPolicyRevision.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse> + listAclPolicyRevisionsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.cloud.memorystore.v1.Memorystore/ListAclPolicyRevisions") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/{parent=projects/*/locations/*/aclPolicies/*}/revisions", + 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(ListAclPolicyRevisionsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor deleteInstanceMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1129,16 +1407,34 @@ public class HttpJsonMemorystoreStub extends MemorystoreStub { .build()) .build(); + private final UnaryCallable + listAclPoliciesCallable; + private final UnaryCallable + listAclPoliciesPagedCallable; private final UnaryCallable listInstancesCallable; private final UnaryCallable listInstancesPagedCallable; + private final UnaryCallable getAclPolicyCallable; private final UnaryCallable getInstanceCallable; + private final UnaryCallable createAclPolicyCallable; private final UnaryCallable createInstanceCallable; private final OperationCallable createInstanceOperationCallable; + private final UnaryCallable updateAclPolicyCallable; + private final OperationCallable + updateAclPolicyOperationCallable; private final UnaryCallable updateInstanceCallable; private final OperationCallable updateInstanceOperationCallable; + private final UnaryCallable deleteAclPolicyCallable; + private final OperationCallable + deleteAclPolicyOperationCallable; + private final UnaryCallable + getAclPolicyRevisionCallable; + private final UnaryCallable + listAclPolicyRevisionsCallable; + private final UnaryCallable + listAclPolicyRevisionsPagedCallable; private final UnaryCallable deleteInstanceCallable; private final OperationCallable deleteInstanceOperationCallable; @@ -1272,6 +1568,19 @@ protected HttpJsonMemorystoreStub( .build()) .build()); + HttpJsonCallSettings + listAclPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAclPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings listInstancesTransportSettings = HttpJsonCallSettings.newBuilder() @@ -1285,6 +1594,18 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings getAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); HttpJsonCallSettings getInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(getInstanceMethodDescriptor) @@ -1297,6 +1618,18 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings createAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings createInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createInstanceMethodDescriptor) @@ -1309,6 +1642,17 @@ protected HttpJsonMemorystoreStub( }) .setResourceNameExtractor(request -> request.getParent()) .build(); + HttpJsonCallSettings updateAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("acl_policy.name", String.valueOf(request.getAclPolicy().getName())); + return builder.build(); + }) + .build(); HttpJsonCallSettings updateInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(updateInstanceMethodDescriptor) @@ -1320,6 +1664,45 @@ protected HttpJsonMemorystoreStub( return builder.build(); }) .build(); + HttpJsonCallSettings deleteAclPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAclPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + getAclPolicyRevisionTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAclPolicyRevisionMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAclPolicyRevisionsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(listAclPolicyRevisionsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings deleteInstanceTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(deleteInstanceMethodDescriptor) @@ -1608,15 +1991,27 @@ protected HttpJsonMemorystoreStub( }) .build(); + this.listAclPoliciesCallable = + callableFactory.createUnaryCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); + this.listAclPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAclPoliciesTransportSettings, settings.listAclPoliciesSettings(), clientContext); this.listInstancesCallable = callableFactory.createUnaryCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); this.listInstancesPagedCallable = callableFactory.createPagedCallable( listInstancesTransportSettings, settings.listInstancesSettings(), clientContext); + this.getAclPolicyCallable = + callableFactory.createUnaryCallable( + getAclPolicyTransportSettings, settings.getAclPolicySettings(), clientContext); this.getInstanceCallable = callableFactory.createUnaryCallable( getInstanceTransportSettings, settings.getInstanceSettings(), clientContext); + this.createAclPolicyCallable = + callableFactory.createUnaryCallable( + createAclPolicyTransportSettings, settings.createAclPolicySettings(), clientContext); this.createInstanceCallable = callableFactory.createUnaryCallable( createInstanceTransportSettings, settings.createInstanceSettings(), clientContext); @@ -1626,6 +2021,15 @@ protected HttpJsonMemorystoreStub( settings.createInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.updateAclPolicyCallable = + callableFactory.createUnaryCallable( + updateAclPolicyTransportSettings, settings.updateAclPolicySettings(), clientContext); + this.updateAclPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAclPolicyTransportSettings, + settings.updateAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); this.updateInstanceCallable = callableFactory.createUnaryCallable( updateInstanceTransportSettings, settings.updateInstanceSettings(), clientContext); @@ -1635,6 +2039,30 @@ protected HttpJsonMemorystoreStub( settings.updateInstanceOperationSettings(), clientContext, httpJsonOperationsStub); + this.deleteAclPolicyCallable = + callableFactory.createUnaryCallable( + deleteAclPolicyTransportSettings, settings.deleteAclPolicySettings(), clientContext); + this.deleteAclPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAclPolicyTransportSettings, + settings.deleteAclPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAclPolicyRevisionCallable = + callableFactory.createUnaryCallable( + getAclPolicyRevisionTransportSettings, + settings.getAclPolicyRevisionSettings(), + clientContext); + this.listAclPolicyRevisionsCallable = + callableFactory.createUnaryCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); + this.listAclPolicyRevisionsPagedCallable = + callableFactory.createPagedCallable( + listAclPolicyRevisionsTransportSettings, + settings.listAclPolicyRevisionsSettings(), + clientContext); this.deleteInstanceCallable = callableFactory.createUnaryCallable( deleteInstanceTransportSettings, settings.deleteInstanceSettings(), clientContext); @@ -1811,10 +2239,17 @@ protected HttpJsonMemorystoreStub( @InternalApi public static List getMethodDescriptors() { List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(listAclPoliciesMethodDescriptor); methodDescriptors.add(listInstancesMethodDescriptor); + methodDescriptors.add(getAclPolicyMethodDescriptor); methodDescriptors.add(getInstanceMethodDescriptor); + methodDescriptors.add(createAclPolicyMethodDescriptor); methodDescriptors.add(createInstanceMethodDescriptor); + methodDescriptors.add(updateAclPolicyMethodDescriptor); methodDescriptors.add(updateInstanceMethodDescriptor); + methodDescriptors.add(deleteAclPolicyMethodDescriptor); + methodDescriptors.add(getAclPolicyRevisionMethodDescriptor); + methodDescriptors.add(listAclPolicyRevisionsMethodDescriptor); methodDescriptors.add(deleteInstanceMethodDescriptor); methodDescriptors.add(getCertificateAuthorityMethodDescriptor); methodDescriptors.add(getSharedRegionalCertificateAuthorityMethodDescriptor); @@ -1845,6 +2280,17 @@ public HttpJsonOperationsStub getHttpJsonOperationsStub() { return httpJsonOperationsStub; } + @Override + public UnaryCallable listAclPoliciesCallable() { + return listAclPoliciesCallable; + } + + @Override + public UnaryCallable + listAclPoliciesPagedCallable() { + return listAclPoliciesPagedCallable; + } + @Override public UnaryCallable listInstancesCallable() { return listInstancesCallable; @@ -1856,11 +2302,21 @@ public UnaryCallable listInstancesC return listInstancesPagedCallable; } + @Override + public UnaryCallable getAclPolicyCallable() { + return getAclPolicyCallable; + } + @Override public UnaryCallable getInstanceCallable() { return getInstanceCallable; } + @Override + public UnaryCallable createAclPolicyCallable() { + return createAclPolicyCallable; + } + @Override public UnaryCallable createInstanceCallable() { return createInstanceCallable; @@ -1872,6 +2328,17 @@ public UnaryCallable createInstanceCallable() return createInstanceOperationCallable; } + @Override + public UnaryCallable updateAclPolicyCallable() { + return updateAclPolicyCallable; + } + + @Override + public OperationCallable + updateAclPolicyOperationCallable() { + return updateAclPolicyOperationCallable; + } + @Override public UnaryCallable updateInstanceCallable() { return updateInstanceCallable; @@ -1883,6 +2350,35 @@ public UnaryCallable updateInstanceCallable() return updateInstanceOperationCallable; } + @Override + public UnaryCallable deleteAclPolicyCallable() { + return deleteAclPolicyCallable; + } + + @Override + public OperationCallable + deleteAclPolicyOperationCallable() { + return deleteAclPolicyOperationCallable; + } + + @Override + public UnaryCallable + getAclPolicyRevisionCallable() { + return getAclPolicyRevisionCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsCallable() { + return listAclPolicyRevisionsCallable; + } + + @Override + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + return listAclPolicyRevisionsPagedCallable; + } + @Override public UnaryCallable deleteInstanceCallable() { return deleteInstanceCallable; diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java index ea7a1079c34c..e1fc411138cd 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStub.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1.stub; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse; @@ -30,6 +32,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyRevision; import com.google.cloud.memorystore.v1.AddAuthTokenRequest; import com.google.cloud.memorystore.v1.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1.AuthToken; @@ -37,13 +41,17 @@ import com.google.cloud.memorystore.v1.BackupCollection; import com.google.cloud.memorystore.v1.BackupInstanceRequest; import com.google.cloud.memorystore.v1.CertificateAuthority; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1.CreateInstanceRequest; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1.DeleteBackupRequest; import com.google.cloud.memorystore.v1.DeleteInstanceRequest; import com.google.cloud.memorystore.v1.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1.ExportBackupRequest; import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1.GetAuthTokenRequest; import com.google.cloud.memorystore.v1.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1.GetBackupRequest; @@ -52,6 +60,10 @@ import com.google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1.ListAuthTokensRequest; import com.google.cloud.memorystore.v1.ListAuthTokensResponse; import com.google.cloud.memorystore.v1.ListBackupCollectionsRequest; @@ -67,6 +79,7 @@ import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1.StartMigrationRequest; import com.google.cloud.memorystore.v1.TokenAuthUser; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1.UpdateInstanceRequest; import com.google.longrunning.Operation; import com.google.longrunning.stub.OperationsStub; @@ -94,6 +107,15 @@ public abstract class MemorystoreStub implements BackgroundResource { return null; } + public UnaryCallable + listAclPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesPagedCallable()"); + } + + public UnaryCallable listAclPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPoliciesCallable()"); + } + public UnaryCallable listInstancesPagedCallable() { throw new UnsupportedOperationException("Not implemented: listInstancesPagedCallable()"); @@ -103,10 +125,18 @@ public UnaryCallable listInstancesC throw new UnsupportedOperationException("Not implemented: listInstancesCallable()"); } + public UnaryCallable getAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyCallable()"); + } + public UnaryCallable getInstanceCallable() { throw new UnsupportedOperationException("Not implemented: getInstanceCallable()"); } + public UnaryCallable createAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAclPolicyCallable()"); + } + public OperationCallable createInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: createInstanceOperationCallable()"); @@ -116,6 +146,15 @@ public UnaryCallable createInstanceCallable() throw new UnsupportedOperationException("Not implemented: createInstanceCallable()"); } + public OperationCallable + updateAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyOperationCallable()"); + } + + public UnaryCallable updateAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAclPolicyCallable()"); + } + public OperationCallable updateInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: updateInstanceOperationCallable()"); @@ -125,6 +164,31 @@ public UnaryCallable updateInstanceCallable() throw new UnsupportedOperationException("Not implemented: updateInstanceCallable()"); } + public OperationCallable + deleteAclPolicyOperationCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyOperationCallable()"); + } + + public UnaryCallable deleteAclPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAclPolicyCallable()"); + } + + public UnaryCallable + getAclPolicyRevisionCallable() { + throw new UnsupportedOperationException("Not implemented: getAclPolicyRevisionCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listAclPolicyRevisionsPagedCallable()"); + } + + public UnaryCallable + listAclPolicyRevisionsCallable() { + throw new UnsupportedOperationException("Not implemented: listAclPolicyRevisionsCallable()"); + } + public OperationCallable deleteInstanceOperationCallable() { throw new UnsupportedOperationException("Not implemented: deleteInstanceOperationCallable()"); diff --git a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java index 1132ba176bd8..ba4e34c6e16b 100644 --- a/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java +++ b/java-valkey/google-cloud-valkey/src/main/java/com/google/cloud/memorystore/v1/stub/MemorystoreStubSettings.java @@ -16,6 +16,8 @@ package com.google.cloud.memorystore.v1.stub; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse; +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse; import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse; @@ -58,6 +60,8 @@ import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; import com.google.cloud.location.Location; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyRevision; import com.google.cloud.memorystore.v1.AddAuthTokenRequest; import com.google.cloud.memorystore.v1.AddTokenAuthUserRequest; import com.google.cloud.memorystore.v1.AuthToken; @@ -65,13 +69,17 @@ import com.google.cloud.memorystore.v1.BackupCollection; import com.google.cloud.memorystore.v1.BackupInstanceRequest; import com.google.cloud.memorystore.v1.CertificateAuthority; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; import com.google.cloud.memorystore.v1.CreateInstanceRequest; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; import com.google.cloud.memorystore.v1.DeleteAuthTokenRequest; import com.google.cloud.memorystore.v1.DeleteBackupRequest; import com.google.cloud.memorystore.v1.DeleteInstanceRequest; import com.google.cloud.memorystore.v1.DeleteTokenAuthUserRequest; import com.google.cloud.memorystore.v1.ExportBackupRequest; import com.google.cloud.memorystore.v1.FinishMigrationRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; import com.google.cloud.memorystore.v1.GetAuthTokenRequest; import com.google.cloud.memorystore.v1.GetBackupCollectionRequest; import com.google.cloud.memorystore.v1.GetBackupRequest; @@ -80,6 +88,10 @@ import com.google.cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest; import com.google.cloud.memorystore.v1.GetTokenAuthUserRequest; import com.google.cloud.memorystore.v1.Instance; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse; import com.google.cloud.memorystore.v1.ListAuthTokensRequest; import com.google.cloud.memorystore.v1.ListAuthTokensResponse; import com.google.cloud.memorystore.v1.ListBackupCollectionsRequest; @@ -95,6 +107,7 @@ import com.google.cloud.memorystore.v1.SharedRegionalCertificateAuthority; import com.google.cloud.memorystore.v1.StartMigrationRequest; import com.google.cloud.memorystore.v1.TokenAuthUser; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; import com.google.cloud.memorystore.v1.UpdateInstanceRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -126,7 +139,7 @@ * *

        For example, to set the * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) - * of getInstance: + * of getAclPolicy: * *

        {@code
          * // This snippet has been automatically generated and should be regarded as a code template only.
        @@ -137,10 +150,10 @@
          * MemorystoreStubSettings.Builder memorystoreSettingsBuilder =
          *     MemorystoreStubSettings.newBuilder();
          * memorystoreSettingsBuilder
        - *     .getInstanceSettings()
        + *     .getAclPolicySettings()
          *     .setRetrySettings(
          *         memorystoreSettingsBuilder
        - *             .getInstanceSettings()
        + *             .getAclPolicySettings()
          *             .getRetrySettings()
          *             .toBuilder()
          *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
        @@ -197,16 +210,34 @@ public class MemorystoreStubSettings extends StubSettings
        +      listAclPoliciesSettings;
           private final PagedCallSettings<
                   ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
               listInstancesSettings;
        +  private final UnaryCallSettings getAclPolicySettings;
           private final UnaryCallSettings getInstanceSettings;
        +  private final UnaryCallSettings createAclPolicySettings;
           private final UnaryCallSettings createInstanceSettings;
           private final OperationCallSettings
               createInstanceOperationSettings;
        +  private final UnaryCallSettings updateAclPolicySettings;
        +  private final OperationCallSettings
        +      updateAclPolicyOperationSettings;
           private final UnaryCallSettings updateInstanceSettings;
           private final OperationCallSettings
               updateInstanceOperationSettings;
        +  private final UnaryCallSettings deleteAclPolicySettings;
        +  private final OperationCallSettings
        +      deleteAclPolicyOperationSettings;
        +  private final UnaryCallSettings
        +      getAclPolicyRevisionSettings;
        +  private final PagedCallSettings<
        +          ListAclPolicyRevisionsRequest,
        +          ListAclPolicyRevisionsResponse,
        +          ListAclPolicyRevisionsPagedResponse>
        +      listAclPolicyRevisionsSettings;
           private final UnaryCallSettings deleteInstanceSettings;
           private final OperationCallSettings
               deleteInstanceOperationSettings;
        @@ -270,6 +301,43 @@ public class MemorystoreStubSettings extends StubSettings getLocationSettings;
         
        +  private static final PagedListDescriptor<
        +          ListAclPoliciesRequest, ListAclPoliciesResponse, AclPolicy>
        +      LIST_ACL_POLICIES_PAGE_STR_DESC =
        +          new PagedListDescriptor() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public ListAclPoliciesRequest injectToken(
        +                ListAclPoliciesRequest payload, String token) {
        +              return ListAclPoliciesRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public ListAclPoliciesRequest injectPageSize(
        +                ListAclPoliciesRequest payload, int pageSize) {
        +              return ListAclPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(ListAclPoliciesRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(ListAclPoliciesResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(ListAclPoliciesResponse payload) {
        +              return payload.getAclPoliciesList();
        +            }
        +          };
        +
           private static final PagedListDescriptor
               LIST_INSTANCES_PAGE_STR_DESC =
                   new PagedListDescriptor() {
        @@ -304,6 +372,47 @@ public Iterable extractResources(ListInstancesResponse payload) {
                     }
                   };
         
        +  private static final PagedListDescriptor<
        +          ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>
        +      LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC =
        +          new PagedListDescriptor<
        +              ListAclPolicyRevisionsRequest, ListAclPolicyRevisionsResponse, AclPolicyRevision>() {
        +            @Override
        +            public String emptyToken() {
        +              return "";
        +            }
        +
        +            @Override
        +            public ListAclPolicyRevisionsRequest injectToken(
        +                ListAclPolicyRevisionsRequest payload, String token) {
        +              return ListAclPolicyRevisionsRequest.newBuilder(payload).setPageToken(token).build();
        +            }
        +
        +            @Override
        +            public ListAclPolicyRevisionsRequest injectPageSize(
        +                ListAclPolicyRevisionsRequest payload, int pageSize) {
        +              return ListAclPolicyRevisionsRequest.newBuilder(payload)
        +                  .setPageSize(pageSize)
        +                  .build();
        +            }
        +
        +            @Override
        +            public Integer extractPageSize(ListAclPolicyRevisionsRequest payload) {
        +              return payload.getPageSize();
        +            }
        +
        +            @Override
        +            public String extractNextToken(ListAclPolicyRevisionsResponse payload) {
        +              return payload.getNextPageToken();
        +            }
        +
        +            @Override
        +            public Iterable extractResources(
        +                ListAclPolicyRevisionsResponse payload) {
        +              return payload.getAclPolicyRevisionsList();
        +            }
        +          };
        +
           private static final PagedListDescriptor<
                   ListBackupCollectionsRequest, ListBackupCollectionsResponse, BackupCollection>
               LIST_BACKUP_COLLECTIONS_PAGE_STR_DESC =
        @@ -484,6 +593,23 @@ public Iterable extractResources(ListLocationsResponse payload) {
                     }
                   };
         
        +  private static final PagedListResponseFactory<
        +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +      LIST_ACL_POLICIES_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable callable,
        +                ListAclPoliciesRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext pageContext =
        +                  PageContext.create(callable, LIST_ACL_POLICIES_PAGE_STR_DESC, request, context);
        +              return ListAclPoliciesPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
           private static final PagedListResponseFactory<
                   ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
               LIST_INSTANCES_PAGE_STR_FACT =
        @@ -501,6 +627,33 @@ public ApiFuture getFuturePagedResponse(
                     }
                   };
         
        +  private static final PagedListResponseFactory<
        +          ListAclPolicyRevisionsRequest,
        +          ListAclPolicyRevisionsResponse,
        +          ListAclPolicyRevisionsPagedResponse>
        +      LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT =
        +          new PagedListResponseFactory<
        +              ListAclPolicyRevisionsRequest,
        +              ListAclPolicyRevisionsResponse,
        +              ListAclPolicyRevisionsPagedResponse>() {
        +            @Override
        +            public ApiFuture getFuturePagedResponse(
        +                UnaryCallable
        +                    callable,
        +                ListAclPolicyRevisionsRequest request,
        +                ApiCallContext context,
        +                ApiFuture futureResponse) {
        +              PageContext<
        +                      ListAclPolicyRevisionsRequest,
        +                      ListAclPolicyRevisionsResponse,
        +                      AclPolicyRevision>
        +                  pageContext =
        +                      PageContext.create(
        +                          callable, LIST_ACL_POLICY_REVISIONS_PAGE_STR_DESC, request, context);
        +              return ListAclPolicyRevisionsPagedResponse.createAsync(pageContext, futureResponse);
        +            }
        +          };
        +
           private static final PagedListResponseFactory<
                   ListBackupCollectionsRequest,
                   ListBackupCollectionsResponse,
        @@ -597,17 +750,34 @@ public ApiFuture getFuturePagedResponse(
                     }
                   };
         
        +  /** Returns the object with the settings used for calls to listAclPolicies. */
        +  public PagedCallSettings<
        +          ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +      listAclPoliciesSettings() {
        +    return listAclPoliciesSettings;
        +  }
        +
           /** Returns the object with the settings used for calls to listInstances. */
           public PagedCallSettings
               listInstancesSettings() {
             return listInstancesSettings;
           }
         
        +  /** Returns the object with the settings used for calls to getAclPolicy. */
        +  public UnaryCallSettings getAclPolicySettings() {
        +    return getAclPolicySettings;
        +  }
        +
           /** Returns the object with the settings used for calls to getInstance. */
           public UnaryCallSettings getInstanceSettings() {
             return getInstanceSettings;
           }
         
        +  /** Returns the object with the settings used for calls to createAclPolicy. */
        +  public UnaryCallSettings createAclPolicySettings() {
        +    return createAclPolicySettings;
        +  }
        +
           /** Returns the object with the settings used for calls to createInstance. */
           public UnaryCallSettings createInstanceSettings() {
             return createInstanceSettings;
        @@ -619,6 +789,17 @@ public UnaryCallSettings createInstanceSetting
             return createInstanceOperationSettings;
           }
         
        +  /** Returns the object with the settings used for calls to updateAclPolicy. */
        +  public UnaryCallSettings updateAclPolicySettings() {
        +    return updateAclPolicySettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to updateAclPolicy. */
        +  public OperationCallSettings
        +      updateAclPolicyOperationSettings() {
        +    return updateAclPolicyOperationSettings;
        +  }
        +
           /** Returns the object with the settings used for calls to updateInstance. */
           public UnaryCallSettings updateInstanceSettings() {
             return updateInstanceSettings;
        @@ -630,6 +811,32 @@ public UnaryCallSettings updateInstanceSetting
             return updateInstanceOperationSettings;
           }
         
        +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
        +  public UnaryCallSettings deleteAclPolicySettings() {
        +    return deleteAclPolicySettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to deleteAclPolicy. */
        +  public OperationCallSettings
        +      deleteAclPolicyOperationSettings() {
        +    return deleteAclPolicyOperationSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to getAclPolicyRevision. */
        +  public UnaryCallSettings
        +      getAclPolicyRevisionSettings() {
        +    return getAclPolicyRevisionSettings;
        +  }
        +
        +  /** Returns the object with the settings used for calls to listAclPolicyRevisions. */
        +  public PagedCallSettings<
        +          ListAclPolicyRevisionsRequest,
        +          ListAclPolicyRevisionsResponse,
        +          ListAclPolicyRevisionsPagedResponse>
        +      listAclPolicyRevisionsSettings() {
        +    return listAclPolicyRevisionsSettings;
        +  }
        +
           /** Returns the object with the settings used for calls to deleteInstance. */
           public UnaryCallSettings deleteInstanceSettings() {
             return deleteInstanceSettings;
        @@ -939,12 +1146,21 @@ public Builder toBuilder() {
           protected MemorystoreStubSettings(Builder settingsBuilder) throws IOException {
             super(settingsBuilder);
         
        +    listAclPoliciesSettings = settingsBuilder.listAclPoliciesSettings().build();
             listInstancesSettings = settingsBuilder.listInstancesSettings().build();
        +    getAclPolicySettings = settingsBuilder.getAclPolicySettings().build();
             getInstanceSettings = settingsBuilder.getInstanceSettings().build();
        +    createAclPolicySettings = settingsBuilder.createAclPolicySettings().build();
             createInstanceSettings = settingsBuilder.createInstanceSettings().build();
             createInstanceOperationSettings = settingsBuilder.createInstanceOperationSettings().build();
        +    updateAclPolicySettings = settingsBuilder.updateAclPolicySettings().build();
        +    updateAclPolicyOperationSettings = settingsBuilder.updateAclPolicyOperationSettings().build();
             updateInstanceSettings = settingsBuilder.updateInstanceSettings().build();
             updateInstanceOperationSettings = settingsBuilder.updateInstanceOperationSettings().build();
        +    deleteAclPolicySettings = settingsBuilder.deleteAclPolicySettings().build();
        +    deleteAclPolicyOperationSettings = settingsBuilder.deleteAclPolicyOperationSettings().build();
        +    getAclPolicyRevisionSettings = settingsBuilder.getAclPolicyRevisionSettings().build();
        +    listAclPolicyRevisionsSettings = settingsBuilder.listAclPolicyRevisionsSettings().build();
             deleteInstanceSettings = settingsBuilder.deleteInstanceSettings().build();
             deleteInstanceOperationSettings = settingsBuilder.deleteInstanceOperationSettings().build();
             getCertificateAuthoritySettings = settingsBuilder.getCertificateAuthoritySettings().build();
        @@ -996,18 +1212,40 @@ protected LibraryMetadata getLibraryMetadata() {
           /** Builder for MemorystoreStubSettings. */
           public static class Builder extends StubSettings.Builder {
             private final ImmutableList> unaryMethodSettingsBuilders;
        +    private final PagedCallSettings.Builder<
        +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +        listAclPoliciesSettings;
             private final PagedCallSettings.Builder<
                     ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
                 listInstancesSettings;
        +    private final UnaryCallSettings.Builder getAclPolicySettings;
             private final UnaryCallSettings.Builder getInstanceSettings;
        +    private final UnaryCallSettings.Builder
        +        createAclPolicySettings;
             private final UnaryCallSettings.Builder
                 createInstanceSettings;
             private final OperationCallSettings.Builder
                 createInstanceOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        updateAclPolicySettings;
        +    private final OperationCallSettings.Builder<
        +            UpdateAclPolicyRequest, AclPolicy, OperationMetadata>
        +        updateAclPolicyOperationSettings;
             private final UnaryCallSettings.Builder
                 updateInstanceSettings;
             private final OperationCallSettings.Builder
                 updateInstanceOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        deleteAclPolicySettings;
        +    private final OperationCallSettings.Builder
        +        deleteAclPolicyOperationSettings;
        +    private final UnaryCallSettings.Builder
        +        getAclPolicyRevisionSettings;
        +    private final PagedCallSettings.Builder<
        +            ListAclPolicyRevisionsRequest,
        +            ListAclPolicyRevisionsResponse,
        +            ListAclPolicyRevisionsPagedResponse>
        +        listAclPolicyRevisionsSettings;
             private final UnaryCallSettings.Builder
                 deleteInstanceSettings;
             private final OperationCallSettings.Builder
        @@ -1133,12 +1371,22 @@ protected Builder() {
             protected Builder(@Nullable ClientContext clientContext) {
               super(clientContext);
         
        +      listAclPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACL_POLICIES_PAGE_STR_FACT);
               listInstancesSettings = PagedCallSettings.newBuilder(LIST_INSTANCES_PAGE_STR_FACT);
        +      getAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               getInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      createAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               createInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               createInstanceOperationSettings = OperationCallSettings.newBuilder();
        +      updateAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      updateAclPolicyOperationSettings = OperationCallSettings.newBuilder();
               updateInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               updateInstanceOperationSettings = OperationCallSettings.newBuilder();
        +      deleteAclPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      deleteAclPolicyOperationSettings = OperationCallSettings.newBuilder();
        +      getAclPolicyRevisionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        +      listAclPolicyRevisionsSettings =
        +          PagedCallSettings.newBuilder(LIST_ACL_POLICY_REVISIONS_PAGE_STR_FACT);
               deleteInstanceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
               deleteInstanceOperationSettings = OperationCallSettings.newBuilder();
               getCertificateAuthoritySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
        @@ -1179,10 +1427,17 @@ protected Builder(@Nullable ClientContext clientContext) {
         
               unaryMethodSettingsBuilders =
                   ImmutableList.>of(
        +              listAclPoliciesSettings,
                       listInstancesSettings,
        +              getAclPolicySettings,
                       getInstanceSettings,
        +              createAclPolicySettings,
                       createInstanceSettings,
        +              updateAclPolicySettings,
                       updateInstanceSettings,
        +              deleteAclPolicySettings,
        +              getAclPolicyRevisionSettings,
        +              listAclPolicyRevisionsSettings,
                       deleteInstanceSettings,
                       getCertificateAuthoritySettings,
                       getSharedRegionalCertificateAuthoritySettings,
        @@ -1212,12 +1467,21 @@ protected Builder(@Nullable ClientContext clientContext) {
             protected Builder(MemorystoreStubSettings settings) {
               super(settings);
         
        +      listAclPoliciesSettings = settings.listAclPoliciesSettings.toBuilder();
               listInstancesSettings = settings.listInstancesSettings.toBuilder();
        +      getAclPolicySettings = settings.getAclPolicySettings.toBuilder();
               getInstanceSettings = settings.getInstanceSettings.toBuilder();
        +      createAclPolicySettings = settings.createAclPolicySettings.toBuilder();
               createInstanceSettings = settings.createInstanceSettings.toBuilder();
               createInstanceOperationSettings = settings.createInstanceOperationSettings.toBuilder();
        +      updateAclPolicySettings = settings.updateAclPolicySettings.toBuilder();
        +      updateAclPolicyOperationSettings = settings.updateAclPolicyOperationSettings.toBuilder();
               updateInstanceSettings = settings.updateInstanceSettings.toBuilder();
               updateInstanceOperationSettings = settings.updateInstanceOperationSettings.toBuilder();
        +      deleteAclPolicySettings = settings.deleteAclPolicySettings.toBuilder();
        +      deleteAclPolicyOperationSettings = settings.deleteAclPolicyOperationSettings.toBuilder();
        +      getAclPolicyRevisionSettings = settings.getAclPolicyRevisionSettings.toBuilder();
        +      listAclPolicyRevisionsSettings = settings.listAclPolicyRevisionsSettings.toBuilder();
               deleteInstanceSettings = settings.deleteInstanceSettings.toBuilder();
               deleteInstanceOperationSettings = settings.deleteInstanceOperationSettings.toBuilder();
               getCertificateAuthoritySettings = settings.getCertificateAuthoritySettings.toBuilder();
        @@ -1258,10 +1522,17 @@ protected Builder(MemorystoreStubSettings settings) {
         
               unaryMethodSettingsBuilders =
                   ImmutableList.>of(
        +              listAclPoliciesSettings,
                       listInstancesSettings,
        +              getAclPolicySettings,
                       getInstanceSettings,
        +              createAclPolicySettings,
                       createInstanceSettings,
        +              updateAclPolicySettings,
                       updateInstanceSettings,
        +              deleteAclPolicySettings,
        +              getAclPolicyRevisionSettings,
        +              listAclPolicyRevisionsSettings,
                       deleteInstanceSettings,
                       getCertificateAuthoritySettings,
                       getSharedRegionalCertificateAuthoritySettings,
        @@ -1312,26 +1583,61 @@ private static Builder createHttpJsonDefault() {
             }
         
             private static Builder initDefaults(Builder builder) {
        +      builder
        +          .listAclPoliciesSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
        +
               builder
                   .listInstancesSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
         
        +      builder
        +          .getAclPolicySettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
        +
               builder
                   .getInstanceSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
         
        +      builder
        +          .createAclPolicySettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
        +
               builder
                   .createInstanceSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
         
        +      builder
        +          .updateAclPolicySettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
        +
               builder
                   .updateInstanceSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
                   .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
         
        +      builder
        +          .deleteAclPolicySettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"));
        +
        +      builder
        +          .getAclPolicyRevisionSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
        +
        +      builder
        +          .listAclPolicyRevisionsSettings()
        +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
        +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
        +
               builder
                   .deleteInstanceSettings()
                   .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        @@ -1471,6 +1777,30 @@ private static Builder initDefaults(Builder builder) {
                               .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                               .build()));
         
        +      builder
        +          .updateAclPolicyOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(AclPolicy.class))
        +          .setMetadataTransformer(
        +              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
        +          .setPollingAlgorithm(
        +              OperationTimedPollAlgorithm.create(
        +                  RetrySettings.newBuilder()
        +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
        +                      .setRetryDelayMultiplier(1.5)
        +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
        +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
        +                      .setRpcTimeoutMultiplier(1.0)
        +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
        +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
        +                      .build()));
        +
               builder
                   .updateInstanceOperationSettings()
                   .setInitialCallSettings(
        @@ -1495,6 +1825,30 @@ private static Builder initDefaults(Builder builder) {
                               .setTotalTimeoutDuration(Duration.ofMillis(300000L))
                               .build()));
         
        +      builder
        +          .deleteAclPolicyOperationSettings()
        +          .setInitialCallSettings(
        +              UnaryCallSettings
        +                  .newUnaryCallSettingsBuilder()
        +                  .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
        +                  .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params"))
        +                  .build())
        +          .setResponseTransformer(
        +              ProtoOperationTransformers.ResponseTransformer.create(Empty.class))
        +          .setMetadataTransformer(
        +              ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class))
        +          .setPollingAlgorithm(
        +              OperationTimedPollAlgorithm.create(
        +                  RetrySettings.newBuilder()
        +                      .setInitialRetryDelayDuration(Duration.ofMillis(5000L))
        +                      .setRetryDelayMultiplier(1.5)
        +                      .setMaxRetryDelayDuration(Duration.ofMillis(45000L))
        +                      .setInitialRpcTimeoutDuration(Duration.ZERO)
        +                      .setRpcTimeoutMultiplier(1.0)
        +                      .setMaxRpcTimeoutDuration(Duration.ZERO)
        +                      .setTotalTimeoutDuration(Duration.ofMillis(300000L))
        +                      .build()));
        +
               builder
                   .deleteInstanceOperationSettings()
                   .setInitialCallSettings(
        @@ -1777,6 +2131,13 @@ public Builder applyToAllUnaryMethods(
               return unaryMethodSettingsBuilders;
             }
         
        +    /** Returns the builder for the settings used for calls to listAclPolicies. */
        +    public PagedCallSettings.Builder<
        +            ListAclPoliciesRequest, ListAclPoliciesResponse, ListAclPoliciesPagedResponse>
        +        listAclPoliciesSettings() {
        +      return listAclPoliciesSettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to listInstances. */
             public PagedCallSettings.Builder<
                     ListInstancesRequest, ListInstancesResponse, ListInstancesPagedResponse>
        @@ -1784,11 +2145,21 @@ public Builder applyToAllUnaryMethods(
               return listInstancesSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to getAclPolicy. */
        +    public UnaryCallSettings.Builder getAclPolicySettings() {
        +      return getAclPolicySettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to getInstance. */
             public UnaryCallSettings.Builder getInstanceSettings() {
               return getInstanceSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to createAclPolicy. */
        +    public UnaryCallSettings.Builder createAclPolicySettings() {
        +      return createAclPolicySettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to createInstance. */
             public UnaryCallSettings.Builder createInstanceSettings() {
               return createInstanceSettings;
        @@ -1800,6 +2171,17 @@ public UnaryCallSettings.Builder createInstanc
               return createInstanceOperationSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
        +    public UnaryCallSettings.Builder updateAclPolicySettings() {
        +      return updateAclPolicySettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to updateAclPolicy. */
        +    public OperationCallSettings.Builder
        +        updateAclPolicyOperationSettings() {
        +      return updateAclPolicyOperationSettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to updateInstance. */
             public UnaryCallSettings.Builder updateInstanceSettings() {
               return updateInstanceSettings;
        @@ -1811,6 +2193,32 @@ public UnaryCallSettings.Builder updateInstanc
               return updateInstanceOperationSettings;
             }
         
        +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
        +    public UnaryCallSettings.Builder deleteAclPolicySettings() {
        +      return deleteAclPolicySettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to deleteAclPolicy. */
        +    public OperationCallSettings.Builder
        +        deleteAclPolicyOperationSettings() {
        +      return deleteAclPolicyOperationSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to getAclPolicyRevision. */
        +    public UnaryCallSettings.Builder
        +        getAclPolicyRevisionSettings() {
        +      return getAclPolicyRevisionSettings;
        +    }
        +
        +    /** Returns the builder for the settings used for calls to listAclPolicyRevisions. */
        +    public PagedCallSettings.Builder<
        +            ListAclPolicyRevisionsRequest,
        +            ListAclPolicyRevisionsResponse,
        +            ListAclPolicyRevisionsPagedResponse>
        +        listAclPolicyRevisionsSettings() {
        +      return listAclPolicyRevisionsSettings;
        +    }
        +
             /** Returns the builder for the settings used for calls to deleteInstance. */
             public UnaryCallSettings.Builder deleteInstanceSettings() {
               return deleteInstanceSettings;
        diff --git a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
        index 62a98c34e19a..629aa90f1228 100644
        --- a/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
        +++ b/java-valkey/google-cloud-valkey/src/main/resources/META-INF/native-image/com.google.cloud.memorystore.v1/reflect-config.json
        @@ -593,6 +593,114 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicy",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicy$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicy$State",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyInfo",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyInfo$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyRevision",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyRevision$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyRevisionStatus",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyRevisionStatus$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclPolicyRevisionStatus$State",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclRule",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.AclRule$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.AddAuthTokenRequest",
             "queryAllDeclaredConstructors": true,
        @@ -854,6 +962,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.CreateAclPolicyRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.CreateAclPolicyRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.CreateInstanceRequest",
             "queryAllDeclaredConstructors": true,
        @@ -935,6 +1061,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.DeleteAclPolicyRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.DeleteAclPolicyRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.DeleteAuthTokenRequest",
             "queryAllDeclaredConstructors": true,
        @@ -1097,6 +1241,42 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.GetAclPolicyRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.GetAclPolicyRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.GetAuthTokenRequest",
             "queryAllDeclaredConstructors": true,
        @@ -1403,6 +1583,96 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPoliciesRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPoliciesRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPoliciesResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPoliciesResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.ListAuthTokensRequest",
             "queryAllDeclaredConstructors": true,
        @@ -1970,6 +2240,24 @@
             "allDeclaredClasses": true,
             "allPublicClasses": true
           },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.UpdateAclPolicyRequest",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
        +  {
        +    "name": "com.google.cloud.memorystore.v1.UpdateAclPolicyRequest$Builder",
        +    "queryAllDeclaredConstructors": true,
        +    "queryAllPublicConstructors": true,
        +    "queryAllDeclaredMethods": true,
        +    "allPublicMethods": true,
        +    "allDeclaredClasses": true,
        +    "allPublicClasses": true
        +  },
           {
             "name": "com.google.cloud.memorystore.v1.UpdateInstanceRequest",
             "queryAllDeclaredConstructors": true,
        diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
        index ab715357ff63..835889d40190 100644
        --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
        +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientHttpJsonTest.java
        @@ -16,6 +16,8 @@
         
         package com.google.cloud.memorystore.v1;
         
        +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse;
        +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse;
        @@ -92,6 +94,106 @@ public void tearDown() throws Exception {
             mockService.reset();
           }
         
        +  @Test
        +  public void listAclPoliciesTest() throws Exception {
        +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
        +    ListAclPoliciesResponse expectedResponse =
        +        ListAclPoliciesResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicies(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +
        +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPoliciesList().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 listAclPoliciesExceptionTest() 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.listAclPolicies(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPoliciesTest2() throws Exception {
        +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
        +    ListAclPoliciesResponse expectedResponse =
        +        ListAclPoliciesResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicies(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-5833/locations/location-5833";
        +
        +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPoliciesList().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 listAclPoliciesExceptionTest2() 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.listAclPolicies(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void listInstancesTest() throws Exception {
             Instance responsesElement = Instance.newBuilder().build();
        @@ -192,6 +294,104 @@ public void listInstancesExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void getAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    AclPolicy actualResponse = client.getAclPolicy(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 getAclPolicyExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.getAclPolicy(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getAclPolicyTest2() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
        +
        +    AclPolicy actualResponse = client.getAclPolicy(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 getAclPolicyExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
        +      client.getAclPolicy(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void getInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -235,6 +435,8 @@ public void getInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -317,6 +519,8 @@ public void getInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             mockService.addResponse(expectedResponse);
         
        @@ -356,6 +560,112 @@ public void getInstanceExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void createAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +    String aclPolicyId = "aclPolicyId-1805591401";
        +
        +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +    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 createAclPolicyExceptionTest() 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]");
        +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +      String aclPolicyId = "aclPolicyId-1805591401";
        +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void createAclPolicyTest2() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-5833/locations/location-5833";
        +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +    String aclPolicyId = "aclPolicyId-1805591401";
        +
        +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +    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 createAclPolicyExceptionTest2() 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";
        +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +      String aclPolicyId = "aclPolicyId-1805591401";
        +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void createInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -399,6 +709,8 @@ public void createInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -490,6 +802,8 @@ public void createInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -538,6 +852,78 @@ public void createInstanceExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void updateAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("updateAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    AclPolicy aclPolicy =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    FieldMask updateMask = FieldMask.newBuilder().build();
        +
        +    AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, 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 updateAclPolicyExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      AclPolicy aclPolicy =
        +          AclPolicy.newBuilder()
        +              .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +              .addAllRules(new ArrayList())
        +              .setEtag("etag3123477")
        +              .addAllInstanceAclPolicyAttachments(new ArrayList())
        +              .setCreateTime(Timestamp.newBuilder().build())
        +              .setUpdateTime(Timestamp.newBuilder().build())
        +              .build();
        +      FieldMask updateMask = FieldMask.newBuilder().build();
        +      client.updateAclPolicyAsync(aclPolicy, updateMask).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
           @Test
           public void updateInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -581,6 +967,8 @@ public void updateInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -631,6 +1019,8 @@ public void updateInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             FieldMask updateMask = FieldMask.newBuilder().build();
         
        @@ -702,6 +1092,8 @@ public void updateInstanceExceptionTest() throws Exception {
                       .setServerCaPool("serverCaPool1433802429")
                       .setRotateServerCertificate(true)
                       .setMigrationConfig(MigrationConfig.newBuilder().build())
        +              .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +              .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                       .build();
               FieldMask updateMask = FieldMask.newBuilder().build();
               client.updateInstanceAsync(instance, updateMask).get();
        @@ -710,6 +1102,300 @@ public void updateInstanceExceptionTest() throws Exception {
             }
           }
         
        +  @Test
        +  public void deleteAclPolicyTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    client.deleteAclPolicyAsync(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 deleteAclPolicyExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.deleteAclPolicyAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void deleteAclPolicyTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockService.addResponse(resultOperation);
        +
        +    String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
        +
        +    client.deleteAclPolicyAsync(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 deleteAclPolicyExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name = "projects/project-7152/locations/location-7152/aclPolicies/aclPolicie-7152";
        +      client.deleteAclPolicyAsync(name).get();
        +      Assert.fail("No exception raised");
        +    } catch (ExecutionException e) {
        +    }
        +  }
        +
        +  @Test
        +  public void getAclPolicyRevisionTest() throws Exception {
        +    AclPolicyRevision expectedResponse =
        +        AclPolicyRevision.newBuilder()
        +            .setName(
        +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
        +                    .toString())
        +            .setRevisionNumber(-1651923923)
        +            .setSnapshot(AclPolicy.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllAttachedInstances(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    AclPolicyRevisionName name =
        +        AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
        +
        +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(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 getAclPolicyRevisionExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      AclPolicyRevisionName name =
        +          AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
        +      client.getAclPolicyRevision(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getAclPolicyRevisionTest2() throws Exception {
        +    AclPolicyRevision expectedResponse =
        +        AclPolicyRevision.newBuilder()
        +            .setName(
        +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
        +                    .toString())
        +            .setRevisionNumber(-1651923923)
        +            .setSnapshot(AclPolicy.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllAttachedInstances(new ArrayList())
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String name =
        +        "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644";
        +
        +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(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 getAclPolicyRevisionExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String name =
        +          "projects/project-644/locations/location-644/aclPolicies/aclPolicie-644/revisions/revision-644";
        +      client.getAclPolicyRevision(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsTest() throws Exception {
        +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
        +    ListAclPolicyRevisionsResponse expectedResponse =
        +        ListAclPolicyRevisionsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().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 listAclPolicyRevisionsExceptionTest() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.listAclPolicyRevisions(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsTest2() throws Exception {
        +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
        +    ListAclPolicyRevisionsResponse expectedResponse =
        +        ListAclPolicyRevisionsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
        +            .build();
        +    mockService.addResponse(expectedResponse);
        +
        +    String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295";
        +
        +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().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 listAclPolicyRevisionsExceptionTest2() throws Exception {
        +    ApiException exception =
        +        ApiExceptionFactory.createException(
        +            new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false);
        +    mockService.addException(exception);
        +
        +    try {
        +      String parent = "projects/project-9295/locations/location-9295/aclPolicies/aclPolicie-9295";
        +      client.listAclPolicyRevisions(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void deleteInstanceTest() throws Exception {
             Empty expectedResponse = Empty.newBuilder().build();
        @@ -1022,6 +1708,8 @@ public void rescheduleMaintenanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1116,6 +1804,8 @@ public void rescheduleMaintenanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1806,6 +2496,8 @@ public void backupInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1893,6 +2585,8 @@ public void backupInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1980,6 +2674,8 @@ public void startMigrationTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2073,6 +2769,8 @@ public void finishMigrationTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2162,6 +2860,8 @@ public void finishMigrationTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2663,6 +3363,8 @@ public void addTokenAuthUserTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2752,6 +3454,8 @@ public void addTokenAuthUserTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
        index 547ce4e71ee2..8f508f81cbbb 100644
        --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
        +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MemorystoreClientTest.java
        @@ -16,6 +16,8 @@
         
         package com.google.cloud.memorystore.v1;
         
        +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPoliciesPagedResponse;
        +import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAclPolicyRevisionsPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListAuthTokensPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupCollectionsPagedResponse;
         import static com.google.cloud.memorystore.v1.MemorystoreClient.ListBackupsPagedResponse;
        @@ -99,6 +101,94 @@ public void tearDown() throws Exception {
             client.close();
           }
         
        +  @Test
        +  public void listAclPoliciesTest() throws Exception {
        +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
        +    ListAclPoliciesResponse expectedResponse =
        +        ListAclPoliciesResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicies(Arrays.asList(responsesElement))
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +
        +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listAclPoliciesExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +      client.listAclPolicies(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPoliciesTest2() throws Exception {
        +    AclPolicy responsesElement = AclPolicy.newBuilder().build();
        +    ListAclPoliciesResponse expectedResponse =
        +        ListAclPoliciesResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicies(Arrays.asList(responsesElement))
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +
        +    ListAclPoliciesPagedResponse pagedListResponse = client.listAclPolicies(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPoliciesList().get(0), resources.get(0));
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListAclPoliciesRequest actualRequest = ((ListAclPoliciesRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listAclPoliciesExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      client.listAclPolicies(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void listInstancesTest() throws Exception {
             Instance responsesElement = Instance.newBuilder().build();
        @@ -187,6 +277,92 @@ public void listInstancesExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void getAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    AclPolicy actualResponse = client.getAclPolicy(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getAclPolicyExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.getAclPolicy(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getAclPolicyTest2() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    String name = "name3373707";
        +
        +    AclPolicy actualResponse = client.getAclPolicy(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetAclPolicyRequest actualRequest = ((GetAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getAclPolicyExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.getAclPolicy(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void getInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -230,6 +406,8 @@ public void getInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             mockMemorystore.addResponse(expectedResponse);
         
        @@ -306,6 +484,8 @@ public void getInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             mockMemorystore.addResponse(expectedResponse);
         
        @@ -339,6 +519,104 @@ public void getInstanceExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void createAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +    String aclPolicyId = "aclPolicyId-1805591401";
        +
        +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
        +    Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createAclPolicyExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
        +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +      String aclPolicyId = "aclPolicyId-1805591401";
        +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void createAclPolicyTest2() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +    String aclPolicyId = "aclPolicyId-1805591401";
        +
        +    AclPolicy actualResponse = client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    CreateAclPolicyRequest actualRequest = ((CreateAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
        +    Assert.assertEquals(aclPolicyId, actualRequest.getAclPolicyId());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void createAclPolicyExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +      String aclPolicyId = "aclPolicyId-1805591401";
        +      client.createAclPolicy(parent, aclPolicy, aclPolicyId);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void createInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -382,6 +660,8 @@ public void createInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -472,6 +752,8 @@ public void createInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -519,6 +801,60 @@ public void createInstanceExceptionTest2() throws Exception {
             }
           }
         
        +  @Test
        +  public void updateAclPolicyTest() throws Exception {
        +    AclPolicy expectedResponse =
        +        AclPolicy.newBuilder()
        +            .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .addAllRules(new ArrayList())
        +            .setEtag("etag3123477")
        +            .addAllInstanceAclPolicyAttachments(new ArrayList())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .setUpdateTime(Timestamp.newBuilder().build())
        +            .build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("updateAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockMemorystore.addResponse(resultOperation);
        +
        +    AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +    FieldMask updateMask = FieldMask.newBuilder().build();
        +
        +    AclPolicy actualResponse = client.updateAclPolicyAsync(aclPolicy, updateMask).get();
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    UpdateAclPolicyRequest actualRequest = ((UpdateAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(aclPolicy, actualRequest.getAclPolicy());
        +    Assert.assertEquals(updateMask, actualRequest.getUpdateMask());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void updateAclPolicyExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      AclPolicy aclPolicy = AclPolicy.newBuilder().build();
        +      FieldMask updateMask = FieldMask.newBuilder().build();
        +      client.updateAclPolicyAsync(aclPolicy, 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 updateInstanceTest() throws Exception {
             Instance expectedResponse =
        @@ -562,6 +898,8 @@ public void updateInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -606,6 +944,272 @@ public void updateInstanceExceptionTest() throws Exception {
             }
           }
         
        +  @Test
        +  public void deleteAclPolicyTest() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockMemorystore.addResponse(resultOperation);
        +
        +    AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    client.deleteAclPolicyAsync(name).get();
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteAclPolicyExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.deleteAclPolicyAsync(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 deleteAclPolicyTest2() throws Exception {
        +    Empty expectedResponse = Empty.newBuilder().build();
        +    Operation resultOperation =
        +        Operation.newBuilder()
        +            .setName("deleteAclPolicyTest")
        +            .setDone(true)
        +            .setResponse(Any.pack(expectedResponse))
        +            .build();
        +    mockMemorystore.addResponse(resultOperation);
        +
        +    String name = "name3373707";
        +
        +    client.deleteAclPolicyAsync(name).get();
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    DeleteAclPolicyRequest actualRequest = ((DeleteAclPolicyRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void deleteAclPolicyExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.deleteAclPolicyAsync(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 getAclPolicyRevisionTest() throws Exception {
        +    AclPolicyRevision expectedResponse =
        +        AclPolicyRevision.newBuilder()
        +            .setName(
        +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
        +                    .toString())
        +            .setRevisionNumber(-1651923923)
        +            .setSnapshot(AclPolicy.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllAttachedInstances(new ArrayList())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    AclPolicyRevisionName name =
        +        AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
        +
        +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetAclPolicyRevisionRequest actualRequest =
        +        ((GetAclPolicyRevisionRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name.toString(), actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getAclPolicyRevisionExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      AclPolicyRevisionName name =
        +          AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]");
        +      client.getAclPolicyRevision(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void getAclPolicyRevisionTest2() throws Exception {
        +    AclPolicyRevision expectedResponse =
        +        AclPolicyRevision.newBuilder()
        +            .setName(
        +                AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]")
        +                    .toString())
        +            .setRevisionNumber(-1651923923)
        +            .setSnapshot(AclPolicy.newBuilder().build())
        +            .setCreateTime(Timestamp.newBuilder().build())
        +            .addAllAttachedInstances(new ArrayList())
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    String name = "name3373707";
        +
        +    AclPolicyRevision actualResponse = client.getAclPolicyRevision(name);
        +    Assert.assertEquals(expectedResponse, actualResponse);
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    GetAclPolicyRevisionRequest actualRequest =
        +        ((GetAclPolicyRevisionRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(name, actualRequest.getName());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void getAclPolicyRevisionExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String name = "name3373707";
        +      client.getAclPolicyRevision(name);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsTest() throws Exception {
        +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
        +    ListAclPolicyRevisionsResponse expectedResponse =
        +        ListAclPolicyRevisionsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +
        +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListAclPolicyRevisionsRequest actualRequest =
        +        ((ListAclPolicyRevisionsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent.toString(), actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsExceptionTest() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]");
        +      client.listAclPolicyRevisions(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsTest2() throws Exception {
        +    AclPolicyRevision responsesElement = AclPolicyRevision.newBuilder().build();
        +    ListAclPolicyRevisionsResponse expectedResponse =
        +        ListAclPolicyRevisionsResponse.newBuilder()
        +            .setNextPageToken("")
        +            .addAllAclPolicyRevisions(Arrays.asList(responsesElement))
        +            .build();
        +    mockMemorystore.addResponse(expectedResponse);
        +
        +    String parent = "parent-995424086";
        +
        +    ListAclPolicyRevisionsPagedResponse pagedListResponse = client.listAclPolicyRevisions(parent);
        +
        +    List resources = Lists.newArrayList(pagedListResponse.iterateAll());
        +
        +    Assert.assertEquals(1, resources.size());
        +    Assert.assertEquals(expectedResponse.getAclPolicyRevisionsList().get(0), resources.get(0));
        +
        +    List actualRequests = mockMemorystore.getRequests();
        +    Assert.assertEquals(1, actualRequests.size());
        +    ListAclPolicyRevisionsRequest actualRequest =
        +        ((ListAclPolicyRevisionsRequest) actualRequests.get(0));
        +
        +    Assert.assertEquals(parent, actualRequest.getParent());
        +    Assert.assertTrue(
        +        channelProvider.isHeaderSent(
        +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
        +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
        +  }
        +
        +  @Test
        +  public void listAclPolicyRevisionsExceptionTest2() throws Exception {
        +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
        +    mockMemorystore.addException(exception);
        +
        +    try {
        +      String parent = "parent-995424086";
        +      client.listAclPolicyRevisions(parent);
        +      Assert.fail("No exception raised");
        +    } catch (InvalidArgumentException e) {
        +      // Expected exception.
        +    }
        +  }
        +
           @Test
           public void deleteInstanceTest() throws Exception {
             Empty expectedResponse = Empty.newBuilder().build();
        @@ -891,6 +1495,8 @@ public void rescheduleMaintenanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -985,6 +1591,8 @@ public void rescheduleMaintenanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1613,6 +2221,8 @@ public void backupInstanceTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1697,6 +2307,8 @@ public void backupInstanceTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1781,6 +2393,8 @@ public void startMigrationTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1872,6 +2486,8 @@ public void finishMigrationTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -1959,6 +2575,8 @@ public void finishMigrationTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2404,6 +3022,8 @@ public void addTokenAuthUserTest() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        @@ -2491,6 +3111,8 @@ public void addTokenAuthUserTest2() throws Exception {
                     .setServerCaPool("serverCaPool1433802429")
                     .setRotateServerCertificate(true)
                     .setMigrationConfig(MigrationConfig.newBuilder().build())
        +            .setAclPolicy(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString())
        +            .setAclPolicyInfo(AclPolicyInfo.newBuilder().build())
                     .build();
             Operation resultOperation =
                 Operation.newBuilder()
        diff --git a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
        index 4225ec2b02e2..071bdf622c21 100644
        --- a/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
        +++ b/java-valkey/google-cloud-valkey/src/test/java/com/google/cloud/memorystore/v1/MockMemorystoreImpl.java
        @@ -59,6 +59,27 @@ public void reset() {
             responses = new LinkedList<>();
           }
         
        +  @Override
        +  public void listAclPolicies(
        +      ListAclPoliciesRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ListAclPoliciesResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((ListAclPoliciesResponse) 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 ListAclPolicies, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ListAclPoliciesResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void listInstances(
               ListInstancesRequest request, StreamObserver responseObserver) {
        @@ -80,6 +101,27 @@ public void listInstances(
             }
           }
         
        +  @Override
        +  public void getAclPolicy(
        +      GetAclPolicyRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof AclPolicy) {
        +      requests.add(request);
        +      responseObserver.onNext(((AclPolicy) 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 GetAclPolicy, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  AclPolicy.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void getInstance(GetInstanceRequest request, StreamObserver responseObserver) {
             Object response = responses.poll();
        @@ -100,6 +142,27 @@ public void getInstance(GetInstanceRequest request, StreamObserver res
             }
           }
         
        +  @Override
        +  public void createAclPolicy(
        +      CreateAclPolicyRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof AclPolicy) {
        +      requests.add(request);
        +      responseObserver.onNext(((AclPolicy) 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 CreateAclPolicy, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  AclPolicy.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void createInstance(
               CreateInstanceRequest request, StreamObserver responseObserver) {
        @@ -121,6 +184,27 @@ public void createInstance(
             }
           }
         
        +  @Override
        +  public void updateAclPolicy(
        +      UpdateAclPolicyRequest 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 UpdateAclPolicy, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void updateInstance(
               UpdateInstanceRequest request, StreamObserver responseObserver) {
        @@ -142,6 +226,72 @@ public void updateInstance(
             }
           }
         
        +  @Override
        +  public void deleteAclPolicy(
        +      DeleteAclPolicyRequest 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 DeleteAclPolicy, expected %s or %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  Operation.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void getAclPolicyRevision(
        +      GetAclPolicyRevisionRequest request, StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof AclPolicyRevision) {
        +      requests.add(request);
        +      responseObserver.onNext(((AclPolicyRevision) 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 GetAclPolicyRevision, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  AclPolicyRevision.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
        +  @Override
        +  public void listAclPolicyRevisions(
        +      ListAclPolicyRevisionsRequest request,
        +      StreamObserver responseObserver) {
        +    Object response = responses.poll();
        +    if (response instanceof ListAclPolicyRevisionsResponse) {
        +      requests.add(request);
        +      responseObserver.onNext(((ListAclPolicyRevisionsResponse) 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 ListAclPolicyRevisions, expected %s or"
        +                      + " %s",
        +                  response == null ? "null" : response.getClass().getName(),
        +                  ListAclPolicyRevisionsResponse.class.getName(),
        +                  Exception.class.getName())));
        +    }
        +  }
        +
           @Override
           public void deleteInstance(
               DeleteInstanceRequest request, StreamObserver responseObserver) {
        diff --git a/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java b/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
        index ecd64e6de2e3..b2bb658b36da 100644
        --- a/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
        +++ b/java-valkey/grpc-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/MemorystoreGrpc.java
        @@ -32,6 +32,53 @@ private MemorystoreGrpc() {}
           public static final java.lang.String SERVICE_NAME = "google.cloud.memorystore.v1.Memorystore";
         
           // Static method descriptors that strictly reflect the proto.
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.ListAclPoliciesRequest,
        +          com.google.cloud.memorystore.v1.ListAclPoliciesResponse>
        +      getListAclPoliciesMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ListAclPolicies",
        +      requestType = com.google.cloud.memorystore.v1.ListAclPoliciesRequest.class,
        +      responseType = com.google.cloud.memorystore.v1.ListAclPoliciesResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.ListAclPoliciesRequest,
        +          com.google.cloud.memorystore.v1.ListAclPoliciesResponse>
        +      getListAclPoliciesMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.ListAclPoliciesRequest,
        +            com.google.cloud.memorystore.v1.ListAclPoliciesResponse>
        +        getListAclPoliciesMethod;
        +    if ((getListAclPoliciesMethod = MemorystoreGrpc.getListAclPoliciesMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getListAclPoliciesMethod = MemorystoreGrpc.getListAclPoliciesMethod) == null) {
        +          MemorystoreGrpc.getListAclPoliciesMethod =
        +              getListAclPoliciesMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAclPolicies"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.ListAclPoliciesRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.ListAclPoliciesResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("ListAclPolicies"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getListAclPoliciesMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.memorystore.v1.ListInstancesRequest,
                   com.google.cloud.memorystore.v1.ListInstancesResponse>
        @@ -78,6 +125,51 @@ private MemorystoreGrpc() {}
             return getListInstancesMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.GetAclPolicyRequest,
        +          com.google.cloud.memorystore.v1.AclPolicy>
        +      getGetAclPolicyMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "GetAclPolicy",
        +      requestType = com.google.cloud.memorystore.v1.GetAclPolicyRequest.class,
        +      responseType = com.google.cloud.memorystore.v1.AclPolicy.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.GetAclPolicyRequest,
        +          com.google.cloud.memorystore.v1.AclPolicy>
        +      getGetAclPolicyMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.GetAclPolicyRequest,
        +            com.google.cloud.memorystore.v1.AclPolicy>
        +        getGetAclPolicyMethod;
        +    if ((getGetAclPolicyMethod = MemorystoreGrpc.getGetAclPolicyMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getGetAclPolicyMethod = MemorystoreGrpc.getGetAclPolicyMethod) == null) {
        +          MemorystoreGrpc.getGetAclPolicyMethod =
        +              getGetAclPolicyMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAclPolicy"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.GetAclPolicyRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()))
        +                      .setSchemaDescriptor(new MemorystoreMethodDescriptorSupplier("GetAclPolicy"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getGetAclPolicyMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.memorystore.v1.GetInstanceRequest,
                   com.google.cloud.memorystore.v1.Instance>
        @@ -123,6 +215,52 @@ private MemorystoreGrpc() {}
             return getGetInstanceMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.CreateAclPolicyRequest,
        +          com.google.cloud.memorystore.v1.AclPolicy>
        +      getCreateAclPolicyMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "CreateAclPolicy",
        +      requestType = com.google.cloud.memorystore.v1.CreateAclPolicyRequest.class,
        +      responseType = com.google.cloud.memorystore.v1.AclPolicy.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.CreateAclPolicyRequest,
        +          com.google.cloud.memorystore.v1.AclPolicy>
        +      getCreateAclPolicyMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.CreateAclPolicyRequest,
        +            com.google.cloud.memorystore.v1.AclPolicy>
        +        getCreateAclPolicyMethod;
        +    if ((getCreateAclPolicyMethod = MemorystoreGrpc.getCreateAclPolicyMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getCreateAclPolicyMethod = MemorystoreGrpc.getCreateAclPolicyMethod) == null) {
        +          MemorystoreGrpc.getCreateAclPolicyMethod =
        +              getCreateAclPolicyMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAclPolicy"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.CreateAclPolicyRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("CreateAclPolicy"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getCreateAclPolicyMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.memorystore.v1.CreateInstanceRequest, com.google.longrunning.Operation>
               getCreateInstanceMethod;
        @@ -166,6 +304,50 @@ private MemorystoreGrpc() {}
             return getCreateInstanceMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.UpdateAclPolicyRequest, com.google.longrunning.Operation>
        +      getUpdateAclPolicyMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "UpdateAclPolicy",
        +      requestType = com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.UpdateAclPolicyRequest, com.google.longrunning.Operation>
        +      getUpdateAclPolicyMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.UpdateAclPolicyRequest,
        +            com.google.longrunning.Operation>
        +        getUpdateAclPolicyMethod;
        +    if ((getUpdateAclPolicyMethod = MemorystoreGrpc.getUpdateAclPolicyMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getUpdateAclPolicyMethod = MemorystoreGrpc.getUpdateAclPolicyMethod) == null) {
        +          MemorystoreGrpc.getUpdateAclPolicyMethod =
        +              getUpdateAclPolicyMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAclPolicy"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.UpdateAclPolicyRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("UpdateAclPolicy"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getUpdateAclPolicyMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.memorystore.v1.UpdateInstanceRequest, com.google.longrunning.Operation>
               getUpdateInstanceMethod;
        @@ -209,6 +391,149 @@ private MemorystoreGrpc() {}
             return getUpdateInstanceMethod;
           }
         
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.DeleteAclPolicyRequest, com.google.longrunning.Operation>
        +      getDeleteAclPolicyMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "DeleteAclPolicy",
        +      requestType = com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.class,
        +      responseType = com.google.longrunning.Operation.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.DeleteAclPolicyRequest, com.google.longrunning.Operation>
        +      getDeleteAclPolicyMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.DeleteAclPolicyRequest,
        +            com.google.longrunning.Operation>
        +        getDeleteAclPolicyMethod;
        +    if ((getDeleteAclPolicyMethod = MemorystoreGrpc.getDeleteAclPolicyMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getDeleteAclPolicyMethod = MemorystoreGrpc.getDeleteAclPolicyMethod) == null) {
        +          MemorystoreGrpc.getDeleteAclPolicyMethod =
        +              getDeleteAclPolicyMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAclPolicy"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.DeleteAclPolicyRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.longrunning.Operation.getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("DeleteAclPolicy"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getDeleteAclPolicyMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest,
        +          com.google.cloud.memorystore.v1.AclPolicyRevision>
        +      getGetAclPolicyRevisionMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "GetAclPolicyRevision",
        +      requestType = com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.class,
        +      responseType = com.google.cloud.memorystore.v1.AclPolicyRevision.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest,
        +          com.google.cloud.memorystore.v1.AclPolicyRevision>
        +      getGetAclPolicyRevisionMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest,
        +            com.google.cloud.memorystore.v1.AclPolicyRevision>
        +        getGetAclPolicyRevisionMethod;
        +    if ((getGetAclPolicyRevisionMethod = MemorystoreGrpc.getGetAclPolicyRevisionMethod) == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getGetAclPolicyRevisionMethod = MemorystoreGrpc.getGetAclPolicyRevisionMethod)
        +            == null) {
        +          MemorystoreGrpc.getGetAclPolicyRevisionMethod =
        +              getGetAclPolicyRevisionMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "GetAclPolicyRevision"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.AclPolicyRevision
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("GetAclPolicyRevision"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getGetAclPolicyRevisionMethod;
        +  }
        +
        +  private static volatile io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest,
        +          com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse>
        +      getListAclPolicyRevisionsMethod;
        +
        +  @io.grpc.stub.annotations.RpcMethod(
        +      fullMethodName = SERVICE_NAME + '/' + "ListAclPolicyRevisions",
        +      requestType = com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.class,
        +      responseType = com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.class,
        +      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
        +  public static io.grpc.MethodDescriptor<
        +          com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest,
        +          com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse>
        +      getListAclPolicyRevisionsMethod() {
        +    io.grpc.MethodDescriptor<
        +            com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest,
        +            com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse>
        +        getListAclPolicyRevisionsMethod;
        +    if ((getListAclPolicyRevisionsMethod = MemorystoreGrpc.getListAclPolicyRevisionsMethod)
        +        == null) {
        +      synchronized (MemorystoreGrpc.class) {
        +        if ((getListAclPolicyRevisionsMethod = MemorystoreGrpc.getListAclPolicyRevisionsMethod)
        +            == null) {
        +          MemorystoreGrpc.getListAclPolicyRevisionsMethod =
        +              getListAclPolicyRevisionsMethod =
        +                  io.grpc.MethodDescriptor
        +                      .
        +                          newBuilder()
        +                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
        +                      .setFullMethodName(
        +                          generateFullMethodName(SERVICE_NAME, "ListAclPolicyRevisions"))
        +                      .setSampledToLocalTracing(true)
        +                      .setRequestMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest
        +                                  .getDefaultInstance()))
        +                      .setResponseMarshaller(
        +                          io.grpc.protobuf.ProtoUtils.marshaller(
        +                              com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse
        +                                  .getDefaultInstance()))
        +                      .setSchemaDescriptor(
        +                          new MemorystoreMethodDescriptorSupplier("ListAclPolicyRevisions"))
        +                      .build();
        +        }
        +      }
        +    }
        +    return getListAclPolicyRevisionsMethod;
        +  }
        +
           private static volatile io.grpc.MethodDescriptor<
                   com.google.cloud.memorystore.v1.DeleteInstanceRequest, com.google.longrunning.Operation>
               getDeleteInstanceMethod;
        @@ -1231,6 +1556,26 @@ public MemorystoreFutureStub newStub(
            */
           public interface AsyncService {
         
        +    /**
        +     *
        +     *
        +     * 
        +     * Lists all ACL policies owned by a project in either the specified
        +     * location (region) or all locations.
        +     * The location should have the following format:
        +     * * `projects/{project_id}/locations/{location_id}`
        +     * If `location_id` is specified as `-` (wildcard), then all regions
        +     * available to the project are queried, and the results are aggregated.
        +     * 
        + */ + default void listAclPolicies( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPoliciesMethod(), responseObserver); + } + /** * * @@ -1246,6 +1591,20 @@ default void listInstances( getListInstancesMethod(), responseObserver); } + /** + * + * + *
        +     * Gets the details of a specific Memorystore ACL policy.
        +     * 
        + */ + default void getAclPolicy( + com.google.cloud.memorystore.v1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyMethod(), responseObserver); + } + /** * * @@ -1260,6 +1619,22 @@ default void getInstance( getGetInstanceMethod(), responseObserver); } + /** + * + * + *
        +     * Creates an ACL policy.
        +     * The creation is executed synchronously and the policy is available for use
        +     * immediately after the RPC returns.
        +     * 
        + */ + default void createAclPolicy( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1274,6 +1649,27 @@ default void createInstance( getCreateInstanceMethod(), responseObserver); } + /** + * + * + *
        +     * Updates the ACL policy.
        +     * The operation will apply the updated ACL policy to all the linked
        +     * instances. The operation will return success if it successfully applied the
        +     * policy to all the instances. If the operation completed with a failure, the
        +     * service will continue to apply the policy via reconciliation for the failed
        +     * instances even after operation completion to ensure eventual consistency.
        +     * Completed longrunning.Operation will contain the new ACL policy object
        +     * in the response field.
        +     * 
        + */ + default void updateAclPolicy( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAclPolicyMethod(), responseObserver); + } + /** * * @@ -1288,6 +1684,52 @@ default void updateInstance( getUpdateInstanceMethod(), responseObserver); } + /** + * + * + *
        +     * Deletes a specific ACL policy. This action will delete the ACL policy and
        +     * all the rules associated with it. An ACL policy cannot be deleted if it is
        +     * attached to an instance.
        +     * 
        + */ + default void deleteAclPolicy( + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAclPolicyMethod(), responseObserver); + } + + /** + * + * + *
        +     * Gets details of a specific ACL policy revision.
        +     * 
        + */ + default void getAclPolicyRevision( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAclPolicyRevisionMethod(), responseObserver); + } + + /** + * + * + *
        +     * Lists all ACL policy revisions in a given ACL policy.
        +     * 
        + */ + default void listAclPolicyRevisions( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAclPolicyRevisionsMethod(), responseObserver); + } + /** * * @@ -1650,6 +2092,28 @@ protected MemorystoreStub build(io.grpc.Channel channel, io.grpc.CallOptions cal return new MemorystoreStub(channel, callOptions); } + /** + * + * + *
        +     * Lists all ACL policies owned by a project in either the specified
        +     * location (region) or all locations.
        +     * The location should have the following format:
        +     * * `projects/{project_id}/locations/{location_id}`
        +     * If `location_id` is specified as `-` (wildcard), then all regions
        +     * available to the project are queried, and the results are aggregated.
        +     * 
        + */ + public void listAclPolicies( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1667,6 +2131,22 @@ public void listInstances( responseObserver); } + /** + * + * + *
        +     * Gets the details of a specific Memorystore ACL policy.
        +     * 
        + */ + public void getAclPolicy( + com.google.cloud.memorystore.v1.GetAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1683,6 +2163,24 @@ public void getInstance( responseObserver); } + /** + * + * + *
        +     * Creates an ACL policy.
        +     * The creation is executed synchronously and the policy is available for use
        +     * immediately after the RPC returns.
        +     * 
        + */ + public void createAclPolicy( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -1690,11 +2188,85 @@ public void getInstance( * Creates a new Instance in a given project and location. *
        */ - public void createInstance( - com.google.cloud.memorystore.v1.CreateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createInstance( + com.google.cloud.memorystore.v1.CreateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Updates the ACL policy.
        +     * The operation will apply the updated ACL policy to all the linked
        +     * instances. The operation will return success if it successfully applied the
        +     * policy to all the instances. If the operation completed with a failure, the
        +     * service will continue to apply the policy via reconciliation for the failed
        +     * instances even after operation completion to ensure eventual consistency.
        +     * Completed longrunning.Operation will contain the new ACL policy object
        +     * in the response field.
        +     * 
        + */ + public void updateAclPolicy( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Updates the parameters of a single Instance.
        +     * 
        + */ + public void updateInstance( + com.google.cloud.memorystore.v1.UpdateInstanceRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Deletes a specific ACL policy. This action will delete the ACL policy and
        +     * all the rules associated with it. An ACL policy cannot be deleted if it is
        +     * attached to an instance.
        +     * 
        + */ + public void deleteAclPolicy( + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
        +     * Gets details of a specific ACL policy revision.
        +     * 
        + */ + public void getAclPolicyRevision( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request, responseObserver); } @@ -1703,14 +2275,15 @@ public void createInstance( * * *
        -     * Updates the parameters of a single Instance.
        +     * Lists all ACL policy revisions in a given ACL policy.
              * 
        */ - public void updateInstance( - com.google.cloud.memorystore.v1.UpdateInstanceRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listAclPolicyRevisions( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request, responseObserver); } @@ -2103,6 +2676,25 @@ protected MemorystoreBlockingV2Stub build( return new MemorystoreBlockingV2Stub(channel, callOptions); } + /** + * + * + *
        +     * Lists all ACL policies owned by a project in either the specified
        +     * location (region) or all locations.
        +     * The location should have the following format:
        +     * * `projects/{project_id}/locations/{location_id}`
        +     * If `location_id` is specified as `-` (wildcard), then all regions
        +     * available to the project are queried, and the results are aggregated.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -2117,6 +2709,20 @@ public com.google.cloud.memorystore.v1.ListInstancesResponse listInstances( getChannel(), getListInstancesMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Gets the details of a specific Memorystore ACL policy.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy( + com.google.cloud.memorystore.v1.GetAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2130,6 +2736,22 @@ public com.google.cloud.memorystore.v1.Instance getInstance( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Creates an ACL policy.
        +     * The creation is executed synchronously and the policy is available for use
        +     * immediately after the RPC returns.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicy createAclPolicy( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2144,6 +2766,27 @@ public com.google.longrunning.Operation createInstance( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Updates the ACL policy.
        +     * The operation will apply the updated ACL policy to all the linked
        +     * instances. The operation will return success if it successfully applied the
        +     * policy to all the instances. If the operation completed with a failure, the
        +     * service will continue to apply the policy via reconciliation for the failed
        +     * instances even after operation completion to ensure eventual consistency.
        +     * Completed longrunning.Operation will contain the new ACL policy object
        +     * in the response field.
        +     * 
        + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2158,6 +2801,50 @@ public com.google.longrunning.Operation updateInstance( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Deletes a specific ACL policy. This action will delete the ACL policy and
        +     * all the rules associated with it. An ACL policy cannot be deleted if it is
        +     * attached to an instance.
        +     * 
        + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a specific ACL policy revision.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists all ACL policy revisions in a given ACL policy.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse listAclPolicyRevisions( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -2499,6 +3186,24 @@ protected MemorystoreBlockingStub build( return new MemorystoreBlockingStub(channel, callOptions); } + /** + * + * + *
        +     * Lists all ACL policies owned by a project in either the specified
        +     * location (region) or all locations.
        +     * The location should have the following format:
        +     * * `projects/{project_id}/locations/{location_id}`
        +     * If `location_id` is specified as `-` (wildcard), then all regions
        +     * available to the project are queried, and the results are aggregated.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.ListAclPoliciesResponse listAclPolicies( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPoliciesMethod(), getCallOptions(), request); + } + /** * * @@ -2512,6 +3217,19 @@ public com.google.cloud.memorystore.v1.ListInstancesResponse listInstances( getChannel(), getListInstancesMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Gets the details of a specific Memorystore ACL policy.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy( + com.google.cloud.memorystore.v1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2525,6 +3243,21 @@ public com.google.cloud.memorystore.v1.Instance getInstance( getChannel(), getGetInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Creates an ACL policy.
        +     * The creation is executed synchronously and the policy is available for use
        +     * immediately after the RPC returns.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicy createAclPolicy( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2538,6 +3271,26 @@ public com.google.longrunning.Operation createInstance( getChannel(), getCreateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Updates the ACL policy.
        +     * The operation will apply the updated ACL policy to all the linked
        +     * instances. The operation will return success if it successfully applied the
        +     * policy to all the instances. If the operation completed with a failure, the
        +     * service will continue to apply the policy via reconciliation for the failed
        +     * instances even after operation completion to ensure eventual consistency.
        +     * Completed longrunning.Operation will contain the new ACL policy object
        +     * in the response field.
        +     * 
        + */ + public com.google.longrunning.Operation updateAclPolicy( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAclPolicyMethod(), getCallOptions(), request); + } + /** * * @@ -2551,6 +3304,47 @@ public com.google.longrunning.Operation updateInstance( getChannel(), getUpdateInstanceMethod(), getCallOptions(), request); } + /** + * + * + *
        +     * Deletes a specific ACL policy. This action will delete the ACL policy and
        +     * all the rules associated with it. An ACL policy cannot be deleted if it is
        +     * attached to an instance.
        +     * 
        + */ + public com.google.longrunning.Operation deleteAclPolicy( + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAclPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Gets details of a specific ACL policy revision.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision getAclPolicyRevision( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAclPolicyRevisionMethod(), getCallOptions(), request); + } + + /** + * + * + *
        +     * Lists all ACL policy revisions in a given ACL policy.
        +     * 
        + */ + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse listAclPolicyRevisions( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAclPolicyRevisionsMethod(), getCallOptions(), request); + } + /** * * @@ -2873,6 +3667,25 @@ protected MemorystoreFutureStub build( return new MemorystoreFutureStub(channel, callOptions); } + /** + * + * + *
        +     * Lists all ACL policies owned by a project in either the specified
        +     * location (region) or all locations.
        +     * The location should have the following format:
        +     * * `projects/{project_id}/locations/{location_id}`
        +     * If `location_id` is specified as `-` (wildcard), then all regions
        +     * available to the project are queried, and the results are aggregated.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1.ListAclPoliciesResponse> + listAclPolicies(com.google.cloud.memorystore.v1.ListAclPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPoliciesMethod(), getCallOptions()), request); + } + /** * * @@ -2887,6 +3700,20 @@ protected MemorystoreFutureStub build( getChannel().newCall(getListInstancesMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Gets the details of a specific Memorystore ACL policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1.AclPolicy> + getAclPolicy(com.google.cloud.memorystore.v1.GetAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2901,6 +3728,22 @@ protected MemorystoreFutureStub build( getChannel().newCall(getGetInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Creates an ACL policy.
        +     * The creation is executed synchronously and the policy is available for use
        +     * immediately after the RPC returns.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1.AclPolicy> + createAclPolicy(com.google.cloud.memorystore.v1.CreateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2914,6 +3757,26 @@ protected MemorystoreFutureStub build( getChannel().newCall(getCreateInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Updates the ACL policy.
        +     * The operation will apply the updated ACL policy to all the linked
        +     * instances. The operation will return success if it successfully applied the
        +     * policy to all the instances. If the operation completed with a failure, the
        +     * service will continue to apply the policy via reconciliation for the failed
        +     * instances even after operation completion to ensure eventual consistency.
        +     * Completed longrunning.Operation will contain the new ACL policy object
        +     * in the response field.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + updateAclPolicy(com.google.cloud.memorystore.v1.UpdateAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAclPolicyMethod(), getCallOptions()), request); + } + /** * * @@ -2927,6 +3790,50 @@ protected MemorystoreFutureStub build( getChannel().newCall(getUpdateInstanceMethod(), getCallOptions()), request); } + /** + * + * + *
        +     * Deletes a specific ACL policy. This action will delete the ACL policy and
        +     * all the rules associated with it. An ACL policy cannot be deleted if it is
        +     * attached to an instance.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAclPolicy(com.google.cloud.memorystore.v1.DeleteAclPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAclPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Gets details of a specific ACL policy revision.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1.AclPolicyRevision> + getAclPolicyRevision(com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAclPolicyRevisionMethod(), getCallOptions()), request); + } + + /** + * + * + *
        +     * Lists all ACL policy revisions in a given ACL policy.
        +     * 
        + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse> + listAclPolicyRevisions( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAclPolicyRevisionsMethod(), getCallOptions()), request); + } + /** * * @@ -3241,31 +4148,38 @@ protected MemorystoreFutureStub build( } } - private static final int METHODID_LIST_INSTANCES = 0; - private static final int METHODID_GET_INSTANCE = 1; - private static final int METHODID_CREATE_INSTANCE = 2; - private static final int METHODID_UPDATE_INSTANCE = 3; - private static final int METHODID_DELETE_INSTANCE = 4; - private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 5; - private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 6; - private static final int METHODID_RESCHEDULE_MAINTENANCE = 7; - private static final int METHODID_LIST_BACKUP_COLLECTIONS = 8; - private static final int METHODID_GET_BACKUP_COLLECTION = 9; - private static final int METHODID_LIST_BACKUPS = 10; - private static final int METHODID_GET_BACKUP = 11; - private static final int METHODID_DELETE_BACKUP = 12; - private static final int METHODID_EXPORT_BACKUP = 13; - private static final int METHODID_BACKUP_INSTANCE = 14; - private static final int METHODID_START_MIGRATION = 15; - private static final int METHODID_FINISH_MIGRATION = 16; - private static final int METHODID_LIST_TOKEN_AUTH_USERS = 17; - private static final int METHODID_GET_TOKEN_AUTH_USER = 18; - private static final int METHODID_LIST_AUTH_TOKENS = 19; - private static final int METHODID_GET_AUTH_TOKEN = 20; - private static final int METHODID_ADD_TOKEN_AUTH_USER = 21; - private static final int METHODID_DELETE_TOKEN_AUTH_USER = 22; - private static final int METHODID_ADD_AUTH_TOKEN = 23; - private static final int METHODID_DELETE_AUTH_TOKEN = 24; + private static final int METHODID_LIST_ACL_POLICIES = 0; + private static final int METHODID_LIST_INSTANCES = 1; + private static final int METHODID_GET_ACL_POLICY = 2; + private static final int METHODID_GET_INSTANCE = 3; + private static final int METHODID_CREATE_ACL_POLICY = 4; + private static final int METHODID_CREATE_INSTANCE = 5; + private static final int METHODID_UPDATE_ACL_POLICY = 6; + private static final int METHODID_UPDATE_INSTANCE = 7; + private static final int METHODID_DELETE_ACL_POLICY = 8; + private static final int METHODID_GET_ACL_POLICY_REVISION = 9; + private static final int METHODID_LIST_ACL_POLICY_REVISIONS = 10; + private static final int METHODID_DELETE_INSTANCE = 11; + private static final int METHODID_GET_CERTIFICATE_AUTHORITY = 12; + private static final int METHODID_GET_SHARED_REGIONAL_CERTIFICATE_AUTHORITY = 13; + private static final int METHODID_RESCHEDULE_MAINTENANCE = 14; + private static final int METHODID_LIST_BACKUP_COLLECTIONS = 15; + private static final int METHODID_GET_BACKUP_COLLECTION = 16; + private static final int METHODID_LIST_BACKUPS = 17; + private static final int METHODID_GET_BACKUP = 18; + private static final int METHODID_DELETE_BACKUP = 19; + private static final int METHODID_EXPORT_BACKUP = 20; + private static final int METHODID_BACKUP_INSTANCE = 21; + private static final int METHODID_START_MIGRATION = 22; + private static final int METHODID_FINISH_MIGRATION = 23; + private static final int METHODID_LIST_TOKEN_AUTH_USERS = 24; + private static final int METHODID_GET_TOKEN_AUTH_USER = 25; + private static final int METHODID_LIST_AUTH_TOKENS = 26; + private static final int METHODID_GET_AUTH_TOKEN = 27; + private static final int METHODID_ADD_TOKEN_AUTH_USER = 28; + private static final int METHODID_DELETE_TOKEN_AUTH_USER = 29; + private static final int METHODID_ADD_AUTH_TOKEN = 30; + private static final int METHODID_DELETE_AUTH_TOKEN = 31; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3284,28 +4198,69 @@ private static final class MethodHandlers @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_LIST_ACL_POLICIES: + serviceImpl.listAclPolicies( + (com.google.cloud.memorystore.v1.ListAclPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_LIST_INSTANCES: serviceImpl.listInstances( (com.google.cloud.memorystore.v1.ListInstancesRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_ACL_POLICY: + serviceImpl.getAclPolicy( + (com.google.cloud.memorystore.v1.GetAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_GET_INSTANCE: serviceImpl.getInstance( (com.google.cloud.memorystore.v1.GetInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_CREATE_ACL_POLICY: + serviceImpl.createAclPolicy( + (com.google.cloud.memorystore.v1.CreateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_INSTANCE: serviceImpl.createInstance( (com.google.cloud.memorystore.v1.CreateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UPDATE_ACL_POLICY: + serviceImpl.updateAclPolicy( + (com.google.cloud.memorystore.v1.UpdateAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_UPDATE_INSTANCE: serviceImpl.updateInstance( (com.google.cloud.memorystore.v1.UpdateInstanceRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DELETE_ACL_POLICY: + serviceImpl.deleteAclPolicy( + (com.google.cloud.memorystore.v1.DeleteAclPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACL_POLICY_REVISION: + serviceImpl.getAclPolicyRevision( + (com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_ACL_POLICY_REVISIONS: + serviceImpl.listAclPolicyRevisions( + (com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse>) + responseObserver); + break; case METHODID_DELETE_INSTANCE: serviceImpl.deleteInstance( (com.google.cloud.memorystore.v1.DeleteInstanceRequest) request, @@ -3443,6 +4398,13 @@ public io.grpc.stub.StreamObserver invoke( public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getListAclPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.ListAclPoliciesRequest, + com.google.cloud.memorystore.v1.ListAclPoliciesResponse>( + service, METHODID_LIST_ACL_POLICIES))) .addMethod( getListInstancesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3450,24 +4412,63 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.memorystore.v1.ListInstancesRequest, com.google.cloud.memorystore.v1.ListInstancesResponse>( service, METHODID_LIST_INSTANCES))) + .addMethod( + getGetAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.GetAclPolicyRequest, + com.google.cloud.memorystore.v1.AclPolicy>(service, METHODID_GET_ACL_POLICY))) .addMethod( getGetInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1.GetInstanceRequest, com.google.cloud.memorystore.v1.Instance>(service, METHODID_GET_INSTANCE))) + .addMethod( + getCreateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.CreateAclPolicyRequest, + com.google.cloud.memorystore.v1.AclPolicy>( + service, METHODID_CREATE_ACL_POLICY))) .addMethod( getCreateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1.CreateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_CREATE_INSTANCE))) + .addMethod( + getUpdateAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ACL_POLICY))) .addMethod( getUpdateInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.cloud.memorystore.v1.UpdateInstanceRequest, com.google.longrunning.Operation>(service, METHODID_UPDATE_INSTANCE))) + .addMethod( + getDeleteAclPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ACL_POLICY))) + .addMethod( + getGetAclPolicyRevisionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest, + com.google.cloud.memorystore.v1.AclPolicyRevision>( + service, METHODID_GET_ACL_POLICY_REVISION))) + .addMethod( + getListAclPolicyRevisionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest, + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse>( + service, METHODID_LIST_ACL_POLICY_REVISIONS))) .addMethod( getDeleteInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3653,10 +4654,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MemorystoreFileDescriptorSupplier()) + .addMethod(getListAclPoliciesMethod()) .addMethod(getListInstancesMethod()) + .addMethod(getGetAclPolicyMethod()) .addMethod(getGetInstanceMethod()) + .addMethod(getCreateAclPolicyMethod()) .addMethod(getCreateInstanceMethod()) + .addMethod(getUpdateAclPolicyMethod()) .addMethod(getUpdateInstanceMethod()) + .addMethod(getDeleteAclPolicyMethod()) + .addMethod(getGetAclPolicyRevisionMethod()) + .addMethod(getListAclPolicyRevisionsMethod()) .addMethod(getDeleteInstanceMethod()) .addMethod(getGetCertificateAuthorityMethod()) .addMethod(getGetSharedRegionalCertificateAuthorityMethod()) diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicy.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicy.java new file mode 100644 index 000000000000..61e292ea0530 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicy.java @@ -0,0 +1,2940 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * The ACL policy resource.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicy} + */ +@com.google.protobuf.Generated +public final class AclPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.AclPolicy) + AclPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclPolicy"); + } + + // Use AclPolicy.newBuilder() to construct. + private AclPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicy() { + name_ = ""; + rules_ = java.util.Collections.emptyList(); + state_ = 0; + etag_ = ""; + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicy.class, + com.google.cloud.memorystore.v1.AclPolicy.Builder.class); + } + + /** + * + * + *
        +   * Represents the different states of an ACL policy.
        +   * 
        + * + * Protobuf enum {@code google.cloud.memorystore.v1.AclPolicy.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Not set.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * ACL policy has been created and is fully usable.
        +     * 
        + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
        +     * ACL policy is being updated.
        +     * 
        + * + * UPDATING = 2; + */ + UPDATING(2), + /** + * + * + *
        +     * ACL policy is being deleted.
        +     * 
        + * + * DELETING = 3; + */ + DELETING(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
        +     * Not set.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * ACL policy has been created and is fully usable.
        +     * 
        + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
        +     * ACL policy is being updated.
        +     * 
        + * + * UPDATING = 2; + */ + public static final int UPDATING_VALUE = 2; + + /** + * + * + *
        +     * ACL policy is being deleted.
        +     * 
        + * + * DELETING = 3; + */ + public static final int DELETING_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return UPDATING; + case 3: + return DELETING; + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1.AclPolicy.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.memorystore.v1.AclPolicy.State) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Identifier. Full resource path of the ACL policy.
        +   * 
        + * + * 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. Full resource path of the ACL policy.
        +   * 
        + * + * 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 RULES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.get(index); + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
        +   * Output only. The state of the ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.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 ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy.State getState() { + com.google.cloud.memorystore.v1.AclPolicy.State result = + com.google.cloud.memorystore.v1.AclPolicy.State.forNumber(state_); + return result == null ? com.google.cloud.memorystore.v1.AclPolicy.State.UNRECOGNIZED : result; + } + + public static final int ETAG_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + @java.lang.Override + public boolean hasEtag() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTANCE_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private java.util.List + instanceAclPolicyAttachments_; + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getInstanceAclPolicyAttachmentsList() { + return instanceAclPolicyAttachments_; + } + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder> + getInstanceAclPolicyAttachmentsOrBuilderList() { + return instanceAclPolicyAttachments_; + } + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getInstanceAclPolicyAttachmentsCount() { + return instanceAclPolicyAttachments_.size(); + } + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment + getInstanceAclPolicyAttachments(int index) { + return instanceAclPolicyAttachments_.get(index); + } + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index) { + return instanceAclPolicyAttachments_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.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 timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.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 = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.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 timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.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 timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @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 (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + output.writeMessage(2, rules_.get(i)); + } + if (state_ != com.google.cloud.memorystore.v1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, etag_); + } + for (int i = 0; i < instanceAclPolicyAttachments_.size(); i++) { + output.writeMessage(6, instanceAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + for (int i = 0; i < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rules_.get(i)); + } + if (state_ != com.google.cloud.memorystore.v1.AclPolicy.State.STATE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, etag_); + } + for (int i = 0; i < instanceAclPolicyAttachments_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, instanceAclPolicyAttachments_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, 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.memorystore.v1.AclPolicy)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.AclPolicy other = + (com.google.cloud.memorystore.v1.AclPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getRulesList().equals(other.getRulesList())) return false; + if (state_ != other.state_) return false; + if (hasEtag() != other.hasEtag()) return false; + if (hasEtag()) { + if (!getEtag().equals(other.getEtag())) return false; + } + if (!getInstanceAclPolicyAttachmentsList().equals(other.getInstanceAclPolicyAttachmentsList())) + 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 (!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 (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (hasEtag()) { + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + } + if (getInstanceAclPolicyAttachmentsCount() > 0) { + hash = (37 * hash) + INSTANCE_ACL_POLICY_ATTACHMENTS_FIELD_NUMBER; + hash = (53 * hash) + getInstanceAclPolicyAttachmentsList().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.memorystore.v1.AclPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicy 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.memorystore.v1.AclPolicy parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom( + 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.memorystore.v1.AclPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.AclPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * The ACL policy resource.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.AclPolicy) + com.google.cloud.memorystore.v1.AclPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicy.class, + com.google.cloud.memorystore.v1.AclPolicy.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.AclPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRulesFieldBuilder(); + internalGetInstanceAclPolicyAttachmentsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + state_ = 0; + etag_ = ""; + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + } else { + instanceAclPolicyAttachments_ = null; + instanceAclPolicyAttachmentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + 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.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy build() { + com.google.cloud.memorystore.v1.AclPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy buildPartial() { + com.google.cloud.memorystore.v1.AclPolicy result = + new com.google.cloud.memorystore.v1.AclPolicy(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.memorystore.v1.AclPolicy result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + instanceAclPolicyAttachments_ = + java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.instanceAclPolicyAttachments_ = instanceAclPolicyAttachments_; + } else { + result.instanceAclPolicyAttachments_ = instanceAclPolicyAttachmentsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1.AclPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.etag_ = etag_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.AclPolicy) { + return mergeFrom((com.google.cloud.memorystore.v1.AclPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.AclPolicy other) { + if (other == com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000002); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.hasEtag()) { + etag_ = other.etag_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (!other.instanceAclPolicyAttachments_.isEmpty()) { + if (instanceAclPolicyAttachments_.isEmpty()) { + instanceAclPolicyAttachments_ = other.instanceAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.addAll(other.instanceAclPolicyAttachments_); + } + onChanged(); + } + } else { + if (!other.instanceAclPolicyAttachments_.isEmpty()) { + if (instanceAclPolicyAttachmentsBuilder_.isEmpty()) { + instanceAclPolicyAttachmentsBuilder_.dispose(); + instanceAclPolicyAttachmentsBuilder_ = null; + instanceAclPolicyAttachments_ = other.instanceAclPolicyAttachments_; + bitField0_ = (bitField0_ & ~0x00000010); + instanceAclPolicyAttachmentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetInstanceAclPolicyAttachmentsFieldBuilder() + : null; + } else { + instanceAclPolicyAttachmentsBuilder_.addAllMessages( + other.instanceAclPolicyAttachments_); + } + } + } + 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: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.memorystore.v1.AclRule m = + input.readMessage( + com.google.cloud.memorystore.v1.AclRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.addMessage(m); + } + break; + } // case 18 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 42: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment m = + input.readMessage( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.parser(), + extensionRegistry); + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(m); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(m); + } + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + 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. Full resource path of the ACL policy.
        +     * 
        + * + * 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. Full resource path of the ACL policy.
        +     * 
        + * + * 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. Full resource path of the ACL policy.
        +     * 
        + * + * 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. Full resource path of the ACL policy.
        +     * 
        + * + * 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. Full resource path of the ACL policy.
        +     * 
        + * + * 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.util.List rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclRule, + com.google.cloud.memorystore.v1.AclRule.Builder, + com.google.cloud.memorystore.v1.AclRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.cloud.memorystore.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.cloud.memorystore.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.memorystore.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.cloud.memorystore.v1.AclRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.cloud.memorystore.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.cloud.memorystore.v1.AclRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.cloud.memorystore.v1.AclRule.getDefaultInstance()); + } + + /** + * + * + *
        +     * Required. The ACL rules within the ACL policy.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclRule, + com.google.cloud.memorystore.v1.AclRule.Builder, + com.google.cloud.memorystore.v1.AclRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclRule, + com.google.cloud.memorystore.v1.AclRule.Builder, + com.google.cloud.memorystore.v1.AclRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
        +     * Output only. The state of the ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.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 ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The state of the ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy.State getState() { + com.google.cloud.memorystore.v1.AclPolicy.State result = + com.google.cloud.memorystore.v1.AclPolicy.State.forNumber(state_); + return result == null ? com.google.cloud.memorystore.v1.AclPolicy.State.UNRECOGNIZED : result; + } + + /** + * + * + *
        +     * Output only. The state of the ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.memorystore.v1.AclPolicy.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The state of the ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + public boolean hasEtag() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Etag of the ACL policy.
        +     * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + + private void ensureInstanceAclPolicyAttachmentsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + instanceAclPolicyAttachments_ = + new java.util.ArrayList( + instanceAclPolicyAttachments_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder> + instanceAclPolicyAttachmentsBuilder_; + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstanceAclPolicyAttachmentsList() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getInstanceAclPolicyAttachmentsCount() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.size(); + } else { + return instanceAclPolicyAttachmentsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment + getInstanceAclPolicyAttachments(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.get(index); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceAclPolicyAttachments( + int index, com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.set(index, value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setInstanceAclPolicyAttachments( + int index, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.set(index, builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + int index, com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment value) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(index, value); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addInstanceAclPolicyAttachments( + int index, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder builderForValue) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.add(index, builderForValue.build()); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllInstanceAclPolicyAttachments( + java.lang.Iterable + values) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, instanceAclPolicyAttachments_); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearInstanceAclPolicyAttachments() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachments_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeInstanceAclPolicyAttachments(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + ensureInstanceAclPolicyAttachmentsIsMutable(); + instanceAclPolicyAttachments_.remove(index); + onChanged(); + } else { + instanceAclPolicyAttachmentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder + getInstanceAclPolicyAttachmentsBuilder(int index) { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index) { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + return instanceAclPolicyAttachments_.get(index); + } else { + return instanceAclPolicyAttachmentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder> + getInstanceAclPolicyAttachmentsOrBuilderList() { + if (instanceAclPolicyAttachmentsBuilder_ != null) { + return instanceAclPolicyAttachmentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(instanceAclPolicyAttachments_); + } + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder + addInstanceAclPolicyAttachmentsBuilder() { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder() + .addBuilder( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder + addInstanceAclPolicyAttachmentsBuilder(int index) { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder() + .addBuilder( + index, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. The ACL policy attachment status for each attached instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getInstanceAclPolicyAttachmentsBuilderList() { + return internalGetInstanceAclPolicyAttachmentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder> + internalGetInstanceAclPolicyAttachmentsFieldBuilder() { + if (instanceAclPolicyAttachmentsBuilder_ == null) { + instanceAclPolicyAttachmentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder>( + instanceAclPolicyAttachments_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + instanceAclPolicyAttachments_ = null; + } + return instanceAclPolicyAttachmentsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.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 timestamp that the ACL policy was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + 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.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.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_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.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 timestamp that the ACL policy was last updated.
        +     * 
        + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.AclPolicy) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.AclPolicy) + private static final com.google.cloud.memorystore.v1.AclPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.AclPolicy(); + } + + public static com.google.cloud.memorystore.v1.AclPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicy parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.AclPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfo.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfo.java new file mode 100644 index 000000000000..713de6d59d8f --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfo.java @@ -0,0 +1,1560 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Details of the applied ACL policy.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyInfo} + */ +@com.google.protobuf.Generated +public final class AclPolicyInfo extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.AclPolicyInfo) + AclPolicyInfoOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclPolicyInfo"); + } + + // Use AclPolicyInfo.newBuilder() to construct. + private AclPolicyInfo(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyInfo() { + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyInfo.class, + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder.class); + } + + public static final int APPLIED_ACL_POLICY_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicy_ = ""; + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicy_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 3; + private long appliedAclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
        +   * Output only. The revision number of the applied ACL policy revision.
        +   * 
        + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.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.GeneratedMessage.isStringEmpty(appliedAclPolicy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + output.writeInt64(3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(4, aclPolicyRevisionStatuses_.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.GeneratedMessage.isStringEmpty(appliedAclPolicy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, appliedAclPolicy_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(appliedAclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, appliedAclPolicyRevision_); + } + if (appliedAclPolicyRevisionNumber_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size( + 3, appliedAclPolicyRevisionNumber_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, aclPolicyRevisionStatuses_.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.memorystore.v1.AclPolicyInfo)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.AclPolicyInfo other = + (com.google.cloud.memorystore.v1.AclPolicyInfo) obj; + + if (!getAppliedAclPolicy().equals(other.getAppliedAclPolicy())) return false; + if (!getAppliedAclPolicyRevision().equals(other.getAppliedAclPolicyRevision())) return false; + if (getAppliedAclPolicyRevisionNumber() != other.getAppliedAclPolicyRevisionNumber()) + return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + APPLIED_ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicy().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAppliedAclPolicyRevision().hashCode(); + hash = (37 * hash) + APPLIED_ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAppliedAclPolicyRevisionNumber()); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo 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.memorystore.v1.AclPolicyInfo parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom( + 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.memorystore.v1.AclPolicyInfo parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.AclPolicyInfo prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Details of the applied ACL policy.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyInfo} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.AclPolicyInfo) + com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyInfo_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyInfo.class, + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.AclPolicyInfo.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + appliedAclPolicy_ = ""; + appliedAclPolicyRevision_ = ""; + appliedAclPolicyRevisionNumber_ = 0L; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyInfo getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyInfo build() { + com.google.cloud.memorystore.v1.AclPolicyInfo result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyInfo buildPartial() { + com.google.cloud.memorystore.v1.AclPolicyInfo result = + new com.google.cloud.memorystore.v1.AclPolicyInfo(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.memorystore.v1.AclPolicyInfo result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1.AclPolicyInfo result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.appliedAclPolicy_ = appliedAclPolicy_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.appliedAclPolicyRevision_ = appliedAclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.appliedAclPolicyRevisionNumber_ = appliedAclPolicyRevisionNumber_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.AclPolicyInfo) { + return mergeFrom((com.google.cloud.memorystore.v1.AclPolicyInfo) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.AclPolicyInfo other) { + if (other == com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance()) return this; + if (!other.getAppliedAclPolicy().isEmpty()) { + appliedAclPolicy_ = other.appliedAclPolicy_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAppliedAclPolicyRevision().isEmpty()) { + appliedAclPolicyRevision_ = other.appliedAclPolicyRevision_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getAppliedAclPolicyRevisionNumber() != 0L) { + setAppliedAclPolicyRevisionNumber(other.getAppliedAclPolicyRevisionNumber()); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000008); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + appliedAclPolicy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + appliedAclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + appliedAclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(m); + } + 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 appliedAclPolicy_ = ""; + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +     * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + public java.lang.String getAppliedAclPolicy() { + java.lang.Object ref = appliedAclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +     * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyBytes() { + java.lang.Object ref = appliedAclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +     * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +     * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicy() { + appliedAclPolicy_ = getDefaultInstance().getAppliedAclPolicy(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +     * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicy_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object appliedAclPolicyRevision_ = ""; + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + public java.lang.String getAppliedAclPolicyRevision() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + appliedAclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + public com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes() { + java.lang.Object ref = appliedAclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + appliedAclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevision() { + appliedAclPolicyRevision_ = getDefaultInstance().getAppliedAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the applied ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for appliedAclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + appliedAclPolicyRevision_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private long appliedAclPolicyRevisionNumber_; + + /** + * + * + *
        +     * Output only. The revision number of the applied ACL policy revision.
        +     * 
        + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAppliedAclPolicyRevisionNumber() { + return appliedAclPolicyRevisionNumber_; + } + + /** + * + * + *
        +     * Output only. The revision number of the applied ACL policy revision.
        +     * 
        + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The appliedAclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAppliedAclPolicyRevisionNumber(long value) { + + appliedAclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The revision number of the applied ACL policy revision.
        +     * 
        + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAppliedAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000004); + appliedAclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.AclPolicyInfo) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.AclPolicyInfo) + private static final com.google.cloud.memorystore.v1.AclPolicyInfo DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.AclPolicyInfo(); + } + + public static com.google.cloud.memorystore.v1.AclPolicyInfo getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyInfo parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.AclPolicyInfo getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfoOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfoOrBuilder.java new file mode 100644 index 000000000000..d59cc6532f9c --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyInfoOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface AclPolicyInfoOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.AclPolicyInfo) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicy. + */ + java.lang.String getAppliedAclPolicy(); + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * string applied_acl_policy = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicy. + */ + com.google.protobuf.ByteString getAppliedAclPolicyBytes(); + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The appliedAclPolicyRevision. + */ + java.lang.String getAppliedAclPolicyRevision(); + + /** + * + * + *
        +   * Output only. The resource name of the applied ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string applied_acl_policy_revision = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for appliedAclPolicyRevision. + */ + com.google.protobuf.ByteString getAppliedAclPolicyRevisionBytes(); + + /** + * + * + *
        +   * Output only. The revision number of the applied ACL policy revision.
        +   * 
        + * + * + * int64 applied_acl_policy_revision_number = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The appliedAclPolicyRevisionNumber. + */ + long getAppliedAclPolicyRevisionNumber(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses(int index); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyName.java new file mode 100644 index 000000000000..5b9111f863d7 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyName.java @@ -0,0 +1,226 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + + @Deprecated + protected AclPolicyName() { + project = null; + location = null; + aclPolicy = null; + } + + private AclPolicyName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyName of(String project, String location, String aclPolicy) { + return newBuilder().setProject(project).setLocation(location).setAclPolicy(aclPolicy).build(); + } + + public static String format(String project, String location, String aclPolicy) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .build() + .toString(); + } + + public static @Nullable AclPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY.validatedMatch( + formattedString, "AclPolicyName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("acl_policy")); + } + + 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<@Nullable AclPolicyName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY.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 (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyName that = ((AclPolicyName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy); + } + 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(aclPolicy); + return h; + } + + /** Builder for projects/{project}/locations/{location}/aclPolicies/{acl_policy}. */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + private Builder(AclPolicyName aclPolicyName) { + this.project = aclPolicyName.project; + this.location = aclPolicyName.location; + this.aclPolicy = aclPolicyName.aclPolicy; + } + + public AclPolicyName build() { + return new AclPolicyName(this); + } + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyOrBuilder.java new file mode 100644 index 000000000000..9af97fdb19be --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyOrBuilder.java @@ -0,0 +1,338 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface AclPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.AclPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Identifier. Full resource path of the ACL policy.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Identifier. Full resource path of the ACL policy.
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1.AclRule getRules(int index); + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getRulesOrBuilderList(); + + /** + * + * + *
        +   * Required. The ACL rules within the ACL policy.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclRule rules = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1.AclRuleOrBuilder getRulesOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The state of the ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
        +   * Output only. The state of the ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.memorystore.v1.AclPolicy.State getState(); + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the etag field is set. + */ + boolean hasEtag(); + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
        +   * Output only. Etag of the ACL policy.
        +   * 
        + * + * optional string etag = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInstanceAclPolicyAttachmentsList(); + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment getInstanceAclPolicyAttachments( + int index); + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getInstanceAclPolicyAttachmentsCount(); + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getInstanceAclPolicyAttachmentsOrBuilderList(); + + /** + * + * + *
        +   * Output only. The ACL policy attachment status for each attached instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder + getInstanceAclPolicyAttachmentsOrBuilder(int index); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the ACL policy was last updated.
        +   * 
        + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevision.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevision.java new file mode 100644 index 000000000000..21de1bfff54e --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevision.java @@ -0,0 +1,1662 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * The ACL policy revision resource.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyRevision} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevision extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.AclPolicyRevision) + AclPolicyRevisionOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclPolicyRevision"); + } + + // Use AclPolicyRevision.newBuilder() to construct. + private AclPolicyRevision(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevision() { + name_ = ""; + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyRevision.class, + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Identifier. The name of the ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * 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 name of the ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * 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 REVISION_NUMBER_FIELD_NUMBER = 2; + private long revisionNumber_ = 0L; + + /** + * + * + *
        +   * Output only. The revision number of the ACL policy revision.
        +   * 
        + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + public static final int SNAPSHOT_FIELD_NUMBER = 3; + private com.google.cloud.memorystore.v1.AclPolicy snapshot_; + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + @java.lang.Override + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy getSnapshot() { + return snapshot_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getSnapshotOrBuilder() { + return snapshot_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + + public static final int CREATE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
        +   * Output only. The timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Output only. The timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.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 timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.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 ATTACHED_INSTANCES_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList attachedInstances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + public com.google.protobuf.ProtocolStringList getAttachedInstancesList() { + return attachedInstances_; + } + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + public int getAttachedInstancesCount() { + return attachedInstances_.size(); + } + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + public java.lang.String getAttachedInstances(int index) { + return attachedInstances_.get(index); + } + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + public com.google.protobuf.ByteString getAttachedInstancesBytes(int index) { + return attachedInstances_.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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (revisionNumber_ != 0L) { + output.writeInt64(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(4, getCreateTime()); + } + for (int i = 0; i < attachedInstances_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, attachedInstances_.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (revisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, revisionNumber_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getSnapshot()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getCreateTime()); + } + { + int dataSize = 0; + for (int i = 0; i < attachedInstances_.size(); i++) { + dataSize += computeStringSizeNoTag(attachedInstances_.getRaw(i)); + } + size += dataSize; + size += 1 * getAttachedInstancesList().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.memorystore.v1.AclPolicyRevision)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.AclPolicyRevision other = + (com.google.cloud.memorystore.v1.AclPolicyRevision) obj; + + if (!getName().equals(other.getName())) return false; + if (getRevisionNumber() != other.getRevisionNumber()) return false; + if (hasSnapshot() != other.hasSnapshot()) return false; + if (hasSnapshot()) { + if (!getSnapshot().equals(other.getSnapshot())) return false; + } + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (!getAttachedInstancesList().equals(other.getAttachedInstancesList())) 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) + REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getRevisionNumber()); + if (hasSnapshot()) { + hash = (37 * hash) + SNAPSHOT_FIELD_NUMBER; + hash = (53 * hash) + getSnapshot().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (getAttachedInstancesCount() > 0) { + hash = (37 * hash) + ATTACHED_INSTANCES_FIELD_NUMBER; + hash = (53 * hash) + getAttachedInstancesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision 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.memorystore.v1.AclPolicyRevision parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + 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.memorystore.v1.AclPolicyRevision parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.AclPolicyRevision prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * The ACL policy revision resource.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyRevision} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.AclPolicyRevision) + com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevision_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyRevision.class, + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.AclPolicyRevision.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetSnapshotFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + revisionNumber_ = 0L; + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevision getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.AclPolicyRevision.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevision build() { + com.google.cloud.memorystore.v1.AclPolicyRevision result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevision buildPartial() { + com.google.cloud.memorystore.v1.AclPolicyRevision result = + new com.google.cloud.memorystore.v1.AclPolicyRevision(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.AclPolicyRevision result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.revisionNumber_ = revisionNumber_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.snapshot_ = snapshotBuilder_ == null ? snapshot_ : snapshotBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + attachedInstances_.makeImmutable(); + result.attachedInstances_ = attachedInstances_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.AclPolicyRevision) { + return mergeFrom((com.google.cloud.memorystore.v1.AclPolicyRevision) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.AclPolicyRevision other) { + if (other == com.google.cloud.memorystore.v1.AclPolicyRevision.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getRevisionNumber() != 0L) { + setRevisionNumber(other.getRevisionNumber()); + } + if (other.hasSnapshot()) { + mergeSnapshot(other.getSnapshot()); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (!other.attachedInstances_.isEmpty()) { + if (attachedInstances_.isEmpty()) { + attachedInstances_ = other.attachedInstances_; + bitField0_ |= 0x00000010; + } else { + ensureAttachedInstancesIsMutable(); + attachedInstances_.addAll(other.attachedInstances_); + } + 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 16: + { + revisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + input.readMessage( + internalGetSnapshotFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureAttachedInstancesIsMutable(); + attachedInstances_.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.lang.Object name_ = ""; + + /** + * + * + *
        +     * Identifier. The name of the ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * 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 name of the ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * 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 name of the ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * 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 name of the ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * 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 name of the ACL policy revision.
        +     * Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * 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 long revisionNumber_; + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision.
        +     * 
        + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + @java.lang.Override + public long getRevisionNumber() { + return revisionNumber_; + } + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision.
        +     * 
        + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The revisionNumber to set. + * @return This builder for chaining. + */ + public Builder setRevisionNumber(long value) { + + revisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision.
        +     * 
        + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + revisionNumber_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1.AclPolicy snapshot_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + snapshotBuilder_; + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + public boolean hasSnapshot() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + public com.google.cloud.memorystore.v1.AclPolicy getSnapshot() { + if (snapshotBuilder_ == null) { + return snapshot_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } else { + return snapshotBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.memorystore.v1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + snapshot_ = value; + } else { + snapshotBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setSnapshot(com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (snapshotBuilder_ == null) { + snapshot_ = builderForValue.build(); + } else { + snapshotBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeSnapshot(com.google.cloud.memorystore.v1.AclPolicy value) { + if (snapshotBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && snapshot_ != null + && snapshot_ != com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()) { + getSnapshotBuilder().mergeFrom(value); + } else { + snapshot_ = value; + } + } else { + snapshotBuilder_.mergeFrom(value); + } + if (snapshot_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearSnapshot() { + bitField0_ = (bitField0_ & ~0x00000004); + snapshot_ = null; + if (snapshotBuilder_ != null) { + snapshotBuilder_.dispose(); + snapshotBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder getSnapshotBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetSnapshotFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getSnapshotOrBuilder() { + if (snapshotBuilder_ != null) { + return snapshotBuilder_.getMessageOrBuilder(); + } else { + return snapshot_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : snapshot_; + } + } + + /** + * + * + *
        +     * Output only. The snapshot of the ACL policy at the time of revision
        +     * creation.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + internalGetSnapshotFieldBuilder() { + if (snapshotBuilder_ == null) { + snapshotBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder>( + getSnapshot(), getParentForChildren(), isClean()); + snapshot_ = null; + } + return snapshotBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000008); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. The timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.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 timestamp that the revision was created.
        +     * 
        + * + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.LazyStringArrayList attachedInstances_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureAttachedInstancesIsMutable() { + if (!attachedInstances_.isModifiable()) { + attachedInstances_ = new com.google.protobuf.LazyStringArrayList(attachedInstances_); + } + bitField0_ |= 0x00000010; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + public com.google.protobuf.ProtocolStringList getAttachedInstancesList() { + attachedInstances_.makeImmutable(); + return attachedInstances_; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + public int getAttachedInstancesCount() { + return attachedInstances_.size(); + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + public java.lang.String getAttachedInstances(int index) { + return attachedInstances_.get(index); + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + public com.google.protobuf.ByteString getAttachedInstancesBytes(int index) { + return attachedInstances_.getByteString(index); + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The attachedInstances to set. + * @return This builder for chaining. + */ + public Builder setAttachedInstances(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedInstancesIsMutable(); + attachedInstances_.set(index, value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAttachedInstances(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureAttachedInstancesIsMutable(); + attachedInstances_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param values The attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAllAttachedInstances(java.lang.Iterable values) { + ensureAttachedInstancesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, attachedInstances_); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAttachedInstances() { + attachedInstances_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. A list of instances that are attached to this ACL policy
        +     * revision.
        +     * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the attachedInstances to add. + * @return This builder for chaining. + */ + public Builder addAttachedInstancesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureAttachedInstancesIsMutable(); + attachedInstances_.add(value); + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.AclPolicyRevision) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.AclPolicyRevision) + private static final com.google.cloud.memorystore.v1.AclPolicyRevision DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.AclPolicyRevision(); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevision getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevision parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.AclPolicyRevision getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionName.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionName.java new file mode 100644 index 000000000000..219b0db06870 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionName.java @@ -0,0 +1,264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.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; +import org.jspecify.annotations.NullMarked; +import org.jspecify.annotations.Nullable; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@NullMarked +@Generated("by gapic-generator-java") +public class AclPolicyRevisionName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ACL_POLICY_REVISION = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String aclPolicy; + private final String revision; + + @Deprecated + protected AclPolicyRevisionName() { + project = null; + location = null; + aclPolicy = null; + revision = null; + } + + private AclPolicyRevisionName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + aclPolicy = Preconditions.checkNotNull(builder.getAclPolicy()); + revision = Preconditions.checkNotNull(builder.getRevision()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AclPolicyRevisionName of( + String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build(); + } + + public static String format(String project, String location, String aclPolicy, String revision) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setAclPolicy(aclPolicy) + .setRevision(revision) + .build() + .toString(); + } + + public static @Nullable AclPolicyRevisionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ACL_POLICY_REVISION.validatedMatch( + formattedString, "AclPolicyRevisionName.parse: formattedString not in valid format"); + return of( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("acl_policy"), + matchMap.get("revision")); + } + + 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<@Nullable AclPolicyRevisionName> values) { + List list = new ArrayList<>(values.size()); + for (AclPolicyRevisionName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ACL_POLICY_REVISION.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 (aclPolicy != null) { + fieldMapBuilder.put("acl_policy", aclPolicy); + } + if (revision != null) { + fieldMapBuilder.put("revision", revision); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ACL_POLICY_REVISION.instantiate( + "project", project, "location", location, "acl_policy", aclPolicy, "revision", revision); + } + + @Override + public boolean equals(@Nullable Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AclPolicyRevisionName that = ((AclPolicyRevisionName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.aclPolicy, that.aclPolicy) + && Objects.equals(this.revision, that.revision); + } + 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(aclPolicy); + h *= 1000003; + h ^= Objects.hashCode(revision); + return h; + } + + /** + * Builder for + * projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}. + */ + public static class Builder { + private String project; + private String location; + private String aclPolicy; + private String revision; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAclPolicy() { + return aclPolicy; + } + + public String getRevision() { + return revision; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAclPolicy(String aclPolicy) { + this.aclPolicy = aclPolicy; + return this; + } + + public Builder setRevision(String revision) { + this.revision = revision; + return this; + } + + private Builder(AclPolicyRevisionName aclPolicyRevisionName) { + this.project = aclPolicyRevisionName.project; + this.location = aclPolicyRevisionName.location; + this.aclPolicy = aclPolicyRevisionName.aclPolicy; + this.revision = aclPolicyRevisionName.revision; + } + + public AclPolicyRevisionName build() { + return new AclPolicyRevisionName(this); + } + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionOrBuilder.java new file mode 100644 index 000000000000..48cf65f74548 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionOrBuilder.java @@ -0,0 +1,223 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.AclPolicyRevision) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Identifier. The name of the ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Identifier. The name of the ACL policy revision.
        +   * Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Output only. The revision number of the ACL policy revision.
        +   * 
        + * + * int64 revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The revisionNumber. + */ + long getRevisionNumber(); + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the snapshot field is set. + */ + boolean hasSnapshot(); + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The snapshot. + */ + com.google.cloud.memorystore.v1.AclPolicy getSnapshot(); + + /** + * + * + *
        +   * Output only. The snapshot of the ACL policy at the time of revision
        +   * creation.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy snapshot = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyOrBuilder getSnapshotOrBuilder(); + + /** + * + * + *
        +   * Output only. The timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
        +   * Output only. The timestamp that the revision was created.
        +   * 
        + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the attachedInstances. + */ + java.util.List getAttachedInstancesList(); + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The count of attachedInstances. + */ + int getAttachedInstancesCount(); + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The attachedInstances at the given index. + */ + java.lang.String getAttachedInstances(int index); + + /** + * + * + *
        +   * Output only. A list of instances that are attached to this ACL policy
        +   * revision.
        +   * 
        + * + * + * repeated string attached_instances = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the attachedInstances at the given index. + */ + com.google.protobuf.ByteString getAttachedInstancesBytes(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatus.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatus.java new file mode 100644 index 000000000000..e77008f959ef --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatus.java @@ -0,0 +1,1298 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * AclPolicyRevisionStatus stores the per-revision status for an attached
        + * instance.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyRevisionStatus} + */ +@com.google.protobuf.Generated +public final class AclPolicyRevisionStatus extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.AclPolicyRevisionStatus) + AclPolicyRevisionStatusOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclPolicyRevisionStatus"); + } + + // Use AclPolicyRevisionStatus.newBuilder() to construct. + private AclPolicyRevisionStatus(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclPolicyRevisionStatus() { + aclPolicyRevision_ = ""; + state_ = 0; + errorMessage_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.class, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder.class); + } + + /** + * + * + *
        +   * Enum indicating the status of this ACL policy revision on the instance.
        +   * 
        + * + * Protobuf enum {@code google.cloud.memorystore.v1.AclPolicyRevisionStatus.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
        +     * Not set.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
        +     * The instance is attempting to apply this revision.
        +     * 
        + * + * APPLYING = 1; + */ + APPLYING(1), + /** + * + * + *
        +     * The instance has successfully applied this revision.
        +     * 
        + * + * APPLIED = 2; + */ + APPLIED(2), + /** + * + * + *
        +     * The instance failed to apply this revision.
        +     * 
        + * + * FAILED = 3; + */ + FAILED(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
        +     * Not set.
        +     * 
        + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
        +     * The instance is attempting to apply this revision.
        +     * 
        + * + * APPLYING = 1; + */ + public static final int APPLYING_VALUE = 1; + + /** + * + * + *
        +     * The instance has successfully applied this revision.
        +     * 
        + * + * APPLIED = 2; + */ + public static final int APPLIED_VALUE = 2; + + /** + * + * + *
        +     * The instance failed to apply this revision.
        +     * 
        + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return APPLYING; + case 2: + return APPLIED; + case 3: + 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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.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.memorystore.v1.AclPolicyRevisionStatus.State) + } + + public static final int ACL_POLICY_REVISION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyRevision_ = ""; + + /** + * + * + *
        +   * Output only. The resource name of the ACL policy revision this status
        +   * refers to. Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + @java.lang.Override + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyRevision_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource name of the ACL policy revision this status
        +   * refers to. Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER = 2; + private long aclPolicyRevisionNumber_ = 0L; + + /** + * + * + *
        +   * Output only. The revision number of the ACL policy revision this status
        +   * refers to.
        +   * 
        + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + public static final int STATE_FIELD_NUMBER = 3; + private int state_ = 0; + + /** + * + * + *
        +   * Output only. AclPolicyRevision state.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.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. AclPolicyRevision state.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State result = + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + public static final int ERROR_MESSAGE_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object errorMessage_ = ""; + + /** + * + * + *
        +   * Output only. Human-readable error message providing more details for FAILED
        +   * states.
        +   * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + @java.lang.Override + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. Human-readable error message providing more details for FAILED
        +   * states.
        +   * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + @java.lang.Override + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = 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.GeneratedMessage.isStringEmpty(aclPolicyRevision_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + output.writeInt64(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, errorMessage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyRevision_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, aclPolicyRevision_); + } + if (aclPolicyRevisionNumber_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(2, aclPolicyRevisionNumber_); + } + if (state_ + != com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(errorMessage_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, errorMessage_); + } + 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.memorystore.v1.AclPolicyRevisionStatus)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus other = + (com.google.cloud.memorystore.v1.AclPolicyRevisionStatus) obj; + + if (!getAclPolicyRevision().equals(other.getAclPolicyRevision())) return false; + if (getAclPolicyRevisionNumber() != other.getAclPolicyRevisionNumber()) return false; + if (state_ != other.state_) return false; + if (!getErrorMessage().equals(other.getErrorMessage())) 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) + ACL_POLICY_REVISION_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevision().hashCode(); + hash = (37 * hash) + ACL_POLICY_REVISION_NUMBER_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getAclPolicyRevisionNumber()); + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getErrorMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus 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.memorystore.v1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + 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.memorystore.v1.AclPolicyRevisionStatus parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.AclPolicyRevisionStatus prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * AclPolicyRevisionStatus stores the per-revision status for an attached
        +   * instance.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclPolicyRevisionStatus} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.AclPolicyRevisionStatus) + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.class, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicyRevision_ = ""; + aclPolicyRevisionNumber_ = 0L; + state_ = 0; + errorMessage_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus build() { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus buildPartial() { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus result = + new com.google.cloud.memorystore.v1.AclPolicyRevisionStatus(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.AclPolicyRevisionStatus result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicyRevision_ = aclPolicyRevision_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyRevisionNumber_ = aclPolicyRevisionNumber_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.errorMessage_ = errorMessage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.AclPolicyRevisionStatus) { + return mergeFrom((com.google.cloud.memorystore.v1.AclPolicyRevisionStatus) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.AclPolicyRevisionStatus other) { + if (other == com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance()) + return this; + if (!other.getAclPolicyRevision().isEmpty()) { + aclPolicyRevision_ = other.aclPolicyRevision_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getAclPolicyRevisionNumber() != 0L) { + setAclPolicyRevisionNumber(other.getAclPolicyRevisionNumber()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (!other.getErrorMessage().isEmpty()) { + errorMessage_ = other.errorMessage_; + 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: + { + aclPolicyRevision_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + aclPolicyRevisionNumber_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + errorMessage_ = 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 aclPolicyRevision_ = ""; + + /** + * + * + *
        +     * Output only. The resource name of the ACL policy revision this status
        +     * refers to. Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + public java.lang.String getAclPolicyRevision() { + java.lang.Object ref = aclPolicyRevision_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyRevision_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the ACL policy revision this status
        +     * refers to. Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + public com.google.protobuf.ByteString getAclPolicyRevisionBytes() { + java.lang.Object ref = aclPolicyRevision_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyRevision_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the ACL policy revision this status
        +     * refers to. Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevision(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the ACL policy revision this status
        +     * refers to. Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevision() { + aclPolicyRevision_ = getDefaultInstance().getAclPolicyRevision(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the ACL policy revision this status
        +     * refers to. Format:
        +     * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +     * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicyRevision to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyRevision_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private long aclPolicyRevisionNumber_; + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision this status
        +     * refers to.
        +     * 
        + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyRevisionNumber. + */ + @java.lang.Override + public long getAclPolicyRevisionNumber() { + return aclPolicyRevisionNumber_; + } + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision this status
        +     * refers to.
        +     * 
        + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The aclPolicyRevisionNumber to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyRevisionNumber(long value) { + + aclPolicyRevisionNumber_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The revision number of the ACL policy revision this status
        +     * refers to.
        +     * 
        + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyRevisionNumber() { + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionNumber_ = 0L; + onChanged(); + return this; + } + + private int state_ = 0; + + /** + * + * + *
        +     * Output only. AclPolicyRevision state.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.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. AclPolicyRevision state.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. AclPolicyRevision state.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State getState() { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State result = + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.forNumber(state_); + return result == null + ? com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
        +     * Output only. AclPolicyRevision state.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. AclPolicyRevision state.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000004); + state_ = 0; + onChanged(); + return this; + } + + private java.lang.Object errorMessage_ = ""; + + /** + * + * + *
        +     * Output only. Human-readable error message providing more details for FAILED
        +     * states.
        +     * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + public java.lang.String getErrorMessage() { + java.lang.Object ref = errorMessage_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + errorMessage_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. Human-readable error message providing more details for FAILED
        +     * states.
        +     * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + public com.google.protobuf.ByteString getErrorMessageBytes() { + java.lang.Object ref = errorMessage_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + errorMessage_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. Human-readable error message providing more details for FAILED
        +     * states.
        +     * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Human-readable error message providing more details for FAILED
        +     * states.
        +     * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearErrorMessage() { + errorMessage_ = getDefaultInstance().getErrorMessage(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Human-readable error message providing more details for FAILED
        +     * states.
        +     * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for errorMessage to set. + * @return This builder for chaining. + */ + public Builder setErrorMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + errorMessage_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.AclPolicyRevisionStatus) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.AclPolicyRevisionStatus) + private static final com.google.cloud.memorystore.v1.AclPolicyRevisionStatus DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.AclPolicyRevisionStatus(); + } + + public static com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclPolicyRevisionStatus parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.AclPolicyRevisionStatus getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatusOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatusOrBuilder.java new file mode 100644 index 000000000000..dad27a2b4bee --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclPolicyRevisionStatusOrBuilder.java @@ -0,0 +1,134 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface AclPolicyRevisionStatusOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.AclPolicyRevisionStatus) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The resource name of the ACL policy revision this status
        +   * refers to. Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicyRevision. + */ + java.lang.String getAclPolicyRevision(); + + /** + * + * + *
        +   * Output only. The resource name of the ACL policy revision this status
        +   * refers to. Format:
        +   * "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}"
        +   * 
        + * + * + * string acl_policy_revision = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicyRevision. + */ + com.google.protobuf.ByteString getAclPolicyRevisionBytes(); + + /** + * + * + *
        +   * Output only. The revision number of the ACL policy revision this status
        +   * refers to.
        +   * 
        + * + * int64 acl_policy_revision_number = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The aclPolicyRevisionNumber. + */ + long getAclPolicyRevisionNumber(); + + /** + * + * + *
        +   * Output only. AclPolicyRevision state.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
        +   * Output only. AclPolicyRevision state.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyRevisionStatus.State state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.State getState(); + + /** + * + * + *
        +   * Output only. Human-readable error message providing more details for FAILED
        +   * states.
        +   * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The errorMessage. + */ + java.lang.String getErrorMessage(); + + /** + * + * + *
        +   * Output only. Human-readable error message providing more details for FAILED
        +   * states.
        +   * 
        + * + * string error_message = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for errorMessage. + */ + com.google.protobuf.ByteString getErrorMessageBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRule.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRule.java new file mode 100644 index 000000000000..e7bf87e9b692 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRule.java @@ -0,0 +1,804 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * A single ACL rule which defines the policy for a user.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclRule} + */ +@com.google.protobuf.Generated +public final class AclRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.AclRule) + AclRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "AclRule"); + } + + // Use AclRule.newBuilder() to construct. + private AclRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AclRule() { + username_ = ""; + rule_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclRule.class, + com.google.cloud.memorystore.v1.AclRule.Builder.class); + } + + public static final int USERNAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object username_ = ""; + + /** + * + * + *
        +   * Required. Specifies the IAM user or service account to be added to the ACL
        +   * policy. This username will be directly set on the Valkey OSS.
        +   * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + @java.lang.Override + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. Specifies the IAM user or service account to be added to the ACL
        +   * policy. This username will be directly set on the Valkey OSS.
        +   * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RULE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object rule_ = ""; + + /** + * + * + *
        +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +   * +@all" The format of the rule is defined by Valkey OSS:
        +   * https://valkey.io/topics/acl/
        +   * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + @java.lang.Override + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +   * +@all" The format of the rule is defined by Valkey OSS:
        +   * https://valkey.io/topics/acl/
        +   * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = 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.GeneratedMessage.isStringEmpty(username_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, rule_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(username_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, username_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rule_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, rule_); + } + 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.memorystore.v1.AclRule)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.AclRule other = (com.google.cloud.memorystore.v1.AclRule) obj; + + if (!getUsername().equals(other.getUsername())) return false; + if (!getRule().equals(other.getRule())) 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) + USERNAME_FIELD_NUMBER; + hash = (53 * hash) + getUsername().hashCode(); + hash = (37 * hash) + RULE_FIELD_NUMBER; + hash = (53 * hash) + getRule().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclRule 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.memorystore.v1.AclRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom( + 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.memorystore.v1.AclRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclRule parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.AclRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.AclRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * A single ACL rule which defines the policy for a user.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.AclRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.AclRule) + com.google.cloud.memorystore.v1.AclRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclRule_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.AclRule.class, + com.google.cloud.memorystore.v1.AclRule.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.AclRule.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + username_ = ""; + rule_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_AclRule_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclRule getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.AclRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclRule build() { + com.google.cloud.memorystore.v1.AclRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.AclRule buildPartial() { + com.google.cloud.memorystore.v1.AclRule result = + new com.google.cloud.memorystore.v1.AclRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.AclRule result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.username_ = username_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rule_ = rule_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.AclRule) { + return mergeFrom((com.google.cloud.memorystore.v1.AclRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.AclRule other) { + if (other == com.google.cloud.memorystore.v1.AclRule.getDefaultInstance()) return this; + if (!other.getUsername().isEmpty()) { + username_ = other.username_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getRule().isEmpty()) { + rule_ = other.rule_; + 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: + { + username_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + rule_ = 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 username_ = ""; + + /** + * + * + *
        +     * Required. Specifies the IAM user or service account to be added to the ACL
        +     * policy. This username will be directly set on the Valkey OSS.
        +     * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + public java.lang.String getUsername() { + java.lang.Object ref = username_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + username_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. Specifies the IAM user or service account to be added to the ACL
        +     * policy. This username will be directly set on the Valkey OSS.
        +     * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + public com.google.protobuf.ByteString getUsernameBytes() { + java.lang.Object ref = username_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + username_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. Specifies the IAM user or service account to be added to the ACL
        +     * policy. This username will be directly set on the Valkey OSS.
        +     * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The username to set. + * @return This builder for chaining. + */ + public Builder setUsername(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Specifies the IAM user or service account to be added to the ACL
        +     * policy. This username will be directly set on the Valkey OSS.
        +     * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearUsername() { + username_ = getDefaultInstance().getUsername(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. Specifies the IAM user or service account to be added to the ACL
        +     * policy. This username will be directly set on the Valkey OSS.
        +     * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for username to set. + * @return This builder for chaining. + */ + public Builder setUsernameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + username_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object rule_ = ""; + + /** + * + * + *
        +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +     * +@all" The format of the rule is defined by Valkey OSS:
        +     * https://valkey.io/topics/acl/
        +     * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + public java.lang.String getRule() { + java.lang.Object ref = rule_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rule_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +     * +@all" The format of the rule is defined by Valkey OSS:
        +     * https://valkey.io/topics/acl/
        +     * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + public com.google.protobuf.ByteString getRuleBytes() { + java.lang.Object ref = rule_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rule_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +     * +@all" The format of the rule is defined by Valkey OSS:
        +     * https://valkey.io/topics/acl/
        +     * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The rule to set. + * @return This builder for chaining. + */ + public Builder setRule(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +     * +@all" The format of the rule is defined by Valkey OSS:
        +     * https://valkey.io/topics/acl/
        +     * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearRule() { + rule_ = getDefaultInstance().getRule(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +     * +@all" The format of the rule is defined by Valkey OSS:
        +     * https://valkey.io/topics/acl/
        +     * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for rule to set. + * @return This builder for chaining. + */ + public Builder setRuleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rule_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.AclRule) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.AclRule) + private static final com.google.cloud.memorystore.v1.AclRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.AclRule(); + } + + public static com.google.cloud.memorystore.v1.AclRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AclRule parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.AclRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRuleOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRuleOrBuilder.java new file mode 100644 index 000000000000..11993884d5b5 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/AclRuleOrBuilder.java @@ -0,0 +1,86 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface AclRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.AclRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Specifies the IAM user or service account to be added to the ACL
        +   * policy. This username will be directly set on the Valkey OSS.
        +   * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The username. + */ + java.lang.String getUsername(); + + /** + * + * + *
        +   * Required. Specifies the IAM user or service account to be added to the ACL
        +   * policy. This username will be directly set on the Valkey OSS.
        +   * 
        + * + * string username = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for username. + */ + com.google.protobuf.ByteString getUsernameBytes(); + + /** + * + * + *
        +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +   * +@all" The format of the rule is defined by Valkey OSS:
        +   * https://valkey.io/topics/acl/
        +   * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The rule. + */ + java.lang.String getRule(); + + /** + * + * + *
        +   * Required. The rule to be applied to the username. Ex: "on >password123 ~*
        +   * +@all" The format of the rule is defined by Valkey OSS:
        +   * https://valkey.io/topics/acl/
        +   * 
        + * + * string rule = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for rule. + */ + com.google.protobuf.ByteString getRuleBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequest.java new file mode 100644 index 000000000000..7725f6dcad13 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequest.java @@ -0,0 +1,1389 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Request for `CreateAclPolicy`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.CreateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.CreateAclPolicyRequest) + CreateAclPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "CreateAclPolicyRequest"); + } + + // Use CreateAclPolicyRequest.newBuilder() to construct. + private CreateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAclPolicyRequest() { + parent_ = ""; + aclPolicyId_ = ""; + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest.class, + com.google.cloud.memorystore.v1.CreateAclPolicyRequest.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 ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 ACL_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicyId_ = ""; + + /** + * + * + *
        +   * Required. The logical name of the ACL policy in the customer project
        +   * with the following restrictions:
        +   *
        +   * * Must contain only lowercase letters, numbers, and hyphens.
        +   * * Must start with a letter.
        +   * * Must be between 1-63 characters.
        +   * * Must end with a number or a letter.
        +   * * Must be unique within the customer project / location
        +   * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + @java.lang.Override + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyId_ = s; + return s; + } + } + + /** + * + * + *
        +   * Required. The logical name of the ACL policy in the customer project
        +   * with the following restrictions:
        +   *
        +   * * Must contain only lowercase letters, numbers, and hyphens.
        +   * * Must start with a letter.
        +   * * Must be between 1-63 characters.
        +   * * Must end with a number or a letter.
        +   * * Must be unique within the customer project / location
        +   * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_FIELD_NUMBER = 3; + private com.google.cloud.memorystore.v1.AclPolicy aclPolicy_; + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int REQUEST_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * .
        +   * 
        + * + * + * string request_id = 4 [(.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. Idempotent request UUID.
        +   * .
        +   * 
        + * + * + * string request_id = 4 [(.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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(aclPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, aclPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAclPolicy()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.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.memorystore.v1.CreateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.CreateAclPolicyRequest other = + (com.google.cloud.memorystore.v1.CreateAclPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAclPolicyId().equals(other.getAclPolicyId())) return false; + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) 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) + ACL_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyId().hashCode(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().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.memorystore.v1.CreateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest 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.memorystore.v1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + 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.memorystore.v1.CreateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.CreateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request for `CreateAclPolicy`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.CreateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.CreateAclPolicyRequest) + com.google.cloud.memorystore.v1.CreateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.CreateAclPolicyRequest.class, + com.google.cloud.memorystore.v1.CreateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.CreateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + aclPolicyId_ = ""; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.CreateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.CreateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.CreateAclPolicyRequest build() { + com.google.cloud.memorystore.v1.CreateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.CreateAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1.CreateAclPolicyRequest result = + new com.google.cloud.memorystore.v1.CreateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.CreateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.aclPolicyId_ = aclPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.CreateAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.CreateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.CreateAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1.CreateAclPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAclPolicyId().isEmpty()) { + aclPolicyId_ = other.aclPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + 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: + { + aclPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAclPolicyFieldBuilder().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 resource name of the ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 aclPolicyId_ = ""; + + /** + * + * + *
        +     * Required. The logical name of the ACL policy in the customer project
        +     * with the following restrictions:
        +     *
        +     * * Must contain only lowercase letters, numbers, and hyphens.
        +     * * Must start with a letter.
        +     * * Must be between 1-63 characters.
        +     * * Must end with a number or a letter.
        +     * * Must be unique within the customer project / location
        +     * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + public java.lang.String getAclPolicyId() { + java.lang.Object ref = aclPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Required. The logical name of the ACL policy in the customer project
        +     * with the following restrictions:
        +     *
        +     * * Must contain only lowercase letters, numbers, and hyphens.
        +     * * Must start with a letter.
        +     * * Must be between 1-63 characters.
        +     * * Must end with a number or a letter.
        +     * * Must be unique within the customer project / location
        +     * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + public com.google.protobuf.ByteString getAclPolicyIdBytes() { + java.lang.Object ref = aclPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Required. The logical name of the ACL policy in the customer project
        +     * with the following restrictions:
        +     *
        +     * * Must contain only lowercase letters, numbers, and hyphens.
        +     * * Must start with a letter.
        +     * * Must be between 1-63 characters.
        +     * * Must end with a number or a letter.
        +     * * Must be unique within the customer project / location
        +     * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The logical name of the ACL policy in the customer project
        +     * with the following restrictions:
        +     *
        +     * * Must contain only lowercase letters, numbers, and hyphens.
        +     * * Must start with a letter.
        +     * * Must be between 1-63 characters.
        +     * * Must end with a number or a letter.
        +     * * Must be unique within the customer project / location
        +     * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAclPolicyId() { + aclPolicyId_ = getDefaultInstance().getAclPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The logical name of the ACL policy in the customer project
        +     * with the following restrictions:
        +     *
        +     * * Must contain only lowercase letters, numbers, and hyphens.
        +     * * Must start with a letter.
        +     * * Must be between 1-63 characters.
        +     * * Must end with a number or a letter.
        +     * * Must be unique within the customer project / location
        +     * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for aclPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
        +     * Required. The ACL policy that is to be created.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * .
        +     * 
        + * + * + * string request_id = 4 [(.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. Idempotent request UUID.
        +     * .
        +     * 
        + * + * + * string request_id = 4 [(.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. Idempotent request UUID.
        +     * .
        +     * 
        + * + * + * string request_id = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * .
        +     * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * .
        +     * 
        + * + * + * string request_id = 4 [(.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_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.CreateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.CreateAclPolicyRequest) + private static final com.google.cloud.memorystore.v1.CreateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.CreateAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1.CreateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAclPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.CreateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..7bb52de8d717 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/CreateAclPolicyRequestOrBuilder.java @@ -0,0 +1,177 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface CreateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.CreateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The resource name of the ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
        +   * Required. The logical name of the ACL policy in the customer project
        +   * with the following restrictions:
        +   *
        +   * * Must contain only lowercase letters, numbers, and hyphens.
        +   * * Must start with a letter.
        +   * * Must be between 1-63 characters.
        +   * * Must end with a number or a letter.
        +   * * Must be unique within the customer project / location
        +   * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The aclPolicyId. + */ + java.lang.String getAclPolicyId(); + + /** + * + * + *
        +   * Required. The logical name of the ACL policy in the customer project
        +   * with the following restrictions:
        +   *
        +   * * Must contain only lowercase letters, numbers, and hyphens.
        +   * * Must start with a letter.
        +   * * Must be between 1-63 characters.
        +   * * Must end with a number or a letter.
        +   * * Must be unique within the customer project / location
        +   * 
        + * + * string acl_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for aclPolicyId. + */ + com.google.protobuf.ByteString getAclPolicyIdBytes(); + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.memorystore.v1.AclPolicy getAclPolicy(); + + /** + * + * + *
        +   * Required. The ACL policy that is to be created.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * .
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * .
        +   * 
        + * + * + * string request_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecurityScheme.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequest.java similarity index 57% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecurityScheme.java rename to java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequest.java index 6db5934312d7..ba4a1416b265 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/APIKeySecurityScheme.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequest.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/memorystore/v1/memorystore.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.memorystore.v1; /** * * *
        - * APIKeySecurityScheme defines an API key security scheme.
        + * Request for `DeleteAclPolicy`.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme} + * Protobuf type {@code google.cloud.memorystore.v1.DeleteAclPolicyRequest} */ @com.google.protobuf.Generated -public final class APIKeySecurityScheme extends com.google.protobuf.GeneratedMessage +public final class DeleteAclPolicyRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) - APIKeySecuritySchemeOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.DeleteAclPolicyRequest) + DeleteAclPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,60 +43,64 @@ public final class APIKeySecurityScheme extends com.google.protobuf.GeneratedMes /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "APIKeySecurityScheme"); + "DeleteAclPolicyRequest"); } - // Use APIKeySecurityScheme.newBuilder() to construct. - private APIKeySecurityScheme(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use DeleteAclPolicyRequest.newBuilder() to construct. + private DeleteAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private APIKeySecurityScheme() { - description_ = ""; - location_ = ""; + private DeleteAclPolicyRequest() { name_ = ""; + requestId_ = ""; + etag_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder.class); + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.class, + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.Builder.class); } - public static final int DESCRIPTION_FIELD_NUMBER = 1; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object description_ = ""; + private volatile java.lang.Object name_ = ""; /** * * *
        -   * Optional. Description of this security scheme.
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +   * where `location` refers to a Google Cloud region.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The description. + * @return The name. */ @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + name_ = s; return s; } } @@ -105,52 +109,57 @@ public java.lang.String getDescription() { * * *
        -   * Optional. Description of this security scheme.
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +   * where `location` refers to a Google Cloud region.
            * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for description. + * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int LOCATION_FIELD_NUMBER = 2; + public static final int REQUEST_ID_FIELD_NUMBER = 2; @SuppressWarnings("serial") - private volatile java.lang.Object location_ = ""; + private volatile java.lang.Object requestId_ = ""; /** * * *
        -   * Optional. Location of the API key, valid values are "query", "header", or
        -   * "cookie".
        +   * Optional. Idempotent request UUID.
            * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @return The location. + * @return The requestId. */ @java.lang.Override - public java.lang.String getLocation() { - java.lang.Object ref = location_; + 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(); - location_ = s; + requestId_ = s; return s; } } @@ -159,52 +168,54 @@ public java.lang.String getLocation() { * * *
        -   * Optional. Location of the API key, valid values are "query", "header", or
        -   * "cookie".
        +   * Optional. Idempotent request UUID.
            * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @return The bytes for location. + * @return The bytes for requestId. */ @java.lang.Override - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; + 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); - location_ = b; + requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int NAME_FIELD_NUMBER = 3; + public static final int ETAG_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object name_ = ""; + private volatile java.lang.Object etag_ = ""; /** * * *
        -   * Optional. Name of the header, query or cookie parameter to be used.
        +   * Optional. Etag of the ACL policy. If this is different from the server's
        +   * etag, the request will fail with an ABORTED error.
            * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The name. + * @return The etag. */ @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; if (ref instanceof java.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; + etag_ = s; return s; } } @@ -213,20 +224,21 @@ public java.lang.String getName() { * * *
        -   * Optional. Name of the header, query or cookie parameter to be used.
        +   * Optional. Etag of the ACL policy. If this is different from the server's
        +   * etag, the request will fail with an ABORTED error.
            * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for name. + * @return The bytes for etag. */ @java.lang.Override - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -247,14 +259,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, location_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, requestId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); } getUnknownFields().writeTo(output); } @@ -265,14 +277,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, location_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, requestId_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, name_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -284,15 +296,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme)) { + if (!(obj instanceof com.google.cloud.memorystore.v1.DeleteAclPolicyRequest)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme other = - (com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) obj; + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest other = + (com.google.cloud.memorystore.v1.DeleteAclPolicyRequest) obj; - if (!getDescription().equals(other.getDescription())) return false; - if (!getLocation().equals(other.getLocation())) return false; if (!getName().equals(other.getName())) return false; + if (!getRequestId().equals(other.getRequestId())) return false; + if (!getEtag().equals(other.getEtag())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -304,82 +316,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + LOCATION_FIELD_NUMBER; - hash = (53 * hash) + getLocation().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 = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest 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.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( 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.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme parseFrom( + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -397,7 +409,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme prototype) { + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -416,31 +428,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * APIKeySecurityScheme defines an API key security scheme.
        +   * Request for `DeleteAclPolicy`.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme} + * Protobuf type {@code google.cloud.memorystore.v1.DeleteAclPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) - com.google.cloud.geminidataanalytics.v1beta.APIKeySecuritySchemeOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.DeleteAclPolicyRequest) + com.google.cloud.memorystore.v1.DeleteAclPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.class, - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.Builder.class); + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.class, + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.newBuilder() + // Construct using com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -451,27 +463,26 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - description_ = ""; - location_ = ""; name_ = ""; + requestId_ = ""; + etag_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_APIKeySecurityScheme_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.getDefaultInstance(); + public com.google.cloud.memorystore.v1.DeleteAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme build() { - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme result = buildPartial(); + public com.google.cloud.memorystore.v1.DeleteAclPolicyRequest build() { + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -479,9 +490,9 @@ public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme build() } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme result = - new com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme(this); + public com.google.cloud.memorystore.v1.DeleteAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1.DeleteAclPolicyRequest result = + new com.google.cloud.memorystore.v1.DeleteAclPolicyRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -489,47 +500,44 @@ public com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme buildPar return result; } - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme result) { + private void buildPartial0(com.google.cloud.memorystore.v1.DeleteAclPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.description_ = description_; + result.name_ = name_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.location_ = location_; + result.requestId_ = requestId_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.name_ = name_; + result.etag_ = etag_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) other); + if (other instanceof com.google.cloud.memorystore.v1.DeleteAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.DeleteAclPolicyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.memorystore.v1.DeleteAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1.DeleteAclPolicyRequest.getDefaultInstance()) return this; - if (!other.getDescription().isEmpty()) { - description_ = other.description_; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getLocation().isEmpty()) { - location_ = other.location_; + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; bitField0_ |= 0x00000002; onChanged(); } - if (!other.getName().isEmpty()) { - name_ = other.name_; + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; bitField0_ |= 0x00000004; onChanged(); } @@ -561,19 +569,19 @@ public Builder mergeFrom( break; case 10: { - description_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { - location_ = input.readStringRequireUtf8(); + requestId_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { - name_ = input.readStringRequireUtf8(); + etag_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 @@ -596,25 +604,29 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object description_ = ""; + private java.lang.Object name_ = ""; /** * * *
        -     * Optional. Description of this security scheme.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The description. + * @return The name. */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; + 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(); - description_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; @@ -625,19 +637,23 @@ public java.lang.String getDescription() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for description. + * @return The bytes for name. */ - public com.google.protobuf.ByteString getDescriptionBytes() { - java.lang.Object ref = description_; + 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); - description_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -648,19 +664,23 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The description to set. + * @param value The name to set. * @return This builder for chaining. */ - public Builder setDescription(java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - description_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -670,15 +690,19 @@ public Builder setDescription(java.lang.String value) { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearDescription() { - description_ = getDefaultInstance().getDescription(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -688,45 +712,50 @@ public Builder clearDescription() { * * *
        -     * Optional. Description of this security scheme.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for description to set. + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - description_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object location_ = ""; + private java.lang.Object requestId_ = ""; /** * * *
        -     * Optional. Location of the API key, valid values are "query", "header", or
        -     * "cookie".
        +     * Optional. Idempotent request UUID.
              * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @return The location. + * @return The requestId. */ - public java.lang.String getLocation() { - java.lang.Object ref = location_; + 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(); - location_ = s; + requestId_ = s; return s; } else { return (java.lang.String) ref; @@ -737,20 +766,21 @@ public java.lang.String getLocation() { * * *
        -     * Optional. Location of the API key, valid values are "query", "header", or
        -     * "cookie".
        +     * Optional. Idempotent request UUID.
              * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @return The bytes for location. + * @return The bytes for requestId. */ - public com.google.protobuf.ByteString getLocationBytes() { - java.lang.Object ref = location_; + 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); - location_ = b; + requestId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -761,20 +791,21 @@ public com.google.protobuf.ByteString getLocationBytes() { * * *
        -     * Optional. Location of the API key, valid values are "query", "header", or
        -     * "cookie".
        +     * Optional. Idempotent request UUID.
              * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @param value The location to set. + * @param value The requestId to set. * @return This builder for chaining. */ - public Builder setLocation(java.lang.String value) { + public Builder setRequestId(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - location_ = value; + requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -784,16 +815,17 @@ public Builder setLocation(java.lang.String value) { * * *
        -     * Optional. Location of the API key, valid values are "query", "header", or
        -     * "cookie".
        +     * Optional. Idempotent request UUID.
              * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * * @return This builder for chaining. */ - public Builder clearLocation() { - location_ = getDefaultInstance().getLocation(); + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; @@ -803,45 +835,47 @@ public Builder clearLocation() { * * *
        -     * Optional. Location of the API key, valid values are "query", "header", or
        -     * "cookie".
        +     * Optional. Idempotent request UUID.
              * 
        * - * string location = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * * - * @param value The bytes for location to set. + * @param value The bytes for requestId to set. * @return This builder for chaining. */ - public Builder setLocationBytes(com.google.protobuf.ByteString value) { + public Builder setRequestIdBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - location_ = value; + requestId_ = value; bitField0_ |= 0x00000002; onChanged(); return this; } - private java.lang.Object name_ = ""; + private java.lang.Object etag_ = ""; /** * * *
        -     * Optional. Name of the header, query or cookie parameter to be used.
        +     * Optional. Etag of the ACL policy. If this is different from the server's
        +     * etag, the request will fail with an ABORTED error.
              * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The name. + * @return The etag. */ - public java.lang.String getName() { - java.lang.Object ref = name_; + public java.lang.String getEtag() { + java.lang.Object ref = etag_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); - name_ = s; + etag_ = s; return s; } else { return (java.lang.String) ref; @@ -852,19 +886,20 @@ public java.lang.String getName() { * * *
        -     * Optional. Name of the header, query or cookie parameter to be used.
        +     * Optional. Etag of the ACL policy. If this is different from the server's
        +     * etag, the request will fail with an ABORTED error.
              * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for name. + * @return The bytes for etag. */ - public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - name_ = b; + etag_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -875,19 +910,20 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
        -     * Optional. Name of the header, query or cookie parameter to be used.
        +     * Optional. Etag of the ACL policy. If this is different from the server's
        +     * etag, the request will fail with an ABORTED error.
              * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The name to set. + * @param value The etag to set. * @return This builder for chaining. */ - public Builder setName(java.lang.String value) { + public Builder setEtag(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - name_ = value; + etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; @@ -897,15 +933,16 @@ public Builder setName(java.lang.String value) { * * *
        -     * Optional. Name of the header, query or cookie parameter to be used.
        +     * Optional. Etag of the ACL policy. If this is different from the server's
        +     * etag, the request will fail with an ABORTED error.
              * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearName() { - name_ = getDefaultInstance().getName(); + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -915,45 +952,44 @@ public Builder clearName() { * * *
        -     * Optional. Name of the header, query or cookie parameter to be used.
        +     * Optional. Etag of the ACL policy. If this is different from the server's
        +     * etag, the request will fail with an ABORTED error.
              * 
        * - * string name = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for name to set. + * @param value The bytes for etag to set. * @return This builder for chaining. */ - public Builder setNameBytes(com.google.protobuf.ByteString value) { + public Builder setEtagBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - name_ = value; + etag_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.DeleteAclPolicyRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme) - private static final com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.DeleteAclPolicyRequest) + private static final com.google.cloud.memorystore.v1.DeleteAclPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme(); + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.DeleteAclPolicyRequest(); } - public static com.google.cloud.geminidataanalytics.v1beta.APIKeySecurityScheme - getDefaultInstance() { + public static com.google.cloud.memorystore.v1.DeleteAclPolicyRequest 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 APIKeySecurityScheme parsePartialFrom( + public DeleteAclPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -972,18 +1008,17 @@ public APIKeySecurityScheme 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.geminidataanalytics.v1beta.APIKeySecurityScheme - getDefaultInstanceForType() { + public com.google.cloud.memorystore.v1.DeleteAclPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..4a10d20aa85d --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/DeleteAclPolicyRequestOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface DeleteAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.DeleteAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); + + /** + * + * + *
        +   * Optional. Etag of the ACL policy. If this is different from the server's
        +   * etag, the request will fail with an ABORTED error.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
        +   * Optional. Etag of the ACL policy. If this is different from the server's
        +   * etag, the request will fail with an ABORTED error.
        +   * 
        + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); +} diff --git a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GetAgentCardRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequest.java similarity index 57% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GetAgentCardRequest.java rename to java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequest.java index 6655f1e9f99f..7b3d4e549126 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/GetAgentCardRequest.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequest.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/memorystore/v1/memorystore.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.memorystore.v1; /** * * *
        - * Request message for GetAgentCard.
        + * Request for `GetAclPolicy`.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest} + * Protobuf type {@code google.cloud.memorystore.v1.GetAclPolicyRequest} */ @com.google.protobuf.Generated -public final class GetAgentCardRequest extends com.google.protobuf.GeneratedMessage +public final class GetAclPolicyRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) - GetAgentCardRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.GetAclPolicyRequest) + GetAclPolicyRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,58 +43,62 @@ public final class GetAgentCardRequest extends com.google.protobuf.GeneratedMess /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "GetAgentCardRequest"); + "GetAclPolicyRequest"); } - // Use GetAgentCardRequest.newBuilder() to construct. - private GetAgentCardRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use GetAclPolicyRequest.newBuilder() to construct. + private GetAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private GetAgentCardRequest() { - tenant_ = ""; + private GetAclPolicyRequest() { + name_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.class, - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.Builder.class); + com.google.cloud.memorystore.v1.GetAclPolicyRequest.class, + com.google.cloud.memorystore.v1.GetAclPolicyRequest.Builder.class); } - public static final int TENANT_FIELD_NUMBER = 1; + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object tenant_ = ""; + private volatile java.lang.Object name_ = ""; /** * * *
        -   * Optional. Optional tenant, provided as a path parameter.
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +   * where `location` refers to a Google Cloud region.
            * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The tenant. + * @return The name. */ @java.lang.Override - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; + 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(); - tenant_ = s; + name_ = s; return s; } } @@ -103,20 +107,24 @@ public java.lang.String getTenant() { * * *
        -   * Optional. Optional tenant, provided as a path parameter.
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +   * where `location` refers to a Google Cloud region.
            * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for tenant. + * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; + 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); - tenant_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -137,8 +145,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, tenant_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); } getUnknownFields().writeTo(output); } @@ -149,8 +157,8 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tenant_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -162,13 +170,13 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest)) { + if (!(obj instanceof com.google.cloud.memorystore.v1.GetAclPolicyRequest)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest other = - (com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) obj; + com.google.cloud.memorystore.v1.GetAclPolicyRequest other = + (com.google.cloud.memorystore.v1.GetAclPolicyRequest) obj; - if (!getTenant().equals(other.getTenant())) return false; + if (!getName().equals(other.getName())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -180,78 +188,78 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + TENANT_FIELD_NUMBER; - hash = (53 * hash) + getTenant().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.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest 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.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( 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.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest parseFrom( + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -268,8 +276,7 @@ public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest prototype) { + public static Builder newBuilder(com.google.cloud.memorystore.v1.GetAclPolicyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -288,31 +295,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * Request message for GetAgentCard.
        +   * Request for `GetAclPolicy`.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest} + * Protobuf type {@code google.cloud.memorystore.v1.GetAclPolicyRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.GetAclPolicyRequest) + com.google.cloud.memorystore.v1.GetAclPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.class, - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.Builder.class); + com.google.cloud.memorystore.v1.GetAclPolicyRequest.class, + com.google.cloud.memorystore.v1.GetAclPolicyRequest.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.newBuilder() + // Construct using com.google.cloud.memorystore.v1.GetAclPolicyRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -323,25 +330,24 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - tenant_ = ""; + name_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_GetAgentCardRequest_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest - getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.getDefaultInstance(); + public com.google.cloud.memorystore.v1.GetAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.GetAclPolicyRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest build() { - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest result = buildPartial(); + public com.google.cloud.memorystore.v1.GetAclPolicyRequest build() { + com.google.cloud.memorystore.v1.GetAclPolicyRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -349,9 +355,9 @@ public com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest build() { } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest result = - new com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest(this); + public com.google.cloud.memorystore.v1.GetAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1.GetAclPolicyRequest result = + new com.google.cloud.memorystore.v1.GetAclPolicyRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -359,31 +365,28 @@ public com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest buildPart return result; } - private void buildPartial0( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest result) { + private void buildPartial0(com.google.cloud.memorystore.v1.GetAclPolicyRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.tenant_ = tenant_; + result.name_ = name_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) other); + if (other instanceof com.google.cloud.memorystore.v1.GetAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.GetAclPolicyRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom( - com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest other) { - if (other - == com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.memorystore.v1.GetAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1.GetAclPolicyRequest.getDefaultInstance()) return this; - if (!other.getTenant().isEmpty()) { - tenant_ = other.tenant_; + if (!other.getName().isEmpty()) { + name_ = other.name_; bitField0_ |= 0x00000001; onChanged(); } @@ -415,7 +418,7 @@ public Builder mergeFrom( break; case 10: { - tenant_ = input.readStringRequireUtf8(); + name_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 @@ -438,25 +441,29 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object tenant_ = ""; + private java.lang.Object name_ = ""; /** * * *
        -     * Optional. Optional tenant, provided as a path parameter.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The tenant. + * @return The name. */ - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; + 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(); - tenant_ = s; + name_ = s; return s; } else { return (java.lang.String) ref; @@ -467,19 +474,23 @@ public java.lang.String getTenant() { * * *
        -     * Optional. Optional tenant, provided as a path parameter.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for tenant. + * @return The bytes for name. */ - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; + 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); - tenant_ = b; + name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -490,19 +501,23 @@ public com.google.protobuf.ByteString getTenantBytes() { * * *
        -     * Optional. Optional tenant, provided as a path parameter.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The tenant to set. + * @param value The name to set. * @return This builder for chaining. */ - public Builder setTenant(java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tenant_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -512,15 +527,19 @@ public Builder setTenant(java.lang.String value) { * * *
        -     * Optional. Optional tenant, provided as a path parameter.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearTenant() { - tenant_ = getDefaultInstance().getTenant(); + public Builder clearName() { + name_ = getDefaultInstance().getName(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -530,45 +549,47 @@ public Builder clearTenant() { * * *
        -     * Optional. Optional tenant, provided as a path parameter.
        +     * Required. Memorystore ACL policy resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +     * where `location` refers to a Google Cloud region.
              * 
        * - * string tenant = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for tenant to set. + * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setTenantBytes(com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tenant_ = value; + name_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.GetAclPolicyRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest) - private static final com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest - DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.GetAclPolicyRequest) + private static final com.google.cloud.memorystore.v1.GetAclPolicyRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest(); + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.GetAclPolicyRequest(); } - public static com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest - getDefaultInstance() { + public static com.google.cloud.memorystore.v1.GetAclPolicyRequest 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 GetAgentCardRequest parsePartialFrom( + public GetAclPolicyRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -587,18 +608,17 @@ public GetAgentCardRequest 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.geminidataanalytics.v1beta.GetAgentCardRequest - getDefaultInstanceForType() { + public com.google.cloud.memorystore.v1.GetAclPolicyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..1d8888547685 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.GetAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. Memorystore ACL policy resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequest.java new file mode 100644 index 000000000000..d0a9d20e9ca7 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Request for `GetAclPolicyRevision`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.GetAclPolicyRevisionRequest} + */ +@com.google.protobuf.Generated +public final class GetAclPolicyRevisionRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) + GetAclPolicyRevisionRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "GetAclPolicyRevisionRequest"); + } + + // Use GetAclPolicyRevisionRequest.newBuilder() to construct. + private GetAclPolicyRevisionRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAclPolicyRevisionRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.class, + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
        +   * Required. Memorystore ACL policy revision resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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. Memorystore ACL policy revision resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.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.memorystore.v1.GetAclPolicyRevisionRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest other = + (com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) 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.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest 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.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + 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.memorystore.v1.GetAclPolicyRevisionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.GetAclPolicyRevisionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request for `GetAclPolicyRevision`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.GetAclPolicyRevisionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.class, + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest build() { + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest buildPartial() { + com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest result = + new com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest other) { + if (other == com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest.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. Memorystore ACL policy revision resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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. Memorystore ACL policy revision resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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. Memorystore ACL policy revision resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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. Memorystore ACL policy revision resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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. Memorystore ACL policy revision resource name using the form:
        +     * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) + private static final com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest(); + } + + public static com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAclPolicyRevisionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.GetAclPolicyRevisionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequestOrBuilder.java new file mode 100644 index 000000000000..e42fd0627e9a --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/GetAclPolicyRevisionRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface GetAclPolicyRevisionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.GetAclPolicyRevisionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. Memorystore ACL policy revision resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
        +   * Required. Memorystore ACL policy revision resource name using the form:
        +   * `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java index 74976d67fdff..6369c8b1eac1 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/Instance.java @@ -71,6 +71,7 @@ private Instance() { availableMaintenanceVersions_ = com.google.protobuf.LazyStringArrayList.emptyList(); serverCaMode_ = 0; serverCaPool_ = ""; + aclPolicy_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -9043,7 +9044,7 @@ public boolean getSimulateMaintenanceEvent() { *
        * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -9064,7 +9065,7 @@ public boolean hasOndemandMaintenance() { *
        * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Override @@ -9907,7 +9908,7 @@ public com.google.protobuf.ByteString getAvailableMaintenanceVersionsBytes(int i * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=825 + * See google/cloud/memorystore/v1/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -10156,6 +10157,143 @@ public com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConf : migrationConfig_; } + public static final int ACL_POLICY_FIELD_NUMBER = 60; + + @SuppressWarnings("serial") + private volatile java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x04000000) != 0); + } + + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicy_ = s; + return s; + } + } + + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_INFO_FIELD_NUMBER = 62; + private com.google.cloud.memorystore.v1.AclPolicyInfo aclPolicyInfo_; + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + @java.lang.Override + public boolean hasAclPolicyInfo() { + return ((bitField0_ & 0x08000000) != 0); + } + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyInfo getAclPolicyInfo() { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -10312,6 +10450,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x02000000) != 0)) { output.writeMessage(59, getMigrationConfig()); } + if (((bitField0_ & 0x04000000) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 60, aclPolicy_); + } + if (((bitField0_ & 0x08000000) != 0)) { + output.writeMessage(62, getAclPolicyInfo()); + } getUnknownFields().writeTo(output); } @@ -10497,6 +10641,12 @@ public int getSerializedSize() { if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(59, getMigrationConfig()); } + if (((bitField0_ & 0x04000000) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(60, aclPolicy_); + } + if (((bitField0_ & 0x08000000) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(62, getAclPolicyInfo()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -10639,6 +10789,14 @@ public boolean equals(final java.lang.Object obj) { if (hasMigrationConfig()) { if (!getMigrationConfig().equals(other.getMigrationConfig())) return false; } + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasAclPolicyInfo() != other.hasAclPolicyInfo()) return false; + if (hasAclPolicyInfo()) { + if (!getAclPolicyInfo().equals(other.getAclPolicyInfo())) return false; + } if (!getImportSourcesCase().equals(other.getImportSourcesCase())) return false; switch (importSourcesCase_) { case 23: @@ -10816,6 +10974,14 @@ public int hashCode() { hash = (37 * hash) + MIGRATION_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getMigrationConfig().hashCode(); } + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasAclPolicyInfo()) { + hash = (37 * hash) + ACL_POLICY_INFO_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyInfo().hashCode(); + } switch (importSourcesCase_) { case 23: hash = (37 * hash) + GCS_SOURCE_FIELD_NUMBER; @@ -11011,6 +11177,7 @@ private void maybeForceBuilderInitialization() { internalGetEncryptionInfoFieldBuilder(); internalGetAutomatedBackupConfigFieldBuilder(); internalGetMigrationConfigFieldBuilder(); + internalGetAclPolicyInfoFieldBuilder(); } } @@ -11140,6 +11307,12 @@ public Builder clear() { migrationConfigBuilder_.dispose(); migrationConfigBuilder_ = null; } + aclPolicy_ = ""; + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } importSourcesCase_ = 0; importSources_ = null; return this; @@ -11395,6 +11568,15 @@ private void buildPartial1(com.google.cloud.memorystore.v1.Instance result) { migrationConfigBuilder_ == null ? migrationConfig_ : migrationConfigBuilder_.build(); to_bitField0_ |= 0x02000000; } + if (((from_bitField1_ & 0x00002000) != 0)) { + result.aclPolicy_ = aclPolicy_; + to_bitField0_ |= 0x04000000; + } + if (((from_bitField1_ & 0x00004000) != 0)) { + result.aclPolicyInfo_ = + aclPolicyInfoBuilder_ == null ? aclPolicyInfo_ : aclPolicyInfoBuilder_.build(); + to_bitField0_ |= 0x08000000; + } result.bitField0_ |= to_bitField0_; } @@ -11667,6 +11849,14 @@ public Builder mergeFrom(com.google.cloud.memorystore.v1.Instance other) { if (other.hasMigrationConfig()) { mergeMigrationConfig(other.getMigrationConfig()); } + if (other.hasAclPolicy()) { + aclPolicy_ = other.aclPolicy_; + bitField1_ |= 0x00002000; + onChanged(); + } + if (other.hasAclPolicyInfo()) { + mergeAclPolicyInfo(other.getAclPolicyInfo()); + } switch (other.getImportSourcesCase()) { case GCS_SOURCE: { @@ -12040,6 +12230,19 @@ public Builder mergeFrom( bitField1_ |= 0x00001000; break; } // case 474 + case 482: + { + aclPolicy_ = input.readStringRequireUtf8(); + bitField1_ |= 0x00002000; + break; + } // case 482 + case 498: + { + input.readMessage( + internalGetAclPolicyInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00004000; + break; + } // case 498 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -17246,7 +17449,7 @@ public Builder clearSimulateMaintenanceEvent() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Override @@ -17267,7 +17470,7 @@ public boolean hasOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Override @@ -17288,7 +17491,7 @@ public boolean getOndemandMaintenance() { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @param value The ondemandMaintenance to set. * @return This builder for chaining. */ @@ -17313,7 +17516,7 @@ public Builder setOndemandMaintenance(boolean value) { * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return This builder for chaining. */ @java.lang.Deprecated @@ -19475,7 +19678,7 @@ public Builder addAvailableMaintenanceVersionsBytes(com.google.protobuf.ByteStri * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=825 + * See google/cloud/memorystore/v1/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Override @@ -19496,7 +19699,7 @@ public boolean getAllowFewerZonesDeployment() { * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=825 + * See google/cloud/memorystore/v1/memorystore.proto;l=917 * @param value The allowFewerZonesDeployment to set. * @return This builder for chaining. */ @@ -19521,7 +19724,7 @@ public Builder setAllowFewerZonesDeployment(boolean value) { * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=825 + * See google/cloud/memorystore/v1/memorystore.proto;l=917 * @return This builder for chaining. */ @java.lang.Deprecated @@ -20101,6 +20304,364 @@ public com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConf return migrationConfigBuilder_; } + private java.lang.Object aclPolicy_ = ""; + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField1_ & 0x00002000) != 0); + } + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + public java.lang.String getAclPolicy() { + java.lang.Object ref = aclPolicy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + aclPolicy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + public com.google.protobuf.ByteString getAclPolicyBytes() { + java.lang.Object ref = aclPolicy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + aclPolicy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAclPolicy() { + aclPolicy_ = getDefaultInstance().getAclPolicy(); + bitField1_ = (bitField1_ & ~0x00002000); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The ACL policy for the instance.
        +     * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +     * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for aclPolicy to set. + * @return This builder for chaining. + */ + public Builder setAclPolicyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + aclPolicy_ = value; + bitField1_ |= 0x00002000; + onChanged(); + return this; + } + + private com.google.cloud.memorystore.v1.AclPolicyInfo aclPolicyInfo_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyInfo, + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder> + aclPolicyInfoBuilder_; + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + public boolean hasAclPolicyInfo() { + return ((bitField1_ & 0x00004000) != 0); + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + public com.google.cloud.memorystore.v1.AclPolicyInfo getAclPolicyInfo() { + if (aclPolicyInfoBuilder_ == null) { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } else { + return aclPolicyInfoBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo(com.google.cloud.memorystore.v1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicyInfo_ = value; + } else { + aclPolicyInfoBuilder_.setMessage(value); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyInfo( + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder builderForValue) { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfo_ = builderForValue.build(); + } else { + aclPolicyInfoBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00004000; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeAclPolicyInfo(com.google.cloud.memorystore.v1.AclPolicyInfo value) { + if (aclPolicyInfoBuilder_ == null) { + if (((bitField1_ & 0x00004000) != 0) + && aclPolicyInfo_ != null + && aclPolicyInfo_ + != com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance()) { + getAclPolicyInfoBuilder().mergeFrom(value); + } else { + aclPolicyInfo_ = value; + } + } else { + aclPolicyInfoBuilder_.mergeFrom(value); + } + if (aclPolicyInfo_ != null) { + bitField1_ |= 0x00004000; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyInfo() { + bitField1_ = (bitField1_ & ~0x00004000); + aclPolicyInfo_ = null; + if (aclPolicyInfoBuilder_ != null) { + aclPolicyInfoBuilder_.dispose(); + aclPolicyInfoBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyInfo.Builder getAclPolicyInfoBuilder() { + bitField1_ |= 0x00004000; + onChanged(); + return internalGetAclPolicyInfoFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder() { + if (aclPolicyInfoBuilder_ != null) { + return aclPolicyInfoBuilder_.getMessageOrBuilder(); + } else { + return aclPolicyInfo_ == null + ? com.google.cloud.memorystore.v1.AclPolicyInfo.getDefaultInstance() + : aclPolicyInfo_; + } + } + + /** + * + * + *
        +     * Output only. Details of the applied ACL policy.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyInfo, + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder> + internalGetAclPolicyInfoFieldBuilder() { + if (aclPolicyInfoBuilder_ == null) { + aclPolicyInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyInfo, + com.google.cloud.memorystore.v1.AclPolicyInfo.Builder, + com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder>( + getAclPolicyInfo(), getParentForChildren(), isClean()); + aclPolicyInfo_ = null; + } + return aclPolicyInfoBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.Instance) } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachment.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachment.java new file mode 100644 index 000000000000..e9bfbe13e6a2 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachment.java @@ -0,0 +1,1240 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * InstanceAclPolicyAttachment stores the ACL policy status for an attached
        + * instance for the revisions successfully applied, under application or failed.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.InstanceAclPolicyAttachment} + */ +@com.google.protobuf.Generated +public final class InstanceAclPolicyAttachment extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.InstanceAclPolicyAttachment) + InstanceAclPolicyAttachmentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "InstanceAclPolicyAttachment"); + } + + // Use InstanceAclPolicyAttachment.newBuilder() to construct. + private InstanceAclPolicyAttachment(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceAclPolicyAttachment() { + instance_ = ""; + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.class, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder.class); + } + + public static final int INSTANCE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object instance_ = ""; + + /** + * + * + *
        +   * Output only. The resource name of the attached instance.
        +   * Format:
        +   * "projects/{project}/locations/{location}/instances/{instance}"
        +   * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + @java.lang.Override + public java.lang.String getInstance() { + java.lang.Object 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(); + instance_ = s; + return s; + } + } + + /** + * + * + *
        +   * Output only. The resource name of the attached instance.
        +   * Format:
        +   * "projects/{project}/locations/{location}/instances/{instance}"
        +   * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List + aclPolicyRevisionStatuses_; + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionStatusesOrBuilderList() { + return aclPolicyRevisionStatuses_; + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getAclPolicyRevisionStatusesCount() { + return aclPolicyRevisionStatuses_.size(); + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + return aclPolicyRevisionStatuses_.get(index); + } + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + return aclPolicyRevisionStatuses_.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.GeneratedMessage.isStringEmpty(instance_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, instance_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + output.writeMessage(2, aclPolicyRevisionStatuses_.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.GeneratedMessage.isStringEmpty(instance_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, instance_); + } + for (int i = 0; i < aclPolicyRevisionStatuses_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, aclPolicyRevisionStatuses_.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.memorystore.v1.InstanceAclPolicyAttachment)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment other = + (com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment) obj; + + if (!getInstance().equals(other.getInstance())) return false; + if (!getAclPolicyRevisionStatusesList().equals(other.getAclPolicyRevisionStatusesList())) + 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) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + if (getAclPolicyRevisionStatusesCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISION_STATUSES_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionStatusesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment 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.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + 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.memorystore.v1.InstanceAclPolicyAttachment parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.InstanceAclPolicyAttachment prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * InstanceAclPolicyAttachment stores the ACL policy status for an attached
        +   * instance for the revisions successfully applied, under application or failed.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.InstanceAclPolicyAttachment} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.InstanceAclPolicyAttachment) + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachmentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.class, + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + instance_ = ""; + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisionStatuses_ = null; + aclPolicyRevisionStatusesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment build() { + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment buildPartial() { + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment result = + new com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment result) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatuses_; + } else { + result.aclPolicyRevisionStatuses_ = aclPolicyRevisionStatusesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.instance_ = instance_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment) { + return mergeFrom((com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment other) { + if (other == com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment.getDefaultInstance()) + return this; + if (!other.getInstance().isEmpty()) { + instance_ = other.instance_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatuses_.isEmpty()) { + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.addAll(other.aclPolicyRevisionStatuses_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisionStatuses_.isEmpty()) { + if (aclPolicyRevisionStatusesBuilder_.isEmpty()) { + aclPolicyRevisionStatusesBuilder_.dispose(); + aclPolicyRevisionStatusesBuilder_ = null; + aclPolicyRevisionStatuses_ = other.aclPolicyRevisionStatuses_; + bitField0_ = (bitField0_ & ~0x00000002); + aclPolicyRevisionStatusesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionStatusesFieldBuilder() + : null; + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(other.aclPolicyRevisionStatuses_); + } + } + } + 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: + { + instance_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus m = + input.readMessage( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.parser(), + extensionRegistry); + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(m); + } else { + aclPolicyRevisionStatusesBuilder_.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.lang.Object instance_ = ""; + + /** + * + * + *
        +     * Output only. The resource name of the attached instance.
        +     * Format:
        +     * "projects/{project}/locations/{location}/instances/{instance}"
        +     * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + public java.lang.String getInstance() { + java.lang.Object ref = instance_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instance_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the attached instance.
        +     * Format:
        +     * "projects/{project}/locations/{location}/instances/{instance}"
        +     * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + public com.google.protobuf.ByteString getInstanceBytes() { + java.lang.Object ref = instance_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instance_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
        +     * Output only. The resource name of the attached instance.
        +     * Format:
        +     * "projects/{project}/locations/{location}/instances/{instance}"
        +     * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The instance to set. + * @return This builder for chaining. + */ + public Builder setInstance(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the attached instance.
        +     * Format:
        +     * "projects/{project}/locations/{location}/instances/{instance}"
        +     * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearInstance() { + instance_ = getDefaultInstance().getInstance(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Output only. The resource name of the attached instance.
        +     * Format:
        +     * "projects/{project}/locations/{location}/instances/{instance}"
        +     * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for instance to set. + * @return This builder for chaining. + */ + public Builder setInstanceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instance_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionStatusesIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + aclPolicyRevisionStatuses_ = + new java.util.ArrayList( + aclPolicyRevisionStatuses_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + aclPolicyRevisionStatusesBuilder_; + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesList() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getAclPolicyRevisionStatusesCount() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.size(); + } else { + return aclPolicyRevisionStatusesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses( + int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus value) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAclPolicyRevisionStatuses( + int index, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder builderForValue) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllAclPolicyRevisionStatuses( + java.lang.Iterable + values) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisionStatuses_); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearAclPolicyRevisionStatuses() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatuses_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeAclPolicyRevisionStatuses(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + ensureAclPolicyRevisionStatusesIsMutable(); + aclPolicyRevisionStatuses_.remove(index); + onChanged(); + } else { + aclPolicyRevisionStatusesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + getAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index) { + if (aclPolicyRevisionStatusesBuilder_ == null) { + return aclPolicyRevisionStatuses_.get(index); + } else { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + getAclPolicyRevisionStatusesOrBuilderList() { + if (aclPolicyRevisionStatusesBuilder_ != null) { + return aclPolicyRevisionStatusesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisionStatuses_); + } + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder() { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder + addAclPolicyRevisionStatusesBuilder(int index) { + return internalGetAclPolicyRevisionStatusesFieldBuilder() + .addBuilder( + index, com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.getDefaultInstance()); + } + + /** + * + * + *
        +     * Output only. A list of status for various revisions of this ACL policy on
        +     * the instance.
        +     * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getAclPolicyRevisionStatusesBuilderList() { + return internalGetAclPolicyRevisionStatusesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder> + internalGetAclPolicyRevisionStatusesFieldBuilder() { + if (aclPolicyRevisionStatusesBuilder_ == null) { + aclPolicyRevisionStatusesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder>( + aclPolicyRevisionStatuses_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisionStatuses_ = null; + } + return aclPolicyRevisionStatusesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.InstanceAclPolicyAttachment) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.InstanceAclPolicyAttachment) + private static final com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment(); + } + + public static com.google.cloud.memorystore.v1.InstanceAclPolicyAttachment getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceAclPolicyAttachment parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.InstanceAclPolicyAttachment getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachmentOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachmentOrBuilder.java new file mode 100644 index 000000000000..0643fa96d9e2 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceAclPolicyAttachmentOrBuilder.java @@ -0,0 +1,135 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface InstanceAclPolicyAttachmentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.InstanceAclPolicyAttachment) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Output only. The resource name of the attached instance.
        +   * Format:
        +   * "projects/{project}/locations/{location}/instances/{instance}"
        +   * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The instance. + */ + java.lang.String getInstance(); + + /** + * + * + *
        +   * Output only. The resource name of the attached instance.
        +   * Format:
        +   * "projects/{project}/locations/{location}/instances/{instance}"
        +   * 
        + * + * + * string instance = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for instance. + */ + com.google.protobuf.ByteString getInstanceBytes(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesList(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionStatus getAclPolicyRevisionStatuses(int index); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getAclPolicyRevisionStatusesCount(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getAclPolicyRevisionStatusesOrBuilderList(); + + /** + * + * + *
        +   * Output only. A list of status for various revisions of this ACL policy on
        +   * the instance.
        +   * 
        + * + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevisionStatus acl_policy_revision_statuses = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionStatusOrBuilder + getAclPolicyRevisionStatusesOrBuilder(int index); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java index 673fb42ebdfe..197072081937 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/InstanceOrBuilder.java @@ -1165,7 +1165,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return Whether the ondemandMaintenance field is set. */ @java.lang.Deprecated @@ -1183,7 +1183,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.ondemand_maintenance is deprecated. See - * google/cloud/memorystore/v1/memorystore.proto;l=744 + * google/cloud/memorystore/v1/memorystore.proto;l=836 * @return The ondemandMaintenance. */ @java.lang.Deprecated @@ -1776,7 +1776,7 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO * * * @deprecated google.cloud.memorystore.v1.Instance.allow_fewer_zones_deployment is deprecated. - * See google/cloud/memorystore/v1/memorystore.proto;l=825 + * See google/cloud/memorystore/v1/memorystore.proto;l=917 * @return The allowFewerZonesDeployment. */ @java.lang.Deprecated @@ -1951,5 +1951,96 @@ com.google.cloud.memorystore.v1.Instance.InstanceEndpointOrBuilder getEndpointsO */ com.google.cloud.memorystore.v1.MigrationConfigOrBuilder getMigrationConfigOrBuilder(); + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The aclPolicy. + */ + java.lang.String getAclPolicy(); + + /** + * + * + *
        +   * Optional. The ACL policy for the instance.
        +   * Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy}
        +   * 
        + * + * + * optional string acl_policy = 60 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for aclPolicy. + */ + com.google.protobuf.ByteString getAclPolicyBytes(); + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the aclPolicyInfo field is set. + */ + boolean hasAclPolicyInfo(); + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The aclPolicyInfo. + */ + com.google.cloud.memorystore.v1.AclPolicyInfo getAclPolicyInfo(); + + /** + * + * + *
        +   * Output only. Details of the applied ACL policy.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicyInfo acl_policy_info = 62 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyInfoOrBuilder getAclPolicyInfoOrBuilder(); + com.google.cloud.memorystore.v1.Instance.ImportSourcesCase getImportSourcesCase(); } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequest.java new file mode 100644 index 000000000000..68c1b61288f0 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequest.java @@ -0,0 +1,950 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Request for `ListAclPolicies`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.ListAclPoliciesRequest) + ListAclPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAclPoliciesRequest"); + } + + // Use ListAclPoliciesRequest.newBuilder() to construct. + private ListAclPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest.class, + com.google.cloud.memorystore.v1.ListAclPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
        +   * Required. The resource name of the ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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; + + /** + * + * + *
        +   * Optional. The maximum number of items to return.
        +   *
        +   * If not specified, a default value of 1000 will be used by the service.
        +   * Regardless of the page_size value, the response may include a partial list
        +   * and a caller should only rely on response's
        +   * `next_page_token`
        +   * to determine if there are more ACL policies left to be queried.
        +   *
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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_ = ""; + + /** + * + * + *
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicies` request, if any.
        +   * 
        + * + * string page_token = 3 [(.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 `next_page_token` value returned from a previous
        +   * `ListAclPolicies` request, if any.
        +   * 
        + * + * string page_token = 3 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + 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.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.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.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.memorystore.v1.ListAclPoliciesRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.ListAclPoliciesRequest other = + (com.google.cloud.memorystore.v1.ListAclPoliciesRequest) 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.memorystore.v1.ListAclPoliciesRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest 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.memorystore.v1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + 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.memorystore.v1.ListAclPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.ListAclPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request for `ListAclPolicies`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.ListAclPoliciesRequest) + com.google.cloud.memorystore.v1.ListAclPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPoliciesRequest.class, + com.google.cloud.memorystore.v1.ListAclPoliciesRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.ListAclPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.ListAclPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesRequest build() { + com.google.cloud.memorystore.v1.ListAclPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesRequest buildPartial() { + com.google.cloud.memorystore.v1.ListAclPoliciesRequest result = + new com.google.cloud.memorystore.v1.ListAclPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.ListAclPoliciesRequest 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.ListAclPoliciesRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.ListAclPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.ListAclPoliciesRequest other) { + if (other == com.google.cloud.memorystore.v1.ListAclPoliciesRequest.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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 ACL policy location using the form:
        +     * `projects/{project}/locations/{location}`
        +     * where `location` refers to a Google Cloud region.
        +     * 
        + * + * + * 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 items to return.
        +     *
        +     * If not specified, a default value of 1000 will be used by the service.
        +     * Regardless of the page_size value, the response may include a partial list
        +     * and a caller should only rely on response's
        +     * `next_page_token`
        +     * to determine if there are more ACL policies left to be queried.
        +     *
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
        +     * Optional. The maximum number of items to return.
        +     *
        +     * If not specified, a default value of 1000 will be used by the service.
        +     * Regardless of the page_size value, the response may include a partial list
        +     * and a caller should only rely on response's
        +     * `next_page_token`
        +     * to determine if there are more ACL policies left to be queried.
        +     *
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 items to return.
        +     *
        +     * If not specified, a default value of 1000 will be used by the service.
        +     * Regardless of the page_size value, the response may include a partial list
        +     * and a caller should only rely on response's
        +     * `next_page_token`
        +     * to determine if there are more ACL policies left to be queried.
        +     *
        +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +     * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicies` request, if any.
        +     * 
        + * + * string page_token = 3 [(.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 `next_page_token` value returned from a previous
        +     * `ListAclPolicies` request, if any.
        +     * 
        + * + * string page_token = 3 [(.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 `next_page_token` value returned from a previous
        +     * `ListAclPolicies` request, if any.
        +     * 
        + * + * string page_token = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicies` request, if any.
        +     * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicies` request, if any.
        +     * 
        + * + * string page_token = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.ListAclPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.ListAclPoliciesRequest) + private static final com.google.cloud.memorystore.v1.ListAclPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.ListAclPoliciesRequest(); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.ListAclPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..e2757fabe76a --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesRequestOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.ListAclPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The resource name of the ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 ACL policy location using the form:
        +   * `projects/{project}/locations/{location}`
        +   * where `location` refers to a Google Cloud region.
        +   * 
        + * + * + * 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 items to return.
        +   *
        +   * If not specified, a default value of 1000 will be used by the service.
        +   * Regardless of the page_size value, the response may include a partial list
        +   * and a caller should only rely on response's
        +   * `next_page_token`
        +   * to determine if there are more ACL policies left to be queried.
        +   *
        +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicies` request, if any.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicies` request, if any.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponse.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponse.java new file mode 100644 index 000000000000..92e18fa10f22 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponse.java @@ -0,0 +1,1503 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Response for `ListAclPolicies`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.ListAclPoliciesResponse) + ListAclPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAclPoliciesResponse"); + } + + // Use ListAclPoliciesResponse.newBuilder() to construct. + private ListAclPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPoliciesResponse() { + aclPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPoliciesResponse.class, + com.google.cloud.memorystore.v1.ListAclPoliciesResponse.Builder.class); + } + + public static final int ACL_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicies_; + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List getAclPoliciesList() { + return aclPolicies_; + } + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public java.util.List + getAclPoliciesOrBuilderList() { + return aclPolicies_; + } + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public int getAclPoliciesCount() { + return aclPolicies_.size(); + } + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicies(int index) { + return aclPolicies_.get(index); + } + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index) { + return aclPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * 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; + } + } + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * 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(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 < aclPolicies_.size(); i++) { + output.writeMessage(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < aclPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.memorystore.v1.ListAclPoliciesResponse)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.ListAclPoliciesResponse other = + (com.google.cloud.memorystore.v1.ListAclPoliciesResponse) obj; + + if (!getAclPoliciesList().equals(other.getAclPoliciesList())) 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 (getAclPoliciesCount() > 0) { + hash = (37 * hash) + ACL_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAclPoliciesList().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.memorystore.v1.ListAclPoliciesResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse 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.memorystore.v1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + 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.memorystore.v1.ListAclPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.ListAclPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response for `ListAclPolicies`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.ListAclPoliciesResponse) + com.google.cloud.memorystore.v1.ListAclPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPoliciesResponse.class, + com.google.cloud.memorystore.v1.ListAclPoliciesResponse.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.ListAclPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + } else { + aclPolicies_ = null; + aclPoliciesBuilder_.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.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesResponse getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.ListAclPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesResponse build() { + com.google.cloud.memorystore.v1.ListAclPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPoliciesResponse buildPartial() { + com.google.cloud.memorystore.v1.ListAclPoliciesResponse result = + new com.google.cloud.memorystore.v1.ListAclPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1.ListAclPoliciesResponse result) { + if (aclPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = java.util.Collections.unmodifiableList(aclPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicies_ = aclPolicies_; + } else { + result.aclPolicies_ = aclPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.memorystore.v1.ListAclPoliciesResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.ListAclPoliciesResponse) { + return mergeFrom((com.google.cloud.memorystore.v1.ListAclPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.ListAclPoliciesResponse other) { + if (other == com.google.cloud.memorystore.v1.ListAclPoliciesResponse.getDefaultInstance()) + return this; + if (aclPoliciesBuilder_ == null) { + if (!other.aclPolicies_.isEmpty()) { + if (aclPolicies_.isEmpty()) { + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPoliciesIsMutable(); + aclPolicies_.addAll(other.aclPolicies_); + } + onChanged(); + } + } else { + if (!other.aclPolicies_.isEmpty()) { + if (aclPoliciesBuilder_.isEmpty()) { + aclPoliciesBuilder_.dispose(); + aclPoliciesBuilder_ = null; + aclPolicies_ = other.aclPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPoliciesFieldBuilder() + : null; + } else { + aclPoliciesBuilder_.addAllMessages(other.aclPolicies_); + } + } + } + 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.memorystore.v1.AclPolicy m = + input.readMessage( + com.google.cloud.memorystore.v1.AclPolicy.parser(), extensionRegistry); + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(m); + } else { + aclPoliciesBuilder_.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 aclPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAclPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicies_ = + new java.util.ArrayList(aclPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + aclPoliciesBuilder_; + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public java.util.List getAclPoliciesList() { + if (aclPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicies_); + } else { + return aclPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public int getAclPoliciesCount() { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.size(); + } else { + return aclPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies(int index, com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder setAclPolicies( + int index, com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies(int index, com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, value); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder addAclPolicies( + int index, com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder addAllAclPolicies( + java.lang.Iterable values) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicies_); + onChanged(); + } else { + aclPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder clearAclPolicies() { + if (aclPoliciesBuilder_ == null) { + aclPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public Builder removeAclPolicies(int index) { + if (aclPoliciesBuilder_ == null) { + ensureAclPoliciesIsMutable(); + aclPolicies_.remove(index); + onChanged(); + } else { + aclPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder getAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index) { + if (aclPoliciesBuilder_ == null) { + return aclPolicies_.get(index); + } else { + return aclPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesOrBuilderList() { + if (aclPoliciesBuilder_ != null) { + return aclPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicies_); + } + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder addAclPoliciesBuilder() { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder addAclPoliciesBuilder(int index) { + return internalGetAclPoliciesFieldBuilder() + .addBuilder(index, com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()); + } + + /** + * + * + *
        +     * A list of ACL policies in the project in the specified location,
        +     * or across all locations.
        +     *
        +     * If the `location` in the parent field of the request is "-", all regions
        +     * available to the project are queried, and the results aggregated.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + public java.util.List + getAclPoliciesBuilderList() { + return internalGetAclPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + internalGetAclPoliciesFieldBuilder() { + if (aclPoliciesBuilder_ == null) { + aclPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder>( + aclPolicies_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + aclPolicies_ = null; + } + return aclPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.ListAclPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.ListAclPoliciesResponse) + private static final com.google.cloud.memorystore.v1.ListAclPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.ListAclPoliciesResponse(); + } + + public static com.google.cloud.memorystore.v1.ListAclPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPoliciesResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.ListAclPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponseOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..7ae86b87faab --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPoliciesResponseOrBuilder.java @@ -0,0 +1,186 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface ListAclPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.ListAclPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + java.util.List getAclPoliciesList(); + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + com.google.cloud.memorystore.v1.AclPolicy getAclPolicies(int index); + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + int getAclPoliciesCount(); + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + java.util.List + getAclPoliciesOrBuilderList(); + + /** + * + * + *
        +   * A list of ACL policies in the project in the specified location,
        +   * or across all locations.
        +   *
        +   * If the `location` in the parent field of the request is "-", all regions
        +   * available to the project are queried, and the results aggregated.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicy acl_policies = 1; + */ + com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPoliciesOrBuilder(int index); + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterface.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequest.java similarity index 50% rename from java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterface.java rename to java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequest.java index b882dcf0656f..0f48e6ee16da 100644 --- a/java-geminidataanalytics/proto-google-cloud-geminidataanalytics-v1beta/src/main/java/com/google/cloud/geminidataanalytics/v1beta/AgentInterface.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequest.java @@ -15,25 +15,25 @@ */ // Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE -// source: google/cloud/geminidataanalytics/v1beta/data_a2a_service.proto +// source: google/cloud/memorystore/v1/memorystore.proto // Protobuf Java Version: 4.33.6 -package com.google.cloud.geminidataanalytics.v1beta; +package com.google.cloud.memorystore.v1; /** * * *
        - * Defines additional transport information for the agent.
        + * Request for `ListAclPolicyRevisions`.
          * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentInterface} + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest} */ @com.google.protobuf.Generated -public final class AgentInterface extends com.google.protobuf.GeneratedMessage +public final class ListAclPolicyRevisionsRequest extends com.google.protobuf.GeneratedMessage implements - // @@protoc_insertion_point(message_implements:google.cloud.geminidataanalytics.v1beta.AgentInterface) - AgentInterfaceOrBuilder { + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) + ListAclPolicyRevisionsRequestOrBuilder { private static final long serialVersionUID = 0L; static { @@ -43,60 +43,62 @@ public final class AgentInterface extends com.google.protobuf.GeneratedMessage /* minor= */ 33, /* patch= */ 6, /* suffix= */ "", - "AgentInterface"); + "ListAclPolicyRevisionsRequest"); } - // Use AgentInterface.newBuilder() to construct. - private AgentInterface(com.google.protobuf.GeneratedMessage.Builder builder) { + // Use ListAclPolicyRevisionsRequest.newBuilder() to construct. + private ListAclPolicyRevisionsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { super(builder); } - private AgentInterface() { - url_ = ""; - transport_ = ""; - tenant_ = ""; + private ListAclPolicyRevisionsRequest() { + parent_ = ""; + pageToken_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.class, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder.class); + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.Builder.class); } - public static final int URL_FIELD_NUMBER = 1; + public static final int PARENT_FIELD_NUMBER = 1; @SuppressWarnings("serial") - private volatile java.lang.Object url_ = ""; + private volatile java.lang.Object parent_ = ""; /** * * *
        -   * Optional. The url this interface is found at.
        +   * Required. The resource name of the ACL policy to list revisions for.
        +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The url. + * @return The parent. */ @java.lang.Override - public java.lang.String getUrl() { - java.lang.Object ref = url_; + 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(); - url_ = s; + parent_ = s; return s; } } @@ -105,104 +107,74 @@ public java.lang.String getUrl() { * * *
        -   * Optional. The url this interface is found at.
        +   * Required. The resource name of the ACL policy to list revisions for.
        +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
            * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for url. + * @return The bytes for parent. */ @java.lang.Override - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + 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); - url_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } - public static final int TRANSPORT_FIELD_NUMBER = 2; - - @SuppressWarnings("serial") - private volatile java.lang.Object transport_ = ""; - - /** - * - * - *
        -   * Optional. The transport supported at this url.
        -   * 
        - * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The transport. - */ - @java.lang.Override - public java.lang.String getTransport() { - java.lang.Object ref = transport_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - transport_ = s; - return s; - } - } + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; /** * * *
        -   * Optional. The transport supported at this url.
        +   * Optional. The maximum number of items to return.
            * 
        * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for transport. + * @return The pageSize. */ @java.lang.Override - public com.google.protobuf.ByteString getTransportBytes() { - java.lang.Object ref = transport_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - transport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + public int getPageSize() { + return pageSize_; } - public static final int TENANT_FIELD_NUMBER = 3; + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; @SuppressWarnings("serial") - private volatile java.lang.Object tenant_ = ""; + private volatile java.lang.Object pageToken_ = ""; /** * * *
        -   * Optional. Tenant to be set in the request when calling the agent.
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicyRevisions` request, if any.
            * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The tenant. + * @return The pageToken. */ @java.lang.Override - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; + 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(); - tenant_ = s; + pageToken_ = s; return s; } } @@ -211,20 +183,21 @@ public java.lang.String getTenant() { * * *
        -   * Optional. Tenant to be set in the request when calling the agent.
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicyRevisions` request, if any.
            * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for tenant. + * @return The bytes for pageToken. */ @java.lang.Override - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; + 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); - tenant_ = b; + pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -245,14 +218,14 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 1, url_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transport_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 2, transport_); + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - com.google.protobuf.GeneratedMessage.writeString(output, 3, tenant_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); } getUnknownFields().writeTo(output); } @@ -263,14 +236,14 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(url_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(1, url_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(transport_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(2, transport_); + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tenant_)) { - size += com.google.protobuf.GeneratedMessage.computeStringSize(3, tenant_); + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; @@ -282,15 +255,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.cloud.geminidataanalytics.v1beta.AgentInterface)) { + if (!(obj instanceof com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest)) { return super.equals(obj); } - com.google.cloud.geminidataanalytics.v1beta.AgentInterface other = - (com.google.cloud.geminidataanalytics.v1beta.AgentInterface) obj; + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest other = + (com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) obj; - if (!getUrl().equals(other.getUrl())) return false; - if (!getTransport().equals(other.getTransport())) return false; - if (!getTenant().equals(other.getTenant())) return false; + 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; } @@ -302,82 +275,82 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + URL_FIELD_NUMBER; - hash = (53 * hash) + getUrl().hashCode(); - hash = (37 * hash) + TRANSPORT_FIELD_NUMBER; - hash = (53 * hash) + getTransport().hashCode(); - hash = (37 * hash) + TENANT_FIELD_NUMBER; - hash = (53 * hash) + getTenant().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.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest 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.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( 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.geminidataanalytics.v1beta.AgentInterface parseFrom(byte[] data) + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseDelimitedFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseDelimitedFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface parseFrom( + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -395,7 +368,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface prototype) { + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -414,31 +387,31 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
        -   * Defines additional transport information for the agent.
        +   * Request for `ListAclPolicyRevisions`.
            * 
        * - * Protobuf type {@code google.cloud.geminidataanalytics.v1beta.AgentInterface} + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder implements - // @@protoc_insertion_point(builder_implements:google.cloud.geminidataanalytics.v1beta.AgentInterface) - com.google.cloud.geminidataanalytics.v1beta.AgentInterfaceOrBuilder { + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_fieldAccessorTable + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.class, - com.google.cloud.geminidataanalytics.v1beta.AgentInterface.Builder.class); + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.class, + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.Builder.class); } - // Construct using com.google.cloud.geminidataanalytics.v1beta.AgentInterface.newBuilder() + // Construct using com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.newBuilder() private Builder() {} private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { @@ -449,26 +422,27 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { public Builder clear() { super.clear(); bitField0_ = 0; - url_ = ""; - transport_ = ""; - tenant_ = ""; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceProto - .internal_static_google_cloud_geminidataanalytics_v1beta_AgentInterface_descriptor; + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor; } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface getDefaultInstanceForType() { - return com.google.cloud.geminidataanalytics.v1beta.AgentInterface.getDefaultInstance(); + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.getDefaultInstance(); } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface build() { - com.google.cloud.geminidataanalytics.v1beta.AgentInterface result = buildPartial(); + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest build() { + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -476,9 +450,9 @@ public com.google.cloud.geminidataanalytics.v1beta.AgentInterface build() { } @java.lang.Override - public com.google.cloud.geminidataanalytics.v1beta.AgentInterface buildPartial() { - com.google.cloud.geminidataanalytics.v1beta.AgentInterface result = - new com.google.cloud.geminidataanalytics.v1beta.AgentInterface(this); + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest buildPartial() { + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest result = + new com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest(this); if (bitField0_ != 0) { buildPartial0(result); } @@ -486,44 +460,44 @@ public com.google.cloud.geminidataanalytics.v1beta.AgentInterface buildPartial() return result; } - private void buildPartial0(com.google.cloud.geminidataanalytics.v1beta.AgentInterface result) { + private void buildPartial0( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest result) { int from_bitField0_ = bitField0_; if (((from_bitField0_ & 0x00000001) != 0)) { - result.url_ = url_; + result.parent_ = parent_; } if (((from_bitField0_ & 0x00000002) != 0)) { - result.transport_ = transport_; + result.pageSize_ = pageSize_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.tenant_ = tenant_; + result.pageToken_ = pageToken_; } } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.cloud.geminidataanalytics.v1beta.AgentInterface) { - return mergeFrom((com.google.cloud.geminidataanalytics.v1beta.AgentInterface) other); + if (other instanceof com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.cloud.geminidataanalytics.v1beta.AgentInterface other) { - if (other == com.google.cloud.geminidataanalytics.v1beta.AgentInterface.getDefaultInstance()) + public Builder mergeFrom(com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest other) { + if (other + == com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest.getDefaultInstance()) return this; - if (!other.getUrl().isEmpty()) { - url_ = other.url_; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; bitField0_ |= 0x00000001; onChanged(); } - if (!other.getTransport().isEmpty()) { - transport_ = other.transport_; - bitField0_ |= 0x00000002; - onChanged(); + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); } - if (!other.getTenant().isEmpty()) { - tenant_ = other.tenant_; + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; bitField0_ |= 0x00000004; onChanged(); } @@ -555,19 +529,19 @@ public Builder mergeFrom( break; case 10: { - url_ = input.readStringRequireUtf8(); + parent_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000001; break; } // case 10 - case 18: + case 16: { - transport_ = input.readStringRequireUtf8(); + pageSize_ = input.readInt32(); bitField0_ |= 0x00000002; break; - } // case 18 + } // case 16 case 26: { - tenant_ = input.readStringRequireUtf8(); + pageToken_ = input.readStringRequireUtf8(); bitField0_ |= 0x00000004; break; } // case 26 @@ -590,25 +564,28 @@ public Builder mergeFrom( private int bitField0_; - private java.lang.Object url_ = ""; + private java.lang.Object parent_ = ""; /** * * *
        -     * Optional. The url this interface is found at.
        +     * Required. The resource name of the ACL policy to list revisions for.
        +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The url. + * @return The parent. */ - public java.lang.String getUrl() { - java.lang.Object ref = url_; + 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(); - url_ = s; + parent_ = s; return s; } else { return (java.lang.String) ref; @@ -619,19 +596,22 @@ public java.lang.String getUrl() { * * *
        -     * Optional. The url this interface is found at.
        +     * Required. The resource name of the ACL policy to list revisions for.
        +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @return The bytes for url. + * @return The bytes for parent. */ - public com.google.protobuf.ByteString getUrlBytes() { - java.lang.Object ref = url_; + 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); - url_ = b; + parent_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -642,19 +622,22 @@ public com.google.protobuf.ByteString getUrlBytes() { * * *
        -     * Optional. The url this interface is found at.
        +     * Required. The resource name of the ACL policy to list revisions for.
        +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The url to set. + * @param value The parent to set. * @return This builder for chaining. */ - public Builder setUrl(java.lang.String value) { + public Builder setParent(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - url_ = value; + parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; @@ -664,15 +647,18 @@ public Builder setUrl(java.lang.String value) { * * *
        -     * Optional. The url this interface is found at.
        +     * Required. The resource name of the ACL policy to list revisions for.
        +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ - public Builder clearUrl() { - url_ = getDefaultInstance().getUrl(); + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; @@ -682,90 +668,61 @@ public Builder clearUrl() { * * *
        -     * Optional. The url this interface is found at.
        +     * Required. The resource name of the ACL policy to list revisions for.
        +     * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
              * 
        * - * string url = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * - * @param value The bytes for url to set. + * @param value The bytes for parent to set. * @return This builder for chaining. */ - public Builder setUrlBytes(com.google.protobuf.ByteString value) { + public Builder setParentBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - url_ = value; + parent_ = value; bitField0_ |= 0x00000001; onChanged(); return this; } - private java.lang.Object transport_ = ""; + private int pageSize_; /** * * *
        -     * Optional. The transport supported at this url.
        +     * Optional. The maximum number of items to return.
              * 
        * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The transport. + * @return The pageSize. */ - public java.lang.String getTransport() { - java.lang.Object ref = transport_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - transport_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - - /** - * - * - *
        -     * Optional. The transport supported at this url.
        -     * 
        - * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The bytes for transport. - */ - public com.google.protobuf.ByteString getTransportBytes() { - java.lang.Object ref = transport_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - transport_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } + @java.lang.Override + public int getPageSize() { + return pageSize_; } /** * * *
        -     * Optional. The transport supported at this url.
        +     * Optional. The maximum number of items to return.
              * 
        * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The transport to set. + * @param value The pageSize to set. * @return This builder for chaining. */ - public Builder setTransport(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - transport_ = value; + public Builder setPageSize(int value) { + + pageSize_ = value; bitField0_ |= 0x00000002; onChanged(); return this; @@ -775,62 +732,40 @@ public Builder setTransport(java.lang.String value) { * * *
        -     * Optional. The transport supported at this url.
        +     * Optional. The maximum number of items to return.
              * 
        * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearTransport() { - transport_ = getDefaultInstance().getTransport(); + public Builder clearPageSize() { bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; onChanged(); return this; } - /** - * - * - *
        -     * Optional. The transport supported at this url.
        -     * 
        - * - * string transport = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param value The bytes for transport to set. - * @return This builder for chaining. - */ - public Builder setTransportBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - transport_ = value; - bitField0_ |= 0x00000002; - onChanged(); - return this; - } - - private java.lang.Object tenant_ = ""; + private java.lang.Object pageToken_ = ""; /** * * *
        -     * Optional. Tenant to be set in the request when calling the agent.
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicyRevisions` request, if any.
              * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The tenant. + * @return The pageToken. */ - public java.lang.String getTenant() { - java.lang.Object ref = tenant_; + 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(); - tenant_ = s; + pageToken_ = s; return s; } else { return (java.lang.String) ref; @@ -841,19 +776,20 @@ public java.lang.String getTenant() { * * *
        -     * Optional. Tenant to be set in the request when calling the agent.
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicyRevisions` request, if any.
              * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @return The bytes for tenant. + * @return The bytes for pageToken. */ - public com.google.protobuf.ByteString getTenantBytes() { - java.lang.Object ref = tenant_; + 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); - tenant_ = b; + pageToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; @@ -864,19 +800,20 @@ public com.google.protobuf.ByteString getTenantBytes() { * * *
        -     * Optional. Tenant to be set in the request when calling the agent.
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicyRevisions` request, if any.
              * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The tenant to set. + * @param value The pageToken to set. * @return This builder for chaining. */ - public Builder setTenant(java.lang.String value) { + public Builder setPageToken(java.lang.String value) { if (value == null) { throw new NullPointerException(); } - tenant_ = value; + pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; @@ -886,15 +823,16 @@ public Builder setTenant(java.lang.String value) { * * *
        -     * Optional. Tenant to be set in the request when calling the agent.
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicyRevisions` request, if any.
              * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ - public Builder clearTenant() { - tenant_ = getDefaultInstance().getTenant(); + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; @@ -904,43 +842,45 @@ public Builder clearTenant() { * * *
        -     * Optional. Tenant to be set in the request when calling the agent.
        +     * Optional. The `next_page_token` value returned from a previous
        +     * `ListAclPolicyRevisions` request, if any.
              * 
        * - * string tenant = 3 [(.google.api.field_behavior) = OPTIONAL]; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * - * @param value The bytes for tenant to set. + * @param value The bytes for pageToken to set. * @return This builder for chaining. */ - public Builder setTenantBytes(com.google.protobuf.ByteString value) { + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); - tenant_ = value; + pageToken_ = value; bitField0_ |= 0x00000004; onChanged(); return this; } - // @@protoc_insertion_point(builder_scope:google.cloud.geminidataanalytics.v1beta.AgentInterface) + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) } - // @@protoc_insertion_point(class_scope:google.cloud.geminidataanalytics.v1beta.AgentInterface) - private static final com.google.cloud.geminidataanalytics.v1beta.AgentInterface DEFAULT_INSTANCE; + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) + private static final com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest + DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.cloud.geminidataanalytics.v1beta.AgentInterface(); + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest(); } - public static com.google.cloud.geminidataanalytics.v1beta.AgentInterface getDefaultInstance() { + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest 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 AgentInterface parsePartialFrom( + public ListAclPolicyRevisionsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -959,17 +899,17 @@ public AgentInterface 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.geminidataanalytics.v1beta.AgentInterface getDefaultInstanceForType() { + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequestOrBuilder.java new file mode 100644 index 000000000000..757f94868ab1 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsRequestOrBuilder.java @@ -0,0 +1,101 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The resource name of the ACL policy to list revisions for.
        +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * 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 ACL policy to list revisions for.
        +   * Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}"
        +   * 
        + * + * + * 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 items to return.
        +   * 
        + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicyRevisions` request, if any.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
        +   * Optional. The `next_page_token` value returned from a previous
        +   * `ListAclPolicyRevisions` request, if any.
        +   * 
        + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponse.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponse.java new file mode 100644 index 000000000000..7a4bd8173ee0 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponse.java @@ -0,0 +1,1451 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Response for `ListAclPolicyRevisions`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse} + */ +@com.google.protobuf.Generated +public final class ListAclPolicyRevisionsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) + ListAclPolicyRevisionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "ListAclPolicyRevisionsResponse"); + } + + // Use ListAclPolicyRevisionsResponse.newBuilder() to construct. + private ListAclPolicyRevisionsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAclPolicyRevisionsResponse() { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.Builder.class); + } + + public static final int ACL_POLICY_REVISIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List aclPolicyRevisions_; + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + @java.lang.Override + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + return aclPolicyRevisions_; + } + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + @java.lang.Override + public int getAclPolicyRevisionsCount() { + return aclPolicyRevisions_.size(); + } + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevision getAclPolicyRevisions(int index) { + return aclPolicyRevisions_.get(index); + } + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder getAclPolicyRevisionsOrBuilder( + int index) { + return aclPolicyRevisions_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * 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; + } + } + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * 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(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + return unreachable_; + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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 < aclPolicyRevisions_.size(); i++) { + output.writeMessage(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + for (int i = 0; i < unreachable_.size(); i++) { + com.google.protobuf.GeneratedMessage.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 < aclPolicyRevisions_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, aclPolicyRevisions_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.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.memorystore.v1.ListAclPolicyRevisionsResponse)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse other = + (com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) obj; + + if (!getAclPolicyRevisionsList().equals(other.getAclPolicyRevisionsList())) 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 (getAclPolicyRevisionsCount() > 0) { + hash = (37 * hash) + ACL_POLICY_REVISIONS_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicyRevisionsList().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.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse 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.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + 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.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.ListAclPolicyRevisionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Response for `ListAclPolicyRevisions`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.class, + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + } else { + aclPolicyRevisions_ = null; + aclPolicyRevisionsBuilder_.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.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse build() { + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse buildPartial() { + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse result = + new com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse result) { + if (aclPolicyRevisionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = java.util.Collections.unmodifiableList(aclPolicyRevisions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.aclPolicyRevisions_ = aclPolicyRevisions_; + } else { + result.aclPolicyRevisions_ = aclPolicyRevisionsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) { + return mergeFrom((com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse other) { + if (other + == com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse.getDefaultInstance()) + return this; + if (aclPolicyRevisionsBuilder_ == null) { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisions_.isEmpty()) { + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.addAll(other.aclPolicyRevisions_); + } + onChanged(); + } + } else { + if (!other.aclPolicyRevisions_.isEmpty()) { + if (aclPolicyRevisionsBuilder_.isEmpty()) { + aclPolicyRevisionsBuilder_.dispose(); + aclPolicyRevisionsBuilder_ = null; + aclPolicyRevisions_ = other.aclPolicyRevisions_; + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicyRevisionsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAclPolicyRevisionsFieldBuilder() + : null; + } else { + aclPolicyRevisionsBuilder_.addAllMessages(other.aclPolicyRevisions_); + } + } + } + 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.memorystore.v1.AclPolicyRevision m = + input.readMessage( + com.google.cloud.memorystore.v1.AclPolicyRevision.parser(), + extensionRegistry); + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(m); + } else { + aclPolicyRevisionsBuilder_.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 aclPolicyRevisions_ = + java.util.Collections.emptyList(); + + private void ensureAclPolicyRevisionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + aclPolicyRevisions_ = + new java.util.ArrayList( + aclPolicyRevisions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevision, + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder> + aclPolicyRevisionsBuilder_; + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsList() { + if (aclPolicyRevisionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } else { + return aclPolicyRevisionsBuilder_.getMessageList(); + } + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public int getAclPolicyRevisionsCount() { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.size(); + } else { + return aclPolicyRevisionsBuilder_.getCount(); + } + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision getAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessage(index); + } + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder setAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.set(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions(com.google.cloud.memorystore.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1.AclPolicyRevision value) { + if (aclPolicyRevisionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, value); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAclPolicyRevisions( + int index, com.google.cloud.memorystore.v1.AclPolicyRevision.Builder builderForValue) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.add(index, builderForValue.build()); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder addAllAclPolicyRevisions( + java.lang.Iterable values) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, aclPolicyRevisions_); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder clearAclPolicyRevisions() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public Builder removeAclPolicyRevisions(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + ensureAclPolicyRevisionsIsMutable(); + aclPolicyRevisions_.remove(index); + onChanged(); + } else { + aclPolicyRevisionsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision.Builder getAclPolicyRevisionsBuilder( + int index) { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder + getAclPolicyRevisionsOrBuilder(int index) { + if (aclPolicyRevisionsBuilder_ == null) { + return aclPolicyRevisions_.get(index); + } else { + return aclPolicyRevisionsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsOrBuilderList() { + if (aclPolicyRevisionsBuilder_ != null) { + return aclPolicyRevisionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(aclPolicyRevisions_); + } + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision.Builder + addAclPolicyRevisionsBuilder() { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder(com.google.cloud.memorystore.v1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyRevision.Builder addAclPolicyRevisionsBuilder( + int index) { + return internalGetAclPolicyRevisionsFieldBuilder() + .addBuilder( + index, com.google.cloud.memorystore.v1.AclPolicyRevision.getDefaultInstance()); + } + + /** + * + * + *
        +     * A list of ACL policy revisions.
        +     * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + * + */ + public java.util.List + getAclPolicyRevisionsBuilderList() { + return internalGetAclPolicyRevisionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevision, + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder> + internalGetAclPolicyRevisionsFieldBuilder() { + if (aclPolicyRevisionsBuilder_ == null) { + aclPolicyRevisionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicyRevision, + com.google.cloud.memorystore.v1.AclPolicyRevision.Builder, + com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder>( + aclPolicyRevisions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + aclPolicyRevisions_ = null; + } + return aclPolicyRevisionsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Token to retrieve the next page of results, or empty if there are no more
        +     * results in the list.
        +     * 
        + * + * 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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + public com.google.protobuf.ProtocolStringList getUnreachableList() { + unreachable_.makeImmutable(); + return unreachable_; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + public int getUnreachableCount() { + return unreachable_.size(); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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); + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return This builder for chaining. + */ + public Builder clearUnreachable() { + unreachable_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Unordered list. Locations that could not be reached.
        +     * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) + private static final com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse(); + } + + public static com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAclPolicyRevisionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.ListAclPolicyRevisionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponseOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponseOrBuilder.java new file mode 100644 index 000000000000..d93acc1aa7f3 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/ListAclPolicyRevisionsResponseOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface ListAclPolicyRevisionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + java.util.List getAclPolicyRevisionsList(); + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + com.google.cloud.memorystore.v1.AclPolicyRevision getAclPolicyRevisions(int index); + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + int getAclPolicyRevisionsCount(); + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + java.util.List + getAclPolicyRevisionsOrBuilderList(); + + /** + * + * + *
        +   * A list of ACL policy revisions.
        +   * 
        + * + * repeated .google.cloud.memorystore.v1.AclPolicyRevision acl_policy_revisions = 1; + */ + com.google.cloud.memorystore.v1.AclPolicyRevisionOrBuilder getAclPolicyRevisionsOrBuilder( + int index); + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
        +   * Token to retrieve the next page of results, or empty if there are no more
        +   * results in the list.
        +   * 
        + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return A list containing the unreachable. + */ + java.util.List getUnreachableList(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @return The count of unreachable. + */ + int getUnreachableCount(); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @param index The index of the element to return. + * @return The unreachable at the given index. + */ + java.lang.String getUnreachable(int index); + + /** + * + * + *
        +   * Unordered list. Locations that could not be reached.
        +   * 
        + * + * repeated string unreachable = 3 [(.google.api.field_behavior) = UNORDERED_LIST]; + * + * @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-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequest.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequest.java new file mode 100644 index 000000000000..7878b805608f --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequest.java @@ -0,0 +1,1264 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +/** + * + * + *
        + * Request for `UpdateAclPolicy`.
        + * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.UpdateAclPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAclPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.memorystore.v1.UpdateAclPolicyRequest) + UpdateAclPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 6, + /* suffix= */ "", + "UpdateAclPolicyRequest"); + } + + // Use UpdateAclPolicyRequest.newBuilder() to construct. + private UpdateAclPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAclPolicyRequest() { + requestId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.class, + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACL_POLICY_FIELD_NUMBER = 1; + private com.google.cloud.memorystore.v1.AclPolicy aclPolicy_; + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + @java.lang.Override + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
        +   * Optional. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .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_ & 0x00000002) != 0); + } + + /** + * + * + *
        +   * Optional. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .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. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .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 REQUEST_ID_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object requestId_ = ""; + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 3 [(.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. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 3 [(.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 (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, requestId_); + } + 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, getAclPolicy()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(requestId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, 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.memorystore.v1.UpdateAclPolicyRequest)) { + return super.equals(obj); + } + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest other = + (com.google.cloud.memorystore.v1.UpdateAclPolicyRequest) obj; + + if (hasAclPolicy() != other.hasAclPolicy()) return false; + if (hasAclPolicy()) { + if (!getAclPolicy().equals(other.getAclPolicy())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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(); + if (hasAclPolicy()) { + hash = (37 * hash) + ACL_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAclPolicy().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().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.memorystore.v1.UpdateAclPolicyRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest 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.memorystore.v1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + 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.memorystore.v1.UpdateAclPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, 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.memorystore.v1.UpdateAclPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
        +   * Request for `UpdateAclPolicy`.
        +   * 
        + * + * Protobuf type {@code google.cloud.memorystore.v1.UpdateAclPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.memorystore.v1.UpdateAclPolicyRequest) + com.google.cloud.memorystore.v1.UpdateAclPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.class, + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.Builder.class); + } + + // Construct using com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAclPolicyFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + requestId_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.memorystore.v1.V1mainProto + .internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.UpdateAclPolicyRequest getDefaultInstanceForType() { + return com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.UpdateAclPolicyRequest build() { + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.memorystore.v1.UpdateAclPolicyRequest buildPartial() { + com.google.cloud.memorystore.v1.UpdateAclPolicyRequest result = + new com.google.cloud.memorystore.v1.UpdateAclPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.memorystore.v1.UpdateAclPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.aclPolicy_ = aclPolicyBuilder_ == null ? aclPolicy_ : aclPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.requestId_ = requestId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.memorystore.v1.UpdateAclPolicyRequest) { + return mergeFrom((com.google.cloud.memorystore.v1.UpdateAclPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.memorystore.v1.UpdateAclPolicyRequest other) { + if (other == com.google.cloud.memorystore.v1.UpdateAclPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAclPolicy()) { + mergeAclPolicy(other.getAclPolicy()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + if (!other.getRequestId().isEmpty()) { + requestId_ = other.requestId_; + 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( + internalGetAclPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + requestId_ = 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.cloud.memorystore.v1.AclPolicy aclPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + aclPolicyBuilder_; + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + public boolean hasAclPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + public com.google.cloud.memorystore.v1.AclPolicy getAclPolicy() { + if (aclPolicyBuilder_ == null) { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } else { + return aclPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aclPolicy_ = value; + } else { + aclPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAclPolicy(com.google.cloud.memorystore.v1.AclPolicy.Builder builderForValue) { + if (aclPolicyBuilder_ == null) { + aclPolicy_ = builderForValue.build(); + } else { + aclPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAclPolicy(com.google.cloud.memorystore.v1.AclPolicy value) { + if (aclPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && aclPolicy_ != null + && aclPolicy_ != com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance()) { + getAclPolicyBuilder().mergeFrom(value); + } else { + aclPolicy_ = value; + } + } else { + aclPolicyBuilder_.mergeFrom(value); + } + if (aclPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAclPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + aclPolicy_ = null; + if (aclPolicyBuilder_ != null) { + aclPolicyBuilder_.dispose(); + aclPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicy.Builder getAclPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAclPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder() { + if (aclPolicyBuilder_ != null) { + return aclPolicyBuilder_.getMessageOrBuilder(); + } else { + return aclPolicy_ == null + ? com.google.cloud.memorystore.v1.AclPolicy.getDefaultInstance() + : aclPolicy_; + } + } + + /** + * + * + *
        +     * Required. The ACL policy to be updated.
        +     * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder> + internalGetAclPolicyFieldBuilder() { + if (aclPolicyBuilder_ == null) { + aclPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.memorystore.v1.AclPolicy, + com.google.cloud.memorystore.v1.AclPolicy.Builder, + com.google.cloud.memorystore.v1.AclPolicyOrBuilder>( + getAclPolicy(), getParentForChildren(), isClean()); + aclPolicy_ = null; + } + return aclPolicyBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .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. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .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_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + 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; + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
        +     * Optional. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .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. Mask of fields to be updated. At least one path must be supplied
        +     * in this field. The elements of the repeated paths field may only include
        +     * these fields from `AclPolicy`:
        +     *
        +     * *   `rules`
        +     * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + private java.lang.Object requestId_ = ""; + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * 
        + * + * + * string request_id = 3 [(.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. Idempotent request UUID.
        +     * 
        + * + * + * string request_id = 3 [(.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. Idempotent request UUID.
        +     * 
        + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * 
        + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearRequestId() { + requestId_ = getDefaultInstance().getRequestId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
        +     * Optional. Idempotent request UUID.
        +     * 
        + * + * + * string request_id = 3 [(.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_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.memorystore.v1.UpdateAclPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.memorystore.v1.UpdateAclPolicyRequest) + private static final com.google.cloud.memorystore.v1.UpdateAclPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.memorystore.v1.UpdateAclPolicyRequest(); + } + + public static com.google.cloud.memorystore.v1.UpdateAclPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAclPolicyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.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.memorystore.v1.UpdateAclPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequestOrBuilder.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..c94f2bcfb5e4 --- /dev/null +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/UpdateAclPolicyRequestOrBuilder.java @@ -0,0 +1,153 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/memorystore/v1/memorystore.proto +// Protobuf Java Version: 4.33.6 + +package com.google.cloud.memorystore.v1; + +@com.google.protobuf.Generated +public interface UpdateAclPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.memorystore.v1.UpdateAclPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the aclPolicy field is set. + */ + boolean hasAclPolicy(); + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The aclPolicy. + */ + com.google.cloud.memorystore.v1.AclPolicy getAclPolicy(); + + /** + * + * + *
        +   * Required. The ACL policy to be updated.
        +   * 
        + * + * + * .google.cloud.memorystore.v1.AclPolicy acl_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.memorystore.v1.AclPolicyOrBuilder getAclPolicyOrBuilder(); + + /** + * + * + *
        +   * Optional. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
        +   * Optional. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
        +   * Optional. Mask of fields to be updated. At least one path must be supplied
        +   * in this field. The elements of the repeated paths field may only include
        +   * these fields from `AclPolicy`:
        +   *
        +   * *   `rules`
        +   * 
        + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The requestId. + */ + java.lang.String getRequestId(); + + /** + * + * + *
        +   * Optional. Idempotent request UUID.
        +   * 
        + * + * + * string request_id = 3 [(.google.api.field_behavior) = OPTIONAL, (.google.api.field_info) = { ... } + * + * + * @return The bytes for requestId. + */ + com.google.protobuf.ByteString getRequestIdBytes(); +} diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java index 2f384ff40a3a..f514720f41e4 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/java/com/google/cloud/memorystore/v1/V1mainProto.java @@ -76,6 +76,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1_Instance_EngineConfigsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_Instance_EngineConfigsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_AclPolicyInfo_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +96,26 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_MigrationConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_AclPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_AclPolicyRevision_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_AclRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_AclRule_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_AutomatedBackupConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -184,6 +208,22 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1_RescheduleMaintenanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_RescheduleMaintenanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_ListInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -192,18 +232,38 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_memorystore_v1_ListInstancesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_ListInstancesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_GetInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_GetInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_CreateInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_CreateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_UpdateInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_memorystore_v1_UpdateInstanceRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_memorystore_v1_DeleteInstanceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -343,7 +403,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/operations.proto\032\036google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google" + "/protobuf/timestamp.proto\032\033google/type/d" - + "ayofweek.proto\032\033google/type/timeofday.proto\"\342)\n" + + "ayofweek.proto\032\033google/type/timeofday.proto\"\204+\n" + "\010Instance\022R\n\n" + "gcs_source\030\027 \001(\01325.g" + "oogle.cloud.memorystore.v1.Instance.GcsBackupSourceB\005\342A\002\001\005H\000\022a\n" @@ -426,16 +486,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031rotate_server_certificate\030:" + " \001(\010B\005\342A\002\001\004H\016\210\001\001\022L\n" + "\020migration_config\030; \001(\0132,.google." - + "cloud.memorystore.v1.MigrationConfigB\004\342A\001\003\032\251\003\n" + + "cloud.memorystore.v1.MigrationConfigB\004\342A\001\003\022F\n\n" + + "acl_policy\030< \001(\tB-\342A\001\001\372A&\n" + + "$memorystore.googleapis.com/AclPolicyH\017\210\001\001\022I\n" + + "\017acl_policy_info\030>" + + " \001(\0132*.google.cloud.memorystore.v1.AclPolicyInfoB\004\342A\001\003\032\251\003\n" + "\tStateInfo\022W\n" - + "\013update_info\030\001 \001(\0132:." - + "google.cloud.memorystore.v1.Instance.StateInfo.UpdateInfoB\004\342A\001\003H\000\032\272\002\n\n" + + "\013update_info\030\001 \001(\0132:.google.cloud." + + "memorystore.v1.Instance.StateInfo.UpdateInfoB\004\342A\001\003H\000\032\272\002\n\n" + "UpdateInfo\022%\n" + "\022target_shard_count\030\001 \001(\005B\004\342A\001\003H\000\210\001\001\022\'\n" + "\024target_replica_count\030\002 \001(\005B\004\342A\001\003H\001\210\001\001\022(\n" + "\025target_engine_version\030\003 \001(\tB\004\342A\001\003H\002\210\001\001\022S\n" - + "\020target_node_type\030\004 \001(\0162..google.cl" - + "oud.memorystore.v1.Instance.NodeTypeB\004\342A\001\003H\003\210\001\001B\025\n" + + "\020target_node_type\030\004" + + " \001(\0162..google.cloud.memorystore.v1.Instance.NodeTypeB\004\342A\001\003H\003\210\001\001B\025\n" + "\023_target_shard_countB\027\n" + "\025_target_replica_countB\030\n" + "\026_target_engine_versionB\023\n" @@ -446,11 +510,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023ManagedBackupSource\022\024\n" + "\006backup\030\001 \001(\tB\004\342A\001\001\032e\n" + "\020InstanceEndpoint\022Q\n" - + "\013connections\030\001 \003(\01326.go" - + "ogle.cloud.memorystore.v1.Instance.ConnectionDetailB\004\342A\001\001\032\273\001\n" + + "\013connections\030\001 \003(\01326.google.cloud.me" + + "morystore.v1.Instance.ConnectionDetailB\004\342A\001\001\032\273\001\n" + "\020ConnectionDetail\022S\n" - + "\023psc_auto_connection\030\001 \001(\0132..google.clo" - + "ud.memorystore.v1.PscAutoConnectionB\004\342A\001\005H\000\022D\n" + + "\023psc_auto_connection\030\001" + + " \001(\0132..google.cloud.memorystore.v1.PscAutoConnectionB\004\342A\001\005H\000\022D\n" + "\016psc_connection\030\002" + " \001(\0132*.google.cloud.memorystore.v1.PscConnectionH\000B\014\n\n" + "connection\032-\n" @@ -502,8 +566,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "-SERVER_CA_MODE_GOOGLE_MANAGED_PER_INSTANCE_CA\020\001\032\002\010\001\022/\n" + "\'SERVER_CA_MODE_GOOGLE_MANAGED_SHARED_CA\020\002\032\002\010\001\022.\n" + "&SERVER_CA_MODE_CUSTOMER_MANAGED_CAS_CA\020\003\032\002\010\001\032\002\020\001:{\352Ax\n" - + "#memorystore.googleapis.com/Instance\022\n" + + "\010snapshot\030\003" + + " \001(\0132&.google.cloud.memorystore.v1.AclPolicyB\004\342A\001\003\0225\n" + + "\013create_time\030\004" + + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022H\n" + + "\022attached_instances\030\005 \003(\tB,\342A\001\003\372A%\n" + + "#memorystore.googleapis.com/Instance:\260\001\352A\254\001\n" + + ",memorystore.googleapis.com/AclPolicyRevisio" + + "n\022Uprojects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{r" + + "evision}*\022aclPolicyRevisions2\021aclPolicyRevision\"\314\002\n" + + "\027AclPolicyRevisionStatus\022R\n" + + "\023acl_policy_revision\030\001 \001(\tB5\342A\001\003\372A.\n" + + ",memorystore.googleapis.com/AclPolicyRevision\022(\n" + + "\032acl_policy_revision_number\030\002 \001(\003B\004\342A\001\003\022O\n" + + "\005state\030\003 \001(\0162:.google.cloud.memoryst" + + "ore.v1.AclPolicyRevisionStatus.StateB\004\342A\001\003\022\033\n\r" + + "error_message\030\004 \001(\tB\004\342A\001\003\"E\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\014\n" + + "\010APPLYING\020\001\022\013\n" + + "\007APPLIED\020\002\022\n\n" + + "\006FAILED\020\003\"\277\001\n" + + "\033InstanceAclPolicyAttachment\022>\n" + + "\010instance\030\001 \001(\tB,\342A\001\003\372A%\n" + + "#memorystore.googleapis.com/Instance\022`\n" + + "\034acl_policy_revision_statuses\030\002 \003(\01324.g" + + "oogle.cloud.memorystore.v1.AclPolicyRevisionStatusB\004\342A\001\003\"5\n" + + "\007AclRule\022\026\n" + + "\010username\030\001 \001(\tB\004\342A\001\002\022\022\n" + + "\004rule\030\002 \001(\tB\004\342A\001\002\"\336\003\n" + "\025AutomatedBackupConfig\022s\n" - + "\030fixed_frequency_schedule\030\002 \001(\0132I.google" - + ".cloud.memorystore.v1.AutomatedBackupConfig.FixedFrequencyScheduleB\004\342A\001\001H\000\022k\n" - + "\025automated_backup_mode\030\001 \001(\0162F.google.cloud" - + ".memorystore.v1.AutomatedBackupConfig.AutomatedBackupModeB\004\342A\001\001\0222\n" + + "\030fixed_frequency_schedule\030\002 \001(\0132I.google.cloud.memorystore.v" + + "1.AutomatedBackupConfig.FixedFrequencyScheduleB\004\342A\001\001H\000\022k\n" + + "\025automated_backup_mode\030\001 \001(\0162F.google.cloud.memorystore.v1.Auto" + + "matedBackupConfig.AutomatedBackupModeB\004\342A\001\001\0222\n" + "\tretention\030\003 \001(\0132\031.google.protobuf.DurationB\004\342A\001\001\032J\n" + "\026FixedFrequencySchedule\0220\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDayB\004\342A\001\002\"W\n" @@ -576,9 +704,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\003B\004\342A\001\003\022:\n" + "\020last_backup_time\030\013" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003:\245\001\352A\241\001\n" - + "+memorystore.googleapis.com/BackupCollection\022Mprojects/{project}/locations/{locatio" - + "n}/backupCollections/{backup_collection}" - + "*\021backupCollections2\020backupCollection\"\237\010\n" + + "+memorystore.googleapis.com/BackupCollection\022Mprojects/{project" + + "}/locations/{location}/backupCollections" + + "/{backup_collection}*\021backupCollections2\020backupCollection\"\237\010\n" + "\006Backup\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\0225\n" + "\013create_time\030\002" @@ -591,24 +719,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022\034\n" + "\016engine_version\030\007 \001(\tB\004\342A\001\003\022C\n" - + "\014backup_files\030\010 \003" - + "(\0132\'.google.cloud.memorystore.v1.BackupFileB\004\342A\001\003\022G\n" - + "\tnode_type\030\t \001(\0162..google.cl" - + "oud.memorystore.v1.Instance.NodeTypeB\004\342A\001\003\022\033\n\r" + + "\014backup_files\030\010" + + " \003(\0132\'.google.cloud.memorystore.v1.BackupFileB\004\342A\001\003\022G\n" + + "\tnode_type\030\t" + + " \001(\0162..google.cloud.memorystore.v1.Instance.NodeTypeB\004\342A\001\003\022\033\n\r" + "replica_count\030\n" + " \001(\005B\004\342A\001\003\022\031\n" + "\013shard_count\030\013 \001(\005B\004\342A\001\003\022I\n" - + "\013backup_type\030\014 \001(\0162" - + "..google.cloud.memorystore.v1.Backup.BackupTypeB\004\342A\001\003\022>\n" + + "\013backup_type\030\014" + + " \001(\0162..google.cloud.memorystore.v1.Backup.BackupTypeB\004\342A\001\003\022>\n" + "\005state\030\r" + " \001(\0162).google.cloud.memorystore.v1.Backup.StateB\004\342A\001\003\022J\n" - + "\017encryption_info\030\016" - + " \001(\0132+.google.cloud.memorystore.v1.EncryptionInfoB\004\342A\001\003\022\031\n" + + "\017encryption_info\030\016 \001" + + "(\0132+.google.cloud.memorystore.v1.EncryptionInfoB\004\342A\001\003\022\031\n" + "\003uid\030\017 \001(\tB\014\342A\001\003\342\214\317\327\010\002\010\001\"G\n\n" + "BackupType\022\033\n" + "\027BACKUP_TYPE_UNSPECIFIED\020\000\022\r\n" - + "\tON_DEMAND\020\001\022\r" - + "\n" + + "\tON_DEMAND\020\001\022\r\n" + "\tAUTOMATED\020\002\"U\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\014\n" @@ -616,77 +743,76 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006ACTIVE\020\002\022\014\n" + "\010DELETING\020\003\022\r\n" + "\tSUSPENDED\020\004:\230\001\352A\224\001\n" - + "!memorystore.googleapis.com/Backup\022^projects/{projec" - + "t}/locations/{location}/backupCollection" - + "s/{backup_collection}/backups/{backup}*\007backups2\006backup\"v\n\n" + + "!memorystore.googleapis.com/Backup\022^projects/{project}/locations/{locati" + + "on}/backupCollections/{backup_collection}/backups/{backup}*\007backups2\006backup\"v\n\n" + "BackupFile\022\027\n" + "\tfile_name\030\001 \001(\tB\004\342A\001\003\022\030\n\n" + "size_bytes\030\002 \001(\003B\004\342A\001\003\0225\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\247\007\n" + "\036CrossInstanceReplicationConfig\022e\n\r" - + "instance_role\030\001 \001(\0162H.goog" - + "le.cloud.memorystore.v1.CrossInstanceReplicationConfig.InstanceRoleB\004\342A\001\002\022j\n" - + "\020primary_instance\030\002 \001(\0132J.google.cloud.memor" - + "ystore.v1.CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\001\022m\n" - + "\023secondary_instances\030\003 \003(\0132J.google.cloud.memorystore.v1" - + ".CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\001\0225\n" + + "instance_role\030\001 \001(\0162H.google.cloud.memorystore" + + ".v1.CrossInstanceReplicationConfig.InstanceRoleB\004\342A\001\002\022j\n" + + "\020primary_instance\030\002 \001(\0132J.google.cloud.memorystore.v1.CrossInsta" + + "nceReplicationConfig.RemoteInstanceB\004\342A\001\001\022m\n" + + "\023secondary_instances\030\003 \003(\0132J.google." + + "cloud.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\001\0225\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022`\n\n" - + "membership\030\005 \001(\0132F.google.cloud.memorystore.v1.Cr" - + "ossInstanceReplicationConfig.MembershipB\004\342A\001\003\032k\n" + + "membership\030\005 \001(\0132F.google.clo" + + "ud.memorystore.v1.CrossInstanceReplicationConfig.MembershipB\004\342A\001\003\032k\n" + "\016RemoteInstance\022>\n" + "\010instance\030\001 \001(\tB,\342A\001\001\372A%\n" + "#memorystore.googleapis.com/Instance\022\031\n" + "\003uid\030\002 \001(" + "\tB\014\342A\001\003\342\214\317\327\010\002\010\001\032\347\001\n\n" + "Membership\022j\n" - + "\020primary_instance\030\001 \001(\0132J.go" - + "ogle.cloud.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\003\022m\n" - + "\023secondary_instances\030\002 \003(\0132J.google.clou" - + "d.memorystore.v1.CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\003\"S\n" + + "\020primary_instance\030\001 \001(\0132J.google.cloud.memorysto" + + "re.v1.CrossInstanceReplicationConfig.RemoteInstanceB\004\342A\001\003\022m\n" + + "\023secondary_instances\030\002 \003(\0132J.google.cloud.memorystore.v1.Cro" + + "ssInstanceReplicationConfig.RemoteInstanceB\004\342A\001\003\"S\n" + "\014InstanceRole\022\035\n" + "\031INSTANCE_ROLE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\013\n" - + "\007PRIMARY\020\002\022\r\n" + + "\007PRIMARY\020\002\022\r" + + "\n" + "\tSECONDARY\020\003\"\357\002\n\r" + "TokenAuthUser\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022E\n" - + "\005state\030\002" - + " \001(\01620.google.cloud.memorystore.v1.TokenAuthUser.StateB\004\342A\001\003\"T\n" + + "\005state\030\002 \001(\01620.google.clou" + + "d.memorystore.v1.TokenAuthUser.StateB\004\342A\001\003\"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:\254\001\352A\250\001\n" - + "(memorystore.googleapis.com/TokenAuthUser\022]p" - + "rojects/{project}/locations/{location}/i" - + "nstances/{instance}/tokenAuthUsers/{token_auth_user}*\016tokenAuthUsers2\r" + + "(memorystore.googleapis.com/TokenAuthUser\022]projects/{project}/lo" + + "cations/{location}/instances/{instance}/" + + "tokenAuthUsers/{token_auth_user}*\016tokenAuthUsers2\r" + "tokenAuthUser\"\261\003\n" + "\tAuthToken\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\022\023\n" + "\005token\030\002 \001(\tB\004\342A\001\003\0225\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022A\n" - + "\005state\030\004" - + " \001(\0162,.google.cloud.memorystore.v1.AuthToken.StateB\004\342A\001\003\"F\n" + + "\005state\030\004 \001(\0162,.google.cl" + + "oud.memorystore.v1.AuthToken.StateB\004\342A\001\003\"F\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\n\n" + "\006ACTIVE\020\001\022\014\n" + "\010CREATING\020\002\022\014\n" + "\010DELETING\020\003:\270\001\352A\264\001\n" - + "$memorystore.googleapis.com/AuthToken\022uprojects/{project}/lo" - + "cations/{location}/instances/{instance}/" - + "tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}*\n" + + "$memorystore.googleapis.com/AuthToken\022uprojects/{project}/locations/{location}/i" + + "nstances/{instance}/tokenAuthUsers/{token_auth_user}/authTokens/{auth_token}*\n" + "authTokens2\tauthToken\"\340\001\n" + "\021MaintenancePolicy\0225\n" + "\013create_time\030\001" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\0225\n" + "\013update_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\022]\n" - + "\031weekly_maintenance_window\030\003" - + " \003(\01324.google.cloud.memorystore.v1.WeeklyMaintenanceWindowB\004\342A\001\001\"v\n" + + "\031weekly_maintenance_window\030\003 \003(\01324.google.clou" + + "d.memorystore.v1.WeeklyMaintenanceWindowB\004\342A\001\001\"v\n" + "\027WeeklyMaintenanceWindow\022)\n" + "\003day\030\001 \001(\0162\026.google.type.DayOfWeekB\004\342A\001\001\0220\n\n" + "start_time\030\002 \001(\0132\026.google.type.TimeOfDayB\004\342A\001\001\"\177\n" @@ -697,8 +823,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023PscAttachmentDetail\022M\n" + "\022service_attachment\030\001 \001(\tB1\342A\001\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022J\n" - + "\017connection_type\030\004 " - + "\001(\0162+.google.cloud.memorystore.v1.ConnectionTypeB\004\342A\001\003\"\204\004\n" + + "\017connection_type\030\004" + + " \001(\0162+.google.cloud.memorystore.v1.ConnectionTypeB\004\342A\001\003\"\204\004\n" + "\021PscAutoConnection\022\024\n" + "\004port\030\t \001(\005B\004\342A\001\001H\000\022\037\n" + "\021psc_connection_id\030\001 \001(\tB\004\342A\001\003\022 \n\n" @@ -710,10 +836,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022M\n" + "\022service_attachment\030\006 \001(\tB1\342A\001\003\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022U\n" - + "\025psc_connection_status\030\007 \001(\01620.googl" - + "e.cloud.memorystore.v1.PscConnectionStatusB\004\342A\001\003\022J\n" - + "\017connection_type\030\010 \001(\0162+.goog" - + "le.cloud.memorystore.v1.ConnectionTypeB\004\342A\001\003B\007\n" + + "\025psc_connection_status\030\007" + + " \001(\01620.google.cloud.memorystore.v1.PscConnectionStatusB\004\342A\001\003\022J\n" + + "\017connection_type\030\010" + + " \001(\0162+.google.cloud.memorystore.v1.ConnectionTypeB\004\342A\001\003B\007\n" + "\005ports\"\200\004\n\r" + "PscConnection\022\024\n" + "\004port\030\t \001(\005B\004\342A\001\001H\000\022\037\n" @@ -726,10 +852,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036compute.googleapis.com/Network\022M\n" + "\022service_attachment\030\006 \001(\tB1\342A\001\002\372A*\n" + "(compute.googleapis.com/ServiceAttachment\022U\n" - + "\025psc_connection_status\030\007 \001(\01620.google.clo" - + "ud.memorystore.v1.PscConnectionStatusB\004\342A\001\003\022J\n" - + "\017connection_type\030\010 \001(\0162+.google.cl" - + "oud.memorystore.v1.ConnectionTypeB\004\342A\001\003B\007\n" + + "\025psc_connection_status\030\007" + + " \001(\01620.google.cloud.memorystore.v1.PscConnectionStatusB\004\342A\001\003\022J\n" + + "\017connection_type\030\010" + + " \001(\0162+.google.cloud.memorystore.v1.ConnectionTypeB\004\342A\001\003B\007\n" + "\005ports\"x\n" + "\021DiscoveryEndpoint\022\025\n" + "\007address\030\001 \001(\tB\004\342A\001\003\022\022\n" @@ -737,26 +863,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007network\030\004 \001(\tB\'\342A\001\003\372A \n" + "\036compute.googleapis.com/Network\"\335\006\n" + "\021PersistenceConfig\022R\n" - + "\004mode\030\001" - + " \001(\0162>.google.cloud.memorystore.v1.PersistenceConfig.PersistenceModeB\004\342A\001\001\022R\n\n" - + "rdb_config\030\002 \001(\01328.google.cloud.memoryst" - + "ore.v1.PersistenceConfig.RDBConfigB\004\342A\001\001\022R\n\n" - + "aof_config\030\003 \001(\01328.google.cloud.memo" - + "rystore.v1.PersistenceConfig.AOFConfigB\004\342A\001\001\032\263\002\n" + + "\004mode\030\001 \001(\0162>.google.clou" + + "d.memorystore.v1.PersistenceConfig.PersistenceModeB\004\342A\001\001\022R\n\n" + + "rdb_config\030\002 \001(\01328.g" + + "oogle.cloud.memorystore.v1.PersistenceConfig.RDBConfigB\004\342A\001\001\022R\n\n" + + "aof_config\030\003 \001(\013" + + "28.google.cloud.memorystore.v1.PersistenceConfig.AOFConfigB\004\342A\001\001\032\263\002\n" + "\tRDBConfig\022j\n" - + "\023rdb_snapshot_period\030\001 \001(\0162G.google.cloud.memorystore.v1.Pe" - + "rsistenceConfig.RDBConfig.SnapshotPeriodB\004\342A\001\001\022A\n" + + "\023rdb_snapshot_period\030\001 \001(\0162G.google.clo" + + "ud.memorystore.v1.PersistenceConfig.RDBConfig.SnapshotPeriodB\004\342A\001\001\022A\n" + "\027rdb_snapshot_start_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"w\n" + "\016SnapshotPeriod\022\037\n" + "\033SNAPSHOT_PERIOD_UNSPECIFIED\020\000\022\014\n" - + "\010ONE_HOUR\020\001\022\r\n" + + "\010ONE_HOUR\020\001\022\r" + + "\n" + "\tSIX_HOURS\020\002\022\020\n" + "\014TWELVE_HOURS\020\003\022\025\n" + "\021TWENTY_FOUR_HOURS\020\004\032\300\001\n" + "\tAOFConfig\022`\n" - + "\014append_fsync\030\001 \001(\0162D.google." - + "cloud.memorystore.v1.PersistenceConfig.AOFConfig.AppendFsyncB\004\342A\001\001\"Q\n" + + "\014append_fsync\030\001 \001(\0162D.google.cloud.memorystore.v1" + + ".PersistenceConfig.AOFConfig.AppendFsyncB\004\342A\001\001\"Q\n" + "\013AppendFsync\022\034\n" + "\030APPEND_FSYNC_UNSPECIFIED\020\000\022\t\n" + "\005NEVER\020\001\022\r\n" @@ -771,8 +898,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007size_gb\030\001 \001(\001B\004\342A\001\003\"\353\001\n" + "\026ZoneDistributionConfig\022\022\n" + "\004zone\030\002 \001(\tB\004\342A\001\001\022\\\n" - + "\004mode\030\001 \001(\0162H.google.cloud.memorystore." - + "v1.ZoneDistributionConfig.ZoneDistributionModeB\004\342A\001\001\"_\n" + + "\004mode\030\001 \001(\0162H.googl" + + "e.cloud.memorystore.v1.ZoneDistributionConfig.ZoneDistributionModeB\004\342A\001\001\"_\n" + "\024ZoneDistributionMode\022&\n" + "\"ZONE_DISTRIBUTION_MODE_UNSPECIFIED\020\000\022\016\n\n" + "MULTI_ZONE\020\001\022\017\n" @@ -780,16 +907,36 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034RescheduleMaintenanceRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#memorystore.googleapis.com/Instance\022g\n" - + "\017reschedule_type\030\002 \001(\0162H.google.clo" - + "ud.memorystore.v1.RescheduleMaintenanceRequest.RescheduleTypeB\004\342A\001\002\0227\n\r" + + "\017reschedule_type\030\002 \001(\0162H.google.cloud.memorystore.v1.Re" + + "scheduleMaintenanceRequest.RescheduleTypeB\004\342A\001\002\0227\n\r" + "schedule_time\030\003 \001(\0132\032.google.protobuf.TimestampB\004\342A\001\001\"S\n" + "\016RescheduleType\022\037\n" + "\033RESCHEDULE_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tIMMEDIATE\020\001\022\021\n\r" - + "SPECIFIC_TIME\020\003\"\265\001\n" - + "\024ListInstancesRequest\022<\n" + + "SPECIFIC_TIME\020\003\"\212\001\n" + + "\026ListAc", + "lPoliciesRequest\022=\n" + + "\006parent\030\001 \001(\tB-\342A\001\002\372A" + + "&\022$memorystore.googleapis.com/AclPolicy\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"\213\001\n" + + "\027ListAclPoliciesResponse\022<\n" + + "\014acl_policies\030\001 \003(\0132&.google.cloud.memorystore.v1.AclPolicy\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\231\001\n" + + "\035ListAclPolicyRevisionsRequest\022E\n" + "\006parent\030\001 \001(" - + "\tB,\342A\001\002\372A%\022#memorystore.googleapis.com/Instance\022\027\n" + + "\tB5\342A\001\002\372A.\022,memorystore.googleapis.com/AclPolicyRevision\022\027\n" + + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + + "page_token\030\003 \001(\tB\004\342A\001\001\"\242\001\n" + + "\036ListAclPolicyRevisionsResponse\022L\n" + + "\024acl_policy_revisions\030\001" + + " \003(\0132..google.cloud.memorystore.v1.AclPolicyRevision\022\027\n" + + "\017next_page_token\030\002 \001(\t\022\031\n" + + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"\265\001\n" + + "\024ListInstancesRequest\022<\n" + + "\006parent\030\001 \001(\tB,\342A\001\002" + + "\372A%\022#memorystore.googleapis.com/Instance\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -797,45 +944,73 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\025ListInstancesResponse\0228\n" + "\tinstances\030\001 \003(\0132%.google.cloud.memorystore.v1.Instance\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" - + "\013unreachable\030\003 \003(\t\"P\n" + + "\013unreachable\030\003 \003(\t\"R\n" + + "\023GetAclPolicyRequest\022;\n" + + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" + + "$memorystore.googleapis.com/AclPolicy\"b\n" + + "\033GetAclPolicyRevisionRequest\022C\n" + + "\004name\030\001 \001(\tB5\342A\001\002\372A.\n" + + ",memorystore.googleapis.com/AclPolicyRevision\"P\n" + "\022GetInstanceRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" - + "#memorystore.googleapis.com/Instance\"\321\001\n" - + "\025CreateInstanceRequest\022<\n" + + "#memorystore.googleapis.com/Instance\"\330\001\n" + + "\026CreateAclPolicyRequest\022=\n" + "\006parent\030\001 \001(" - + "\tB,\342A\001\002\372A%\022#memorystore.googleapis.com/Instance\022\031\n" + + "\tB-\342A\001\002\372A&\022$memorystore.googleapis.com/AclPolicy\022\033\n\r" + + "acl_policy_id\030\002 \001(\tB\004\342A\001\002\022@\n\n" + + "acl_policy\030\003" + + " \001(\0132&.google.cloud.memorystore.v1.AclPolicyB\004\342A\001\002\022 \n" + + "\n" + + "request_id\030\004 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\321\001\n" + + "\025CreateInstanceRequest\022<\n" + + "\006parent\030\001 \001(\tB,\342A\001\002\372" + + "A%\022#memorystore.googleapis.com/Instance\022\031\n" + "\013instance_id\030\002 \001(\tB\004\342A\001\002\022=\n" + "\010instance\030\003" + " \001(\0132%.google.cloud.memorystore.v1.InstanceB\004\342A\001\002\022 \n\n" + "request_id\030\004 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\263\001\n" + + "\026UpdateAclPolicyRequest\022@\n\n" + + "acl_policy\030\001" + + " \001(\0132&.google.cloud.memorystore.v1.AclPolicyB\004\342A\001\002\0225\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022" + + " \n\n" + + "request_id\030\003 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\257\001\n" + "\025UpdateInstanceRequest\0225\n" + "\013update_mask\030\001" + " \001(\0132\032.google.protobuf.FieldMaskB\004\342A\001\001\022=\n" - + "\010instance\030\002 \001(\0132%.go" - + "ogle.cloud.memorystore.v1.InstanceB\004\342A\001\002\022 \n\n" - + "request_id\030\003 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"u\n" + + "\010instance\030\002" + + " \001(\0132%.google.cloud.memorystore.v1.InstanceB\004\342A\001\002\022 \n\n" + + "request_id\030\003 \001(" + + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\213\001\n" + + "\026DeleteAclPolicyRequest\022;\n" + + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" + + "$memorystore.googleapis.com/AclPolicy\022 \n\n" + + "request_id\030\002 \001(\tB\014\342A\001\001\342\214\317\327\010\002\010\001\022\022\n" + + "\004etag\030\003 \001(\tB\004\342A\001\001\"u\n" + "\025DeleteInstanceRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" + "#memorystore.googleapis.com/Instance\022 \n\n" + "request_id\030\002 \001(" + "\tB\014\342A\001\001\342\214\317\327\010\002\010\001\"\227\001\n" + "\034ListBackupCollectionsRequest\022D\n" - + "\006parent\030\001 \001(" - + "\tB4\342A\001\002\372A-\022+memorystore.googleapis.com/BackupCollection\022\027\n" + + "\006parent\030\001 \001(\tB4\342A\001\002\372" + + "A-\022+memorystore.googleapis.com/BackupCollection\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"\230\001\n" + "\035ListBackupCollectionsResponse\022I\n" - + "\022backup_collections\030\001" - + " \003(\0132-.google.cloud.memorystore.v1.BackupCollection\022\027\n" + + "\022backup_collections\030\001 \003(\013" + + "2-.google.cloud.memorystore.v1.BackupCollection\022\027\n" + "\017next_page_token\030\002 \001(\t\022\023\n" + "\013unreachable\030\003 \003(\t\"`\n" + "\032GetBackupCollectionRequest\022B\n" + "\004name\030\001 \001(\tB4\342A\001\002\372A-\n" + "+memorystore.googleapis.com/BackupCollection\"\203\001\n" + "\022ListBackupsRequest\022:\n" - + "\006parent\030\001 \001(\tB" - + "*\342A\001\002\372A#\022!memorystore.googleapis.com/Backup\022\027\n" + + "\006parent\030\001 \001(" + + "\tB*\342A\001\002\372A#\022!memorystore.googleapis.com/Backup\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\"y\n" + "\023ListBackupsResponse\0224\n" @@ -862,26 +1037,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_backup_id\"\\\n" + "\036GetCertificateAuthorityRequest\022:\n" + "\004name\030\001 \001(\tB,\342A\001\002\372A%\n" - + "#memorystore.googleapis.com/Instance\"\277", - "\001\n" + + "#memorystore.googleapis.com/Instance\"\277\001\n" + "\031ListTokenAuthUsersRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\342A\001\002\372A*\022(memorystore.googleapis.com/TokenAuthUser\022\027\n" + + "\006parent\030\001 \001(\tB1\342A\001" + + "\002\372A*\022(memorystore.googleapis.com/TokenAuthUser\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" + "\010order_by\030\005 \001(\tB\004\342A\001\001\"\226\001\n" + "\032ListTokenAuthUsersResponse\022D\n" - + "\020token_auth_users\030\001" - + " \003(\0132*.google.cloud.memorystore.v1.TokenAuthUser\022\027\n" + + "\020token_auth_users\030\001 \003(\013" + + "2*.google.cloud.memorystore.v1.TokenAuthUser\022\027\n" + "\017next_page_token\030\002 \001(\t\022\031\n" + "\013unreachable\030\003 \003(\tB\004\342A\001\006\"Z\n" + "\027GetTokenAuthUserRequest\022?\n" + "\004name\030\001 \001(\tB1\342A\001\002\372A*\n" + "(memorystore.googleapis.com/TokenAuthUser\"\267\001\n" + "\025ListAuthTokensRequest\022=\n" - + "\006parent\030\001 \001(\tB" - + "-\342A\001\002\372A&\022$memorystore.googleapis.com/AuthToken\022\027\n" + + "\006parent\030\001 \001(" + + "\tB-\342A\001\002\372A&\022$memorystore.googleapis.com/AuthToken\022\027\n" + "\tpage_size\030\002 \001(\005B\004\342A\001\001\022\030\n\n" + "page_token\030\003 \001(\tB\004\342A\001\001\022\024\n" + "\006filter\030\004 \001(\tB\004\342A\001\001\022\026\n" @@ -905,36 +1079,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023AddAuthTokenRequest\022J\n" + "\017token_auth_user\030\001 \001(\tB1\342A\001\002\372A*\n" + "(memorystore.googleapis.com/TokenAuthUser\022@\n\n" - + "auth_token\030\002 \001(\013" - + "2&.google.cloud.memorystore.v1.AuthTokenB\004\342A\001\002\"U\n" + + "auth_token\030\002" + + " \001(\0132&.google.cloud.memorystore.v1.AuthTokenB\004\342A\001\002\"U\n" + "\026DeleteAuthTokenRequest\022;\n" + "\004name\030\001 \001(\tB-\342A\001\002\372A&\n" + "$memorystore.googleapis.com/AuthToken\"\212\004\n" + "\024CertificateAuthority\022j\n" - + "\021managed_server_ca\030\002 \001(\0132M.google.cloud" - + ".memorystore.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\022\n" + + "\021managed_server_ca\030\002 \001(\0132M.google.cloud.memoryst" + + "ore.v1.CertificateAuthority.ManagedCertificateAuthorityH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\032\253\001\n" + "\033ManagedCertificateAuthority\022i\n" - + "\010ca_certs\030\001 \003(\0132W.google.cloud.memoryst" - + "ore.v1.CertificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + + "\010ca_certs\030\001 \003(\0132W.google.cloud.memorystore.v1.Ce" + + "rtificateAuthority.ManagedCertificateAuthority.CertChain\032!\n" + "\tCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\266\001\352A\262\001\n" - + "/memorystore.googleapis.com/CertificateAuthority\022Qpr" - + "ojects/{project}/locations/{location}/instances/{instance}/certificateAuthority*" - + "\026certificateAuthorities2\024certificateAuthorityB\013\n" + + "/memorystore.googleapis.com/CertificateAuthority\022Qprojects/{p" + + "roject}/locations/{location}/instances/{" + + "instance}/certificateAuthority*\026certificateAuthorities2\024certificateAuthorityB\013\n" + "\tserver_ca\"\201\005\n" + "\"SharedRegionalCertificateAuthority\022\200\001\n" - + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.memorystore.v1.Shar" - + "edRegionalCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\022\n" + + "\021managed_server_ca\030\002 \001(\0132c.google.cloud.memorystore.v1.SharedRegiona" + + "lCertificateAuthority.RegionalManagedCertificateAuthorityH\000\022\022\n" + "\004name\030\001 \001(\tB\004\342A\001\010\032\332\001\n" + "#RegionalManagedCertificateAuthority\022\207\001\n" - + "\010ca_certs\030\001 \003(\0132u.google.cloud.memorystore.v1.SharedRegionalCertific" - + "ateAuthority.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + + "\010ca_certs\030\001 \003(\0132u.google.cloud.memory" + + "store.v1.SharedRegionalCertificateAuthor" + + "ity.RegionalManagedCertificateAuthority.RegionalCertChain\032)\n" + "\021RegionalCertChain\022\024\n" + "\014certificates\030\001 \003(\t:\331\001\352A\325\001\n" - + "=memorystore.googleapis.com/SharedRegionalCertificateAuthority\022Jprojects/{project}/" - + "locations/{location}/sharedRegionalCertificateAuthority*$sharedRegionalCertifica" - + "teAuthorities2\"sharedRegionalCertificateAuthorityB\013\n" + + "=memorystore.googleapis.com/SharedRegionalCertificat" + + "eAuthority\022Jprojects/{project}/locations/{location}/sharedRegionalCertificateAut" + + "hority*$sharedRegionalCertificateAuthori" + + "ties2\"sharedRegionalCertificateAuthorityB\013\n" + "\tserver_ca\"\204\001\n" + ",GetSharedRegionalCertificateAuthorityRequest\022T\n" + "\004name\030\001 \001(\tBF\342A\001\002\372A?\n" @@ -950,12 +1126,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026requested_cancellation\030\006 \001(\010B\004\342A\001\003\022\031\n" + "\013api_version\030\007 \001(\tB\004\342A\001\003\"\372\004\n" + "\016EncryptionInfo\022O\n" - + "\017encryption_type\030\001 \001(\01620.google.clo" - + "ud.memorystore.v1.EncryptionInfo.TypeB\004\342A\001\003\022K\n" + + "\017encryption_type\030\001" + + " \001(\01620.google.cloud.memorystore.v1.EncryptionInfo.TypeB\004\342A\001\003\022K\n" + "\020kms_key_versions\030\002 \003(\tB1\342A\001\003\372A*\n" + "(cloudkms.googleapis.com/CryptoKeyVersion\022\\\n" - + "\025kms_key_primary_state\030\003 \001(\01627.google" - + ".cloud.memorystore.v1.EncryptionInfo.KmsKeyStateB\004\342A\001\003\022:\n" + + "\025kms_key_primary_state\030\003 \001(\01627.google.cloud.me" + + "morystore.v1.EncryptionInfo.KmsKeyStateB\004\342A\001\003\022:\n" + "\020last_update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\004\342A\001\003\"\\\n" + "\004Type\022\024\n" @@ -980,138 +1156,167 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033CONNECTION_TYPE_UNSPECIFIED\020\000\022\035\n" + "\031CONNECTION_TYPE_DISCOVERY\020\001\022\033\n" + "\027CONNECTION_TYPE_PRIMARY\020\002\022\032\n" - + "\026CONNECTION_TYPE_READER\020\0032\233,\n" - + "\013Memorystore\022\266\001\n\r" - + "ListInstances\0221.google.cloud.memorystore.v1.ListIn" - + "stancesRequest\0322.google.cloud.memorystor" - + "e.v1.ListInstancesResponse\">\332A\006parent\202\323\344" - + "\223\002/\022-/v1/{parent=projects/*/locations/*}/instances\022\243\001\n" - + "\013GetInstance\022/.google.cloud.memorystore.v1.GetInstanceRequest\032%.go" - + "ogle.cloud.memorystore.v1.Instance\"<\332A\004n" - + "ame\202\323\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}\022\342\001\n" - + "\016CreateInstance\0222.google.cloud.memorystore.v1.CreateInstance" - + "Request\032\035.google.longrunning.Operation\"}\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\033paren" - + "t,instance,instance_id\202\323\344\223\0029\"-/v1/{paren" - + "t=projects/*/locations/*}/instances:\010instance\022\344\001\n" - + "\016UpdateInstance\0222.google.cloud." - + "memorystore.v1.UpdateInstanceRequest\032\035.google.longrunning.Operation\"\177\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\024instance,update_" - + "mask\202\323\344\223\002B26/v1/{instance.name=projects/*/locations/*/instances/*}:\010instance\022\316\001\n" - + "\016DeleteInstance\0222.google.cloud.memorysto" - + "re.v1.DeleteInstanceRequest\032\035.google.longrunning.Operation\"i\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002/*-" - + "/v1/{name=projects/*/locations/*/instances/*}\022\334\001\n" - + "\027GetCertificateAuthority\022;.google.cloud.memorystore.v1.GetCertificateAu" - + "thorityRequest\0321.google.cloud.memorystor" - + "e.v1.CertificateAuthority\"Q\332A\004name\202\323\344\223\002D" - + "\022B/v1/{name=projects/*/locations/*/instances/*}/certificateAuthority\022\210\002\n" - + "%GetSharedRegionalCertificateAuthority\022I.google." - + "cloud.memorystore.v1.GetSharedRegionalCertificateAuthorityRequest\032?.google.cloud" - + ".memorystore.v1.SharedRegionalCertificat" - + "eAuthority\"S\332A\004name\202\323\344\223\002F\022D/v1/{name=pro" - + "jects/*/locations/*/sharedRegionalCertificateAuthority}\022\207\002\n" - + "\025RescheduleMaintenance\0229.google.cloud.memorystore.v1.Reschedu" - + "leMaintenanceRequest\032\035.google.longrunning.Operation\"\223\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\"name,reschedule_type,schedule_t" - + "ime\202\323\344\223\002H\"C/v1/{name=projects/*/location" - + "s/*/instances/*}:rescheduleMaintenance:\001*\022\326\001\n" - + "\025ListBackupCollections\0229.google.cloud.memorystore.v1.ListBackupCollectionsR" - + "equest\032:.google.cloud.memorystore.v1.Lis" - + "tBackupCollectionsResponse\"F\332A\006parent\202\323\344" - + "\223\0027\0225/v1/{parent=projects/*/locations/*}/backupCollections\022\303\001\n" - + "\023GetBackupCollection\0227.google.cloud.memorystore.v1.GetBack" - + "upCollectionRequest\032-.google.cloud.memor" - + "ystore.v1.BackupCollection\"D\332A\004name\202\323\344\223\002" - + "7\0225/v1/{name=projects/*/locations/*/backupCollections/*}\022\302\001\n" - + "\013ListBackups\022/.google.cloud.memorystore.v1.ListBackupsReques" - + "t\0320.google.cloud.memorystore.v1.ListBack" - + "upsResponse\"P\332A\006parent\202\323\344\223\002A\022?/v1/{paren" - + "t=projects/*/locations/*/backupCollections/*}/backups\022\257\001\n" - + "\tGetBackup\022-.google.cloud.memorystore.v1.GetBackupRequest\032#.goo" - + "gle.cloud.memorystore.v1.Backup\"N\332A\004name" - + "\202\323\344\223\002A\022?/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\334\001\n" - + "\014DeleteBackup\0220.google.cloud.memorystore.v1.D" - + "eleteBackupRequest\032\035.google.longrunning.Operation\"{\312A*\n" - + "\025google.protobuf.Empty\022\021O" - + "perationMetadata\332A\004name\202\323\344\223\002A*?/v1/{name" - + "=projects/*/locations/*/backupCollections/*/backups/*}\022\320\001\n" - + "\014ExportBackup\0220.google" - + ".cloud.memorystore.v1.ExportBackupRequest\032\035.google.longrunning.Operation\"o\312A\033\n" - + "\006Backup\022\021OperationMetadata\202\323\344\223\002K\"F/v1/{nam" - + "e=projects/*/locations/*/backupCollections/*/backups/*}:export:\001*\022\313\001\n" - + "\016BackupInstance\0222.google.cloud.memorystore.v1.Backu" - + "pInstanceRequest\032\035.google.longrunning.Operation\"f\312A\035\n" - + "\010Instance\022\021OperationMetadat" - + "a\332A\004name\202\323\344\223\0029\"4/v1/{name=projects/*/locations/*/instances/*}:backup:\001*\022\314\001\n" - + "\016StartMigration\0222.google.cloud.memorystore.v1" - + ".StartMigrationRequest\032\035.google.longrunning.Operation\"g\312A\035\n" - + "\010Instance\022\021OperationMetadata\202\323\344\223\002A\"\332A\006parent\202\323\344\223\002/\022-/v1/{parent=projects/*/locations/*}/instances\022\250\001\n" + + "\014GetAclPolicy\0220.google.cloud.memorystore.v" + + "1.GetAclPolicyRequest\032&.google.cloud.mem" + + "orystore.v1.AclPolicy\">\332A\004name\202\323\344\223\0021\022//v" + + "1/{name=projects/*/locations/*/aclPolicies/*}\022\243\001\n" + + "\013GetInstance\022/.google.cloud.memorystore.v1.GetInstanceRequest\032%.google." + + "cloud.memorystore.v1.Instance\"<\332A\004name\202\323" + + "\344\223\002/\022-/v1/{name=projects/*/locations/*/instances/*}\022\325\001\n" + + "\017CreateAclPolicy\0223.google.cloud.memorystore.v1.CreateAclPolicyReq" + + "uest\032&.google.cloud.memorystore.v1.AclPo" + + "licy\"e\332A\037parent,acl_policy,acl_policy_id" + + "\202\323\344\223\002=\"//v1/{parent=projects/*/locations/*}/aclPolicies:\n" + + "acl_policy\022\342\001\n" + + "\016CreateInstance\0222.google.cloud.memorystore.v1.Cre" + + "ateInstanceRequest\032\035.google.longrunning.Operation\"}\312A\035\n" + + "\010Instance\022\021OperationMetad" + + "ata\332A\033parent,instance,instance_id\202\323\344\223\0029\"" + + "-/v1/{parent=projects/*/locations/*}/instances:\010instance\022\360\001\n" + + "\017UpdateAclPolicy\0223.google.cloud.memorystore.v1.UpdateAclPoli" + + "cyRequest\032\035.google.longrunning.Operation\"\210\001\312A\036\n" + + "\tAclPolicy\022\021OperationMetadata\332A\026a" + + "cl_policy,update_mask\202\323\344\223\002H2:/v1/{acl_po" + + "licy.name=projects/*/locations/*/aclPolicies/*}:\n" + + "acl_policy\022\344\001\n" + + "\016UpdateInstance\0222.google.cloud.memorystore.v1.UpdateInsta" + + "nceRequest\032\035.google.longrunning.Operation\"\177\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\024in" + + "stance,update_mask\202\323\344\223\002B26/v1/{instance." + + "name=projects/*/locations/*/instances/*}:\010instance\022\322\001\n" + + "\017DeleteAclPolicy\0223.google." + + "cloud.memorystore.v1.DeleteAclPolicyRequest\032\035.google.longrunning.Operation\"k\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadat" + + "a\332A\004name\202\323\344\223\0021*//v1/{name=projects/*/locations/*/aclPolicies/*}\022\314\001\n" + + "\024GetAclPolicyRevision\0228.google.cloud.memorystore.v1.G" + + "etAclPolicyRevisionRequest\032..google.clou" + + "d.memorystore.v1.AclPolicyRevision\"J\332A\004n" + + "ame\202\323\344\223\002=\022;/v1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}\022\337\001\n" + + "\026ListAclPolicyRevisions\022:.google.cloud.memorys" + + "tore.v1.ListAclPolicyRevisionsRequest\032;.google.cloud.memorystore.v1.ListAclPolic" + + "yRevisionsResponse\"L\332A\006parent\202\323\344\223\002=\022;/v1" + + "/{parent=projects/*/locations/*/aclPolicies/*}/revisions\022\316\001\n" + + "\016DeleteInstance\0222.google.cloud.memorystore.v1.DeleteInstance" + + "Request\032\035.google.longrunning.Operation\"i\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMet" + + "adata\332A\004name\202\323\344\223\002/*-/v1/{name=projects/*/locations/*/instances/*}\022\334\001\n" + + "\027GetCertificateAuthority\022;.google.cloud.memorystore" + + ".v1.GetCertificateAuthorityRequest\0321.google.cloud.memorystore.v1.CertificateAuth" + + "ority\"Q\332A\004name\202\323\344\223\002D\022B/v1/{name=projects" + + "/*/locations/*/instances/*}/certificateAuthority\022\210\002\n" + + "%GetSharedRegionalCertificateAuthority\022I.google.cloud.memorystore.v1" + + ".GetSharedRegionalCertificateAuthorityRequest\032?.google.cloud.memorystore.v1.Shar" + + "edRegionalCertificateAuthority\"S\332A\004name\202" + + "\323\344\223\002F\022D/v1/{name=projects/*/locations/*/sharedRegionalCertificateAuthority}\022\207\002\n" + + "\025RescheduleMaintenance\0229.google.cloud.mem" + + "orystore.v1.RescheduleMaintenanceRequest\032\035.google.longrunning.Operation\"\223\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\"name,resche" + + "dule_type,schedule_time\202\323\344\223\002H\"C/v1/{name" + + "=projects/*/locations/*/instances/*}:rescheduleMaintenance:\001*\022\326\001\n" + + "\025ListBackupCollections\0229.google.cloud.memorystore.v1.Li" + + "stBackupCollectionsRequest\032:.google.cloud.memorystore.v1.ListBackupCollectionsRe" + + "sponse\"F\332A\006parent\202\323\344\223\0027\0225/v1/{parent=pro" + + "jects/*/locations/*}/backupCollections\022\303\001\n" + + "\023GetBackupCollection\0227.google.cloud.me" + + "morystore.v1.GetBackupCollectionRequest\032-.google.cloud.memorystore.v1.BackupColl" + + "ection\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=projects/*/locations/*/backupCollections/*}\022\302\001\n" + + "\013ListBackups\022/.google.cloud.memorystore." + + "v1.ListBackupsRequest\0320.google.cloud.mem" + + "orystore.v1.ListBackupsResponse\"P\332A\006pare" + + "nt\202\323\344\223\002A\022?/v1/{parent=projects/*/locations/*/backupCollections/*}/backups\022\257\001\n" + + "\tGetBackup\022-.google.cloud.memorystore.v1.Ge" + + "tBackupRequest\032#.google.cloud.memorystor" + + "e.v1.Backup\"N\332A\004name\202\323\344\223\002A\022?/v1/{name=pr" + + "ojects/*/locations/*/backupCollections/*/backups/*}\022\334\001\n" + + "\014DeleteBackup\0220.google.cl" + + "oud.memorystore.v1.DeleteBackupRequest\032\035.google.longrunning.Operation\"{\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004n" + + "ame\202\323\344\223\002A*?/v1/{name=projects/*/locations/*/backupCollections/*/backups/*}\022\320\001\n" + + "\014ExportBackup\0220.google.cloud.memorystore.v" + + "1.ExportBackupRequest\032\035.google.longrunning.Operation\"o\312A\033\n" + + "\006Backup\022\021OperationMeta" + + "data\202\323\344\223\002K\"F/v1/{name=projects/*/locatio" + + "ns/*/backupCollections/*/backups/*}:export:\001*\022\313\001\n" + + "\016BackupInstance\0222.google.cloud." + + "memorystore.v1.BackupInstanceRequest\032\035.google.longrunning.Operation\"f\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\004name\202\323\344\223\0029\"4/v1/" + + "{name=projects/*/locations/*/instances/*}:backup:\001*\022\314\001\n" + + "\016StartMigration\0222.google." + + "cloud.memorystore.v1.StartMigrationRequest\032\035.google.longrunning.Operation\"g\312A\035\n" + + "\010Instance\022\021OperationMetadata\202\323\344\223\002A\"/v1/{parent=projects/*/l" - + "ocations/*/instances/*}/tokenAuthUsers\022\303\001\n" - + "\020GetTokenAuthUser\0224.google.cloud.memor" - + "ystore.v1.GetTokenAuthUserRequest\032*.goog" - + "le.cloud.memorystore.v1.TokenAuthUser\"M\332" - + "A\004name\202\323\344\223\002@\022>/v1/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\327\001\n" - + "\016ListAuthTokens\0222.google.cloud.memorysto" - + "re.v1.ListAuthTokensRequest\0323.google.cloud.memorystore.v1.ListAuthTokensResponse" - + "\"\\\332A\006parent\202\323\344\223\002M\022K/v1/{parent=projects/" - + "*/locations/*/instances/*/tokenAuthUsers/*}/authTokens\022\304\001\n" - + "\014GetAuthToken\0220.google.cloud.memorystore.v1.GetAuthTokenReques" - + "t\032&.google.cloud.memorystore.v1.AuthToke" - + "n\"Z\332A\004name\202\323\344\223\002M\022K/v1/{name=projects/*/l" - + "ocations/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\362\001\n" - + "\020AddTokenAuthUser\0224.google.cloud.memorystore.v1.AddTokenAuthUse" - + "rRequest\032\035.google.longrunning.Operation\"\210\001\312A\035\n" - + "\010Instance\022\021OperationMetadata\332A\030ins" - + "tance,token_auth_user\202\323\344\223\002G\"B/v1/{instan" - + "ce=projects/*/locations/*/instances/*}:addTokenAuthUser:\001*\022\351\001\n" - + "\023DeleteTokenAuthUser\0227.google.cloud.memorystore.v1.DeleteT" - + "okenAuthUserRequest\032\035.google.longrunning.Operation\"z\312A*\n" - + "\025google.protobuf.Empty\022\021" - + "OperationMetadata\332A\004name\202\323\344\223\002@*>/v1/{nam" - + "e=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\205\002\n" - + "\014AddAuthToken\0220.google" - + ".cloud.memorystore.v1.AddAuthTokenRequest\032\035.google.longrunning.Operation\"\243\001\312A\"\n\r" - + "TokenAuthUser\022\021OperationMetadata\332A\032token" - + "_auth_user,auth_token\202\323\344\223\002[\"V/v1/{token_" - + "auth_user=projects/*/locations/*/instanc" - + "es/*/tokenAuthUsers/*}:addAuthToken:\001*\022\357\001\n" - + "\017DeleteAuthToken\0223.google.cloud.memory" - + "store.v1.DeleteAuthTokenRequest\032\035.google.longrunning.Operation\"\207\001\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004name\202\323\344" - + "\223\002M*K/v1/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*/authTokens/*}" - + "\032\274\001\312A\032memorystore.googleapis.com\322A\233\001http" - + "s://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/memor" - + "ystore.read-only,https://www.googleapis.com/auth/memorystore.read-writeB\212\010\n" - + "\037com.google.cloud.memorystore.v1B\013V1mainProto" - + "P\001ZAcloud.google.com/go/memorystore/apiv" - + "1/memorystorepb;memorystorepb\252\002\033Google.C" - + "loud.Memorystore.V1\312\002\033Google\\Cloud\\Memor" - + "ystore\\V1\352\002\036Google::Cloud::Memorystore::V1\352An\n" - + "%compute.googleapis.com/Forwarding" - + "Rule\022Eprojects/{project}/regions/{region}/forwardingRules/{forwarding_rule}\352AN\n" - + "\036compute.googleapis.com/Network\022,projects/{project}/global/networks/{network}\352Aw\n" - + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project}/regions/{region}/s" - + "erviceAttachments/{service_attachment}\352Ax\n" - + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/locations/{location}/ke" - + "yRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" - + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{project}/locations/{l" - + "ocation}/keyRings/{key_ring}/cryptoKeys/" - + "{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" - + "\037privateca.googleapis.com" - + "/CaPool\0229projects/{project}/locations/{location}/caPools/{ca_pool}\352Aw\n" - + "(compute.googleapis.com/NetworkAttachment\022Kproject" - + "s/{project}/regions/{region}/networkAttachments/{network_attachment}b\006proto3" + + "name,force\202\323\344\223\002B\"=/v1/{name=projects/*/lo" + + "cations/*/instances/*}:finishMigration:\001*\022\326\001\n" + + "\022ListTokenAuthUsers\0226.google.cloud.memorystore.v1.ListTokenAuthUsersRequest" + + "\0327.google.cloud.memorystore.v1.ListToken" + + "AuthUsersResponse\"O\332A\006parent\202\323\344\223\002@\022>/v1/" + + "{parent=projects/*/locations/*/instances/*}/tokenAuthUsers\022\303\001\n" + + "\020GetTokenAuthUser\0224.google.cloud.memorystore.v1.GetTokenAu" + + "thUserRequest\032*.google.cloud.memorystore" + + ".v1.TokenAuthUser\"M\332A\004name\202\323\344\223\002@\022>/v1/{n" + + "ame=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\327\001\n" + + "\016ListAuthTokens\0222.google.cloud.memorystore.v1.ListAuthTokens" + + "Request\0323.google.cloud.memorystore.v1.Li" + + "stAuthTokensResponse\"\\\332A\006parent\202\323\344\223\002M\022K/" + + "v1/{parent=projects/*/locations/*/instances/*/tokenAuthUsers/*}/authTokens\022\304\001\n" + + "\014GetAuthToken\0220.google.cloud.memorystore.v" + + "1.GetAuthTokenRequest\032&.google.cloud.mem" + + "orystore.v1.AuthToken\"Z\332A\004name\202\323\344\223\002M\022K/v" + + "1/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*/authTokens/*}\022\362\001\n" + + "\020AddTokenAuthUser\0224.google.cloud.memorystor" + + "e.v1.AddTokenAuthUserRequest\032\035.google.longrunning.Operation\"\210\001\312A\035\n" + + "\010Instance\022\021OperationMetadata\332A\030instance,token_auth_use" + + "r\202\323\344\223\002G\"B/v1/{instance=projects/*/locati" + + "ons/*/instances/*}:addTokenAuthUser:\001*\022\351\001\n" + + "\023DeleteTokenAuthUser\0227.google.cloud.me" + + "morystore.v1.DeleteTokenAuthUserRequest\032\035.google.longrunning.Operation\"z\312A*\n" + + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004" + + "name\202\323\344\223\002@*>/v1/{name=projects/*/locations/*/instances/*/tokenAuthUsers/*}\022\205\002\n" + + "\014AddAuthToken\0220.google.cloud.memorystore.v" + + "1.AddAuthTokenRequest\032\035.google.longrunning.Operation\"\243\001\312A\"\n\r" + + "TokenAuthUser\022\021OperationMetadata\332A\032token_auth_user,auth_toke" + + "n\202\323\344\223\002[\"V/v1/{token_auth_user=projects/*" + + "/locations/*/instances/*/tokenAuthUsers/*}:addAuthToken:\001*\022\357\001\n" + + "\017DeleteAuthToken\0223.google.cloud.memorystore.v1.DeleteAuthT" + + "okenRequest\032\035.google.longrunning.Operation\"\207\001\312A*\n" + + "\025google.protobuf.Empty\022\021Operati" + + "onMetadata\332A\004name\202\323\344\223\002M*K/v1/{name=proje" + + "cts/*/locations/*/instances/*/tokenAuthU" + + "sers/*/authTokens/*}\032\274\001\312A\032memorystore.go" + + "ogleapis.com\322A\233\001https://www.googleapis.c" + + "om/auth/cloud-platform,https://www.googleapis.com/auth/memorystore.read-only,htt" + + "ps://www.googleapis.com/auth/memorystore.read-writeB\212\010\n" + + "\037com.google.cloud.memorystore.v1B\013V1mainProtoP\001ZAcloud.google.com" + + "/go/memorystore/apiv1/memorystorepb;memo" + + "rystorepb\252\002\033Google.Cloud.Memorystore.V1\312" + + "\002\033Google\\Cloud\\Memorystore\\V1\352\002\036Google::Cloud::Memorystore::V1\352An\n" + + "%compute.googleapis.com/ForwardingRule\022Eprojects/{proj" + + "ect}/regions/{region}/forwardingRules/{forwarding_rule}\352AN\n" + + "\036compute.googleapis.c" + + "om/Network\022,projects/{project}/global/networks/{network}\352Aw\n" + + "(compute.googleapis.com/ServiceAttachment\022Kprojects/{project" + + "}/regions/{region}/serviceAttachments/{service_attachment}\352Ax\n" + + "!cloudkms.googleapis.com/CryptoKey\022Sprojects/{project}/loc" + + "ations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}\352A\246\001\n" + + "(cloudkms.googleapis.com/CryptoKeyVersion\022zprojects/{p" + + "roject}/locations/{location}/keyRings/{k" + + "ey_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}\352A\\\n" + + "\037privateca.googleapis.com/CaPool\0229projects/{p" + + "roject}/locations/{location}/caPools/{ca_pool}\352Aw\n" + + "(compute.googleapis.com/NetworkAttachment\022Kprojects/{project}/regions/" + + "{region}/networkAttachments/{network_attachment}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1181,6 +1386,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServerCaPool", "RotateServerCertificate", "MigrationConfig", + "AclPolicy", + "AclPolicyInfo", "ImportSources", }); internal_static_google_cloud_memorystore_v1_Instance_StateInfo_descriptor = @@ -1247,8 +1454,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor = + internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor = getDescriptor().getMessageType(1); + internal_static_google_cloud_memorystore_v1_AclPolicyInfo_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_AclPolicyInfo_descriptor, + new java.lang.String[] { + "AppliedAclPolicy", + "AppliedAclPolicyRevision", + "AppliedAclPolicyRevisionNumber", + "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor = + getDescriptor().getMessageType(2); internal_static_google_cloud_memorystore_v1_StartMigrationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_StartMigrationRequest_descriptor, @@ -1256,7 +1474,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SelfManagedSource", "Name", "Source", }); internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_FinishMigrationRequest_descriptor, @@ -1264,7 +1482,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Force", }); internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_memorystore_v1_SelfManagedSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_SelfManagedSource_descriptor, @@ -1272,15 +1490,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IpAddress", "Port", "NetworkAttachment", }); internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_memorystore_v1_MigrationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_MigrationConfig_descriptor, new java.lang.String[] { "SelfManagedSource", "State", "ForceFinishMigration", "Source", }); + internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_memorystore_v1_AclPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_AclPolicy_descriptor, + new java.lang.String[] { + "Name", + "Rules", + "State", + "Etag", + "InstanceAclPolicyAttachments", + "CreateTime", + "UpdateTime", + }); + internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_memorystore_v1_AclPolicyRevision_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_AclPolicyRevision_descriptor, + new java.lang.String[] { + "Name", "RevisionNumber", "Snapshot", "CreateTime", "AttachedInstances", + }); + internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_AclPolicyRevisionStatus_descriptor, + new java.lang.String[] { + "AclPolicyRevision", "AclPolicyRevisionNumber", "State", "ErrorMessage", + }); + internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_InstanceAclPolicyAttachment_descriptor, + new java.lang.String[] { + "Instance", "AclPolicyRevisionStatuses", + }); + internal_static_google_cloud_memorystore_v1_AclRule_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_memorystore_v1_AclRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_AclRule_descriptor, + new java.lang.String[] { + "Username", "Rule", + }); internal_static_google_cloud_memorystore_v1_AutomatedBackupConfig_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(11); internal_static_google_cloud_memorystore_v1_AutomatedBackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_AutomatedBackupConfig_descriptor, @@ -1297,7 +1561,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", }); internal_static_google_cloud_memorystore_v1_BackupCollection_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(12); internal_static_google_cloud_memorystore_v1_BackupCollection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_BackupCollection_descriptor, @@ -1313,7 +1577,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "LastBackupTime", }); internal_static_google_cloud_memorystore_v1_Backup_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(13); internal_static_google_cloud_memorystore_v1_Backup_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_Backup_descriptor, @@ -1335,7 +1599,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uid", }); internal_static_google_cloud_memorystore_v1_BackupFile_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(14); internal_static_google_cloud_memorystore_v1_BackupFile_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_BackupFile_descriptor, @@ -1343,7 +1607,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FileName", "SizeBytes", "CreateTime", }); internal_static_google_cloud_memorystore_v1_CrossInstanceReplicationConfig_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(15); internal_static_google_cloud_memorystore_v1_CrossInstanceReplicationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_CrossInstanceReplicationConfig_descriptor, @@ -1369,7 +1633,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PrimaryInstance", "SecondaryInstances", }); internal_static_google_cloud_memorystore_v1_TokenAuthUser_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(16); internal_static_google_cloud_memorystore_v1_TokenAuthUser_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_TokenAuthUser_descriptor, @@ -1377,7 +1641,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", }); internal_static_google_cloud_memorystore_v1_AuthToken_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(17); internal_static_google_cloud_memorystore_v1_AuthToken_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_AuthToken_descriptor, @@ -1385,7 +1649,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Token", "CreateTime", "State", }); internal_static_google_cloud_memorystore_v1_MaintenancePolicy_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(18); internal_static_google_cloud_memorystore_v1_MaintenancePolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_MaintenancePolicy_descriptor, @@ -1393,7 +1657,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CreateTime", "UpdateTime", "WeeklyMaintenanceWindow", }); internal_static_google_cloud_memorystore_v1_WeeklyMaintenanceWindow_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(19); internal_static_google_cloud_memorystore_v1_WeeklyMaintenanceWindow_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_WeeklyMaintenanceWindow_descriptor, @@ -1401,7 +1665,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Day", "StartTime", }); internal_static_google_cloud_memorystore_v1_MaintenanceSchedule_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(20); internal_static_google_cloud_memorystore_v1_MaintenanceSchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_MaintenanceSchedule_descriptor, @@ -1409,7 +1673,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StartTime", "EndTime", }); internal_static_google_cloud_memorystore_v1_PscAttachmentDetail_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(21); internal_static_google_cloud_memorystore_v1_PscAttachmentDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_PscAttachmentDetail_descriptor, @@ -1417,7 +1681,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ServiceAttachment", "ConnectionType", }); internal_static_google_cloud_memorystore_v1_PscAutoConnection_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(22); internal_static_google_cloud_memorystore_v1_PscAutoConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_PscAutoConnection_descriptor, @@ -1434,7 +1698,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ports", }); internal_static_google_cloud_memorystore_v1_PscConnection_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(23); internal_static_google_cloud_memorystore_v1_PscConnection_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_PscConnection_descriptor, @@ -1451,7 +1715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Ports", }); internal_static_google_cloud_memorystore_v1_DiscoveryEndpoint_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(24); internal_static_google_cloud_memorystore_v1_DiscoveryEndpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_DiscoveryEndpoint_descriptor, @@ -1459,7 +1723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Address", "Port", "Network", }); internal_static_google_cloud_memorystore_v1_PersistenceConfig_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(25); internal_static_google_cloud_memorystore_v1_PersistenceConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_PersistenceConfig_descriptor, @@ -1483,7 +1747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AppendFsync", }); internal_static_google_cloud_memorystore_v1_NodeConfig_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(26); internal_static_google_cloud_memorystore_v1_NodeConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_NodeConfig_descriptor, @@ -1491,7 +1755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SizeGb", }); internal_static_google_cloud_memorystore_v1_ZoneDistributionConfig_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(27); internal_static_google_cloud_memorystore_v1_ZoneDistributionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ZoneDistributionConfig_descriptor, @@ -1499,15 +1763,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Zone", "Mode", }); internal_static_google_cloud_memorystore_v1_RescheduleMaintenanceRequest_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(28); internal_static_google_cloud_memorystore_v1_RescheduleMaintenanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_RescheduleMaintenanceRequest_descriptor, new java.lang.String[] { "Name", "RescheduleType", "ScheduleTime", }); + internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor = + getDescriptor().getMessageType(29); + internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_ListAclPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor = + getDescriptor().getMessageType(30); + internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_ListAclPoliciesResponse_descriptor, + new java.lang.String[] { + "AclPolicies", "NextPageToken", "Unreachable", + }); + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor = + getDescriptor().getMessageType(31); + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor = + getDescriptor().getMessageType(32); + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_ListAclPolicyRevisionsResponse_descriptor, + new java.lang.String[] { + "AclPolicyRevisions", "NextPageToken", "Unreachable", + }); internal_static_google_cloud_memorystore_v1_ListInstancesRequest_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(33); internal_static_google_cloud_memorystore_v1_ListInstancesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListInstancesRequest_descriptor, @@ -1515,39 +1811,79 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1_ListInstancesResponse_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(34); internal_static_google_cloud_memorystore_v1_ListInstancesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListInstancesResponse_descriptor, new java.lang.String[] { "Instances", "NextPageToken", "Unreachable", }); + internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor = + getDescriptor().getMessageType(35); + internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_GetAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor = + getDescriptor().getMessageType(36); + internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_GetAclPolicyRevisionRequest_descriptor, + new java.lang.String[] { + "Name", + }); internal_static_google_cloud_memorystore_v1_GetInstanceRequest_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(37); internal_static_google_cloud_memorystore_v1_GetInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetInstanceRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(38); + internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_CreateAclPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AclPolicyId", "AclPolicy", "RequestId", + }); internal_static_google_cloud_memorystore_v1_CreateInstanceRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(39); internal_static_google_cloud_memorystore_v1_CreateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_CreateInstanceRequest_descriptor, new java.lang.String[] { "Parent", "InstanceId", "Instance", "RequestId", }); + internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor = + getDescriptor().getMessageType(40); + internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_UpdateAclPolicyRequest_descriptor, + new java.lang.String[] { + "AclPolicy", "UpdateMask", "RequestId", + }); internal_static_google_cloud_memorystore_v1_UpdateInstanceRequest_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(41); internal_static_google_cloud_memorystore_v1_UpdateInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_UpdateInstanceRequest_descriptor, new java.lang.String[] { "UpdateMask", "Instance", "RequestId", }); + internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor = + getDescriptor().getMessageType(42); + internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_memorystore_v1_DeleteAclPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "RequestId", "Etag", + }); internal_static_google_cloud_memorystore_v1_DeleteInstanceRequest_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(43); internal_static_google_cloud_memorystore_v1_DeleteInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_DeleteInstanceRequest_descriptor, @@ -1555,7 +1891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_memorystore_v1_ListBackupCollectionsRequest_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(44); internal_static_google_cloud_memorystore_v1_ListBackupCollectionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListBackupCollectionsRequest_descriptor, @@ -1563,7 +1899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_memorystore_v1_ListBackupCollectionsResponse_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(45); internal_static_google_cloud_memorystore_v1_ListBackupCollectionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListBackupCollectionsResponse_descriptor, @@ -1571,7 +1907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupCollections", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1_GetBackupCollectionRequest_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(46); internal_static_google_cloud_memorystore_v1_GetBackupCollectionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetBackupCollectionRequest_descriptor, @@ -1579,7 +1915,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_ListBackupsRequest_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(47); internal_static_google_cloud_memorystore_v1_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListBackupsRequest_descriptor, @@ -1587,7 +1923,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_cloud_memorystore_v1_ListBackupsResponse_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(48); internal_static_google_cloud_memorystore_v1_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListBackupsResponse_descriptor, @@ -1595,7 +1931,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backups", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1_GetBackupRequest_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(49); internal_static_google_cloud_memorystore_v1_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetBackupRequest_descriptor, @@ -1603,7 +1939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_DeleteBackupRequest_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(50); internal_static_google_cloud_memorystore_v1_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_DeleteBackupRequest_descriptor, @@ -1611,7 +1947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_memorystore_v1_ExportBackupRequest_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(51); internal_static_google_cloud_memorystore_v1_ExportBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ExportBackupRequest_descriptor, @@ -1619,7 +1955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GcsBucket", "Name", "Destination", }); internal_static_google_cloud_memorystore_v1_BackupInstanceRequest_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(52); internal_static_google_cloud_memorystore_v1_BackupInstanceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_BackupInstanceRequest_descriptor, @@ -1627,7 +1963,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Ttl", "BackupId", }); internal_static_google_cloud_memorystore_v1_GetCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(53); internal_static_google_cloud_memorystore_v1_GetCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetCertificateAuthorityRequest_descriptor, @@ -1635,7 +1971,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersRequest_descriptor = - getDescriptor().getMessageType(39); + getDescriptor().getMessageType(54); internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersRequest_descriptor, @@ -1643,7 +1979,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersResponse_descriptor = - getDescriptor().getMessageType(40); + getDescriptor().getMessageType(55); internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListTokenAuthUsersResponse_descriptor, @@ -1651,7 +1987,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenAuthUsers", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1_GetTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(41); + getDescriptor().getMessageType(56); internal_static_google_cloud_memorystore_v1_GetTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetTokenAuthUserRequest_descriptor, @@ -1659,7 +1995,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_ListAuthTokensRequest_descriptor = - getDescriptor().getMessageType(42); + getDescriptor().getMessageType(57); internal_static_google_cloud_memorystore_v1_ListAuthTokensRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListAuthTokensRequest_descriptor, @@ -1667,7 +2003,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_memorystore_v1_ListAuthTokensResponse_descriptor = - getDescriptor().getMessageType(43); + getDescriptor().getMessageType(58); internal_static_google_cloud_memorystore_v1_ListAuthTokensResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_ListAuthTokensResponse_descriptor, @@ -1675,7 +2011,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AuthTokens", "NextPageToken", "Unreachable", }); internal_static_google_cloud_memorystore_v1_GetAuthTokenRequest_descriptor = - getDescriptor().getMessageType(44); + getDescriptor().getMessageType(59); internal_static_google_cloud_memorystore_v1_GetAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetAuthTokenRequest_descriptor, @@ -1683,7 +2019,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_AddTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(45); + getDescriptor().getMessageType(60); internal_static_google_cloud_memorystore_v1_AddTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_AddTokenAuthUserRequest_descriptor, @@ -1691,7 +2027,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Instance", "TokenAuthUser", }); internal_static_google_cloud_memorystore_v1_DeleteTokenAuthUserRequest_descriptor = - getDescriptor().getMessageType(46); + getDescriptor().getMessageType(61); internal_static_google_cloud_memorystore_v1_DeleteTokenAuthUserRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_DeleteTokenAuthUserRequest_descriptor, @@ -1699,7 +2035,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", "Force", }); internal_static_google_cloud_memorystore_v1_AddAuthTokenRequest_descriptor = - getDescriptor().getMessageType(47); + getDescriptor().getMessageType(62); internal_static_google_cloud_memorystore_v1_AddAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_AddAuthTokenRequest_descriptor, @@ -1707,7 +2043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TokenAuthUser", "AuthToken", }); internal_static_google_cloud_memorystore_v1_DeleteAuthTokenRequest_descriptor = - getDescriptor().getMessageType(48); + getDescriptor().getMessageType(63); internal_static_google_cloud_memorystore_v1_DeleteAuthTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_DeleteAuthTokenRequest_descriptor, @@ -1715,7 +2051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_CertificateAuthority_descriptor = - getDescriptor().getMessageType(49); + getDescriptor().getMessageType(64); internal_static_google_cloud_memorystore_v1_CertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_CertificateAuthority_descriptor, @@ -1741,7 +2077,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_memorystore_v1_SharedRegionalCertificateAuthority_descriptor = - getDescriptor().getMessageType(50); + getDescriptor().getMessageType(65); internal_static_google_cloud_memorystore_v1_SharedRegionalCertificateAuthority_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_SharedRegionalCertificateAuthority_descriptor, @@ -1767,7 +2103,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Certificates", }); internal_static_google_cloud_memorystore_v1_GetSharedRegionalCertificateAuthorityRequest_descriptor = - getDescriptor().getMessageType(51); + getDescriptor().getMessageType(66); internal_static_google_cloud_memorystore_v1_GetSharedRegionalCertificateAuthorityRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_GetSharedRegionalCertificateAuthorityRequest_descriptor, @@ -1775,7 +2111,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_memorystore_v1_OperationMetadata_descriptor = - getDescriptor().getMessageType(52); + getDescriptor().getMessageType(67); internal_static_google_cloud_memorystore_v1_OperationMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_OperationMetadata_descriptor, @@ -1789,7 +2125,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ApiVersion", }); internal_static_google_cloud_memorystore_v1_EncryptionInfo_descriptor = - getDescriptor().getMessageType(53); + getDescriptor().getMessageType(68); internal_static_google_cloud_memorystore_v1_EncryptionInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_memorystore_v1_EncryptionInfo_descriptor, diff --git a/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto b/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto index fd52ece5f419..97c862eec5c8 100644 --- a/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto +++ b/java-valkey/proto-google-cloud-valkey-v1/src/main/proto/google/cloud/memorystore/v1/memorystore.proto @@ -73,6 +73,23 @@ service Memorystore { "https://www.googleapis.com/auth/memorystore.read-only," "https://www.googleapis.com/auth/memorystore.read-write"; + // Lists all ACL policies owned by a project in either the specified + // location (region) or all locations. + // + // The location should have the following format: + // + // * `projects/{project_id}/locations/{location_id}` + // + // If `location_id` is specified as `-` (wildcard), then all regions + // available to the project are queried, and the results are aggregated. + rpc ListAclPolicies(ListAclPoliciesRequest) + returns (ListAclPoliciesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*}/aclPolicies" + }; + option (google.api.method_signature) = "parent"; + } + // Lists Instances in a given project and location. rpc ListInstances(ListInstancesRequest) returns (ListInstancesResponse) { option (google.api.http) = { @@ -81,6 +98,14 @@ service Memorystore { option (google.api.method_signature) = "parent"; } + // Gets the details of a specific Memorystore ACL policy. + rpc GetAclPolicy(GetAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + } + // Gets details of a single Instance. rpc GetInstance(GetInstanceRequest) returns (Instance) { option (google.api.http) = { @@ -89,6 +114,17 @@ service Memorystore { option (google.api.method_signature) = "name"; } + // Creates an ACL policy. + // The creation is executed synchronously and the policy is available for use + // immediately after the RPC returns. + rpc CreateAclPolicy(CreateAclPolicyRequest) returns (AclPolicy) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*}/aclPolicies" + body: "acl_policy" + }; + option (google.api.method_signature) = "parent,acl_policy,acl_policy_id"; + } + // Creates a new Instance in a given project and location. rpc CreateInstance(CreateInstanceRequest) returns (google.longrunning.Operation) { @@ -103,6 +139,29 @@ service Memorystore { }; } + // Updates the ACL policy. + // + // The operation will apply the updated ACL policy to all the linked + // instances. The operation will return success if it successfully applied the + // policy to all the instances. If the operation completed with a failure, the + // service will continue to apply the policy via reconciliation for the failed + // instances even after operation completion to ensure eventual consistency. + // + // Completed longrunning.Operation will contain the new ACL policy object + // in the response field. + rpc UpdateAclPolicy(UpdateAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1/{acl_policy.name=projects/*/locations/*/aclPolicies/*}" + body: "acl_policy" + }; + option (google.api.method_signature) = "acl_policy,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "AclPolicy" + metadata_type: "OperationMetadata" + }; + } + // Updates the parameters of a single Instance. rpc UpdateInstance(UpdateInstanceRequest) returns (google.longrunning.Operation) { @@ -117,6 +176,39 @@ service Memorystore { }; } + // Deletes a specific ACL policy. This action will delete the ACL policy and + // all the rules associated with it. An ACL policy cannot be deleted if it is + // attached to an instance. + rpc DeleteAclPolicy(DeleteAclPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/aclPolicies/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Gets details of a specific ACL policy revision. + rpc GetAclPolicyRevision(GetAclPolicyRevisionRequest) + returns (AclPolicyRevision) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/aclPolicies/*/revisions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all ACL policy revisions in a given ACL policy. + rpc ListAclPolicyRevisions(ListAclPolicyRevisionsRequest) + returns (ListAclPolicyRevisionsResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/aclPolicies/*}/revisions" + }; + option (google.api.method_signature) = "parent"; + } + // Deletes a single Instance. rpc DeleteInstance(DeleteInstanceRequest) returns (google.longrunning.Operation) { @@ -855,6 +947,51 @@ message Instance { // Output only. Migration config for the instance. MigrationConfig migration_config = 59 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The ACL policy for the instance. + // Format: projects/{project}/locations/{location}/aclPolicies/{acl_policy} + optional string acl_policy = 60 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Output only. Details of the applied ACL policy. + AclPolicyInfo acl_policy_info = 62 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Details of the applied ACL policy. +message AclPolicyInfo { + // Output only. The resource name of the applied ACL policy. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string applied_acl_policy = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Output only. The resource name of the applied ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string applied_acl_policy_revision = 2 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the applied ACL policy revision. + int64 applied_acl_policy_revision_number = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of status for various revisions of this ACL policy on + // the instance. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request for `StartMigration`. @@ -972,6 +1109,162 @@ message MigrationConfig { bool force_finish_migration = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// The ACL policy resource. +message AclPolicy { + option (google.api.resource) = { + type: "memorystore.googleapis.com/AclPolicy" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + plural: "aclPolicies" + singular: "aclPolicy" + }; + + // Represents the different states of an ACL policy. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // ACL policy has been created and is fully usable. + ACTIVE = 1; + + // ACL policy is being updated. + UPDATING = 2; + + // ACL policy is being deleted. + DELETING = 3; + } + + // Identifier. Full resource path of the ACL policy. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. The ACL rules within the ACL policy. + repeated AclRule rules = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the ACL policy. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Etag of the ACL policy. + optional string etag = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The ACL policy attachment status for each attached instance. + repeated InstanceAclPolicyAttachment instance_acl_policy_attachments = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the ACL policy was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// The ACL policy revision resource. +message AclPolicyRevision { + option (google.api.resource) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + pattern: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + plural: "aclPolicyRevisions" + singular: "aclPolicyRevision" + }; + + // Identifier. The name of the ACL policy revision. + // Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The revision number of the ACL policy revision. + int64 revision_number = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The snapshot of the ACL policy at the time of revision + // creation. + AclPolicy snapshot = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The timestamp that the revision was created. + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A list of instances that are attached to this ACL policy + // revision. + repeated string attached_instances = 5 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/Instance" + } + ]; +} + +// AclPolicyRevisionStatus stores the per-revision status for an attached +// instance. +message AclPolicyRevisionStatus { + // Enum indicating the status of this ACL policy revision on the instance. + enum State { + // Not set. + STATE_UNSPECIFIED = 0; + + // The instance is attempting to apply this revision. + APPLYING = 1; + + // The instance has successfully applied this revision. + APPLIED = 2; + + // The instance failed to apply this revision. + FAILED = 3; + } + + // Output only. The resource name of the ACL policy revision this status + // refers to. Format: + // "projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}" + string acl_policy_revision = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Output only. The revision number of the ACL policy revision this status + // refers to. + int64 acl_policy_revision_number = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. AclPolicyRevision state. + State state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Human-readable error message providing more details for FAILED + // states. + string error_message = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// InstanceAclPolicyAttachment stores the ACL policy status for an attached +// instance for the revisions successfully applied, under application or failed. +message InstanceAclPolicyAttachment { + // Output only. The resource name of the attached instance. + // Format: + // "projects/{project}/locations/{location}/instances/{instance}" + string instance = 1 [ + (google.api.field_behavior) = OUTPUT_ONLY, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/Instance" + } + ]; + + // Output only. A list of status for various revisions of this ACL policy on + // the instance. + repeated AclPolicyRevisionStatus acl_policy_revision_statuses = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A single ACL rule which defines the policy for a user. +message AclRule { + // Required. Specifies the IAM user or service account to be added to the ACL + // policy. This username will be directly set on the Valkey OSS. + string username = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The rule to be applied to the username. Ex: "on >password123 ~* + // +@all" The format of the rule is defined by Valkey OSS: + // https://valkey.io/topics/acl/ + string rule = 2 [(google.api.field_behavior) = REQUIRED]; +} + // The automated backup config for an instance. message AutomatedBackupConfig { // This schedule allows the backup to be triggered at a fixed frequency @@ -1693,6 +1986,85 @@ message RescheduleMaintenanceRequest { [(google.api.field_behavior) = OPTIONAL]; } +// Request for `ListAclPolicies`. +message ListAclPoliciesRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project}/locations/{location}` + // where `location` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Optional. The maximum number of items to return. + // + // If not specified, a default value of 1000 will be used by the service. + // Regardless of the page_size value, the response may include a partial list + // and a caller should only rely on response's + // `next_page_token` + // to determine if there are more ACL policies left to be queried. + // + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicies` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicies`. +message ListAclPoliciesResponse { + // A list of ACL policies in the project in the specified location, + // or across all locations. + // + // If the `location` in the parent field of the request is "-", all regions + // available to the project are queried, and the results aggregated. + repeated AclPolicy acl_policies = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + +// Request for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsRequest { + // Required. The resource name of the ACL policy to list revisions for. + // Format: "projects/{project}/locations/{location}/aclPolicies/{acl_policy}" + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; + + // Optional. The maximum number of items to return. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The `next_page_token` value returned from a previous + // `ListAclPolicyRevisions` request, if any. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response for `ListAclPolicyRevisions`. +message ListAclPolicyRevisionsResponse { + // A list of ACL policy revisions. + repeated AclPolicyRevision acl_policy_revisions = 1; + + // Token to retrieve the next page of results, or empty if there are no more + // results in the list. + string next_page_token = 2; + + // Unordered list. Locations that could not be reached. + repeated string unreachable = 3 + [(google.api.field_behavior) = UNORDERED_LIST]; +} + // Request message for [ListInstances][]. message ListInstancesRequest { // Required. The parent to list instances from. @@ -1734,6 +2106,32 @@ message ListInstancesResponse { repeated string unreachable = 3; } +// Request for `GetAclPolicy`. +message GetAclPolicyRequest { + // Required. Memorystore ACL policy resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; +} + +// Request for `GetAclPolicyRevision`. +message GetAclPolicyRevisionRequest { + // Required. Memorystore ACL policy revision resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy}/revisions/{revision}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicyRevision" + } + ]; +} + // Request message for [GetInstance][]. message GetInstanceRequest { // Required. The name of the instance to retrieve. @@ -1746,6 +2144,39 @@ message GetInstanceRequest { ]; } +// Request for `CreateAclPolicy`. +message CreateAclPolicyRequest { + // Required. The resource name of the ACL policy location using the form: + // `projects/{project}/locations/{location}` + // where `location` refers to a Google Cloud region. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Required. The logical name of the ACL policy in the customer project + // with the following restrictions: + // + // * Must contain only lowercase letters, numbers, and hyphens. + // * Must start with a letter. + // * Must be between 1-63 characters. + // * Must end with a number or a letter. + // * Must be unique within the customer project / location + string acl_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The ACL policy that is to be created. + AclPolicy acl_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Idempotent request UUID. + // . + string request_id = 4 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request message for [CreateInstance][]. message CreateInstanceRequest { // Required. The parent resource where this instance will be created. @@ -1791,6 +2222,26 @@ message CreateInstanceRequest { ]; } +// Request for `UpdateAclPolicy`. +message UpdateAclPolicyRequest { + // Required. The ACL policy to be updated. + AclPolicy acl_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Mask of fields to be updated. At least one path must be supplied + // in this field. The elements of the repeated paths field may only include + // these fields from `AclPolicy`: + // + // * `rules` + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Idempotent request UUID. + string request_id = 3 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; +} + // Request message for [UpdateInstance][]. message UpdateInstanceRequest { // Optional. The list of fields to be updated on the instance. At least one @@ -1820,6 +2271,29 @@ message UpdateInstanceRequest { ]; } +// Request for `DeleteAclPolicy`. +message DeleteAclPolicyRequest { + // Required. Memorystore ACL policy resource name using the form: + // `projects/{project}/locations/{location}/aclPolicies/{acl_policy_id}` + // where `location` refers to a Google Cloud region. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "memorystore.googleapis.com/AclPolicy" + } + ]; + + // Optional. Idempotent request UUID. + string request_id = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OPTIONAL + ]; + + // Optional. Etag of the ACL policy. If this is different from the server's + // etag, the request will fail with an ABORTED error. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; +} + // Request message for [DeleteInstance][]. message DeleteInstanceRequest { // Required. The name of the instance to delete. diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/AsyncCreateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/AsyncCreateAclPolicy.java new file mode 100644 index 000000000000..283e7ae4367c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/AsyncCreateAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_CreateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class AsyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncCreateAclPolicy(); + } + + public static void asyncCreateAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = memorystoreClient.createAclPolicyCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_CreateAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicy.java new file mode 100644 index 000000000000..5b0760203fa6 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicy.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_CreateAclPolicy_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.CreateAclPolicyRequest; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncCreateAclPolicy { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicy(); + } + + public static void syncCreateAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + CreateAclPolicyRequest request = + CreateAclPolicyRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setAclPolicyId("aclPolicyId-1805591401") + .setAclPolicy(AclPolicy.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = memorystoreClient.createAclPolicy(request); + } + } +} +// [END memorystore_v1_generated_Memorystore_CreateAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java new file mode 100644 index 000000000000..210f36fa04de --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyLocationnameAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_CreateAclPolicy_LocationnameAclpolicyString_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncCreateAclPolicyLocationnameAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyLocationnameAclpolicyString(); + } + + public static void syncCreateAclPolicyLocationnameAclpolicyString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END memorystore_v1_generated_Memorystore_CreateAclPolicy_LocationnameAclpolicyString_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java new file mode 100644 index 000000000000..c81e4433b0c4 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/createaclpolicy/SyncCreateAclPolicyStringAclpolicyString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_CreateAclPolicy_StringAclpolicyString_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncCreateAclPolicyStringAclpolicyString { + + public static void main(String[] args) throws Exception { + syncCreateAclPolicyStringAclpolicyString(); + } + + public static void syncCreateAclPolicyStringAclpolicyString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + String aclPolicyId = "aclPolicyId-1805591401"; + AclPolicy response = memorystoreClient.createAclPolicy(parent, aclPolicy, aclPolicyId); + } + } +} +// [END memorystore_v1_generated_Memorystore_CreateAclPolicy_StringAclpolicyString_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java new file mode 100644 index 000000000000..838c6e28eeae --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicy.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_DeleteAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicy(); + } + + public static void asyncDeleteAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + ApiFuture future = memorystoreClient.deleteAclPolicyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_DeleteAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java new file mode 100644 index 000000000000..c1577988cdef --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/AsyncDeleteAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_DeleteAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.OperationMetadata; +import com.google.protobuf.Empty; + +public class AsyncDeleteAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteAclPolicyLRO(); + } + + public static void asyncDeleteAclPolicyLRO() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + OperationFuture future = + memorystoreClient.deleteAclPolicyOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_DeleteAclPolicy_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java new file mode 100644 index 000000000000..2017df9525a8 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_DeleteAclPolicy_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.DeleteAclPolicyRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicy { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicy(); + } + + public static void syncDeleteAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + DeleteAclPolicyRequest request = + DeleteAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setRequestId("requestId693933066") + .setEtag("etag3123477") + .build(); + memorystoreClient.deleteAclPolicyAsync(request).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_DeleteAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..be6ede89b5e7 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_DeleteAclPolicy_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.protobuf.Empty; + +public class SyncDeleteAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncDeleteAclPolicyAclpolicyname(); + } + + public static void syncDeleteAclPolicyAclpolicyname() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + memorystoreClient.deleteAclPolicyAsync(name).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_DeleteAclPolicy_Aclpolicyname_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/SyncGetAgentCardString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java similarity index 60% rename from java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/SyncGetAgentCardString.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java index b08f3ecfe667..599e3f3fb634 100644 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/SyncGetAgentCardString.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/deleteaclpolicy/SyncDeleteAclPolicyString.java @@ -14,28 +14,29 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta.samples; +package com.google.cloud.memorystore.v1.samples; -// [START geminidataanalytics_v1beta_generated_DataA2AService_GetAgentCard_String_sync] -import com.google.cloud.geminidataanalytics.v1beta.AgentCard; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient; +// [START memorystore_v1_generated_Memorystore_DeleteAclPolicy_String_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.protobuf.Empty; -public class SyncGetAgentCardString { +public class SyncDeleteAclPolicyString { public static void main(String[] args) throws Exception { - syncGetAgentCardString(); + syncDeleteAclPolicyString(); } - public static void syncGetAgentCardString() throws Exception { + public static void syncDeleteAclPolicyString() 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) { - String tenant = "tenant-877336406"; - AgentCard response = dataA2AServiceClient.getAgentCard(tenant); + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + memorystoreClient.deleteAclPolicyAsync(name).get(); } } } -// [END geminidataanalytics_v1beta_generated_DataA2AService_GetAgentCard_String_sync] +// [END memorystore_v1_generated_Memorystore_DeleteAclPolicy_String_sync] diff --git a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/AsyncGetAgentCard.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/AsyncGetAclPolicy.java similarity index 55% rename from java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/AsyncGetAgentCard.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/AsyncGetAclPolicy.java index 8c9e933bc198..a5c6c174edfa 100644 --- a/java-geminidataanalytics/samples/snippets/generated/com/google/cloud/geminidataanalytics/v1beta/dataa2aservice/getagentcard/AsyncGetAgentCard.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/AsyncGetAclPolicy.java @@ -14,33 +14,36 @@ * limitations under the License. */ -package com.google.cloud.geminidataanalytics.v1beta.samples; +package com.google.cloud.memorystore.v1.samples; -// [START geminidataanalytics_v1beta_generated_DataA2AService_GetAgentCard_async] +// [START memorystore_v1_generated_Memorystore_GetAclPolicy_async] import com.google.api.core.ApiFuture; -import com.google.cloud.geminidataanalytics.v1beta.AgentCard; -import com.google.cloud.geminidataanalytics.v1beta.DataA2AServiceClient; -import com.google.cloud.geminidataanalytics.v1beta.GetAgentCardRequest; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; -public class AsyncGetAgentCard { +public class AsyncGetAclPolicy { public static void main(String[] args) throws Exception { - asyncGetAgentCard(); + asyncGetAclPolicy(); } - public static void asyncGetAgentCard() throws Exception { + public static void asyncGetAclPolicy() 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 (DataA2AServiceClient dataA2AServiceClient = DataA2AServiceClient.create()) { - GetAgentCardRequest request = - GetAgentCardRequest.newBuilder().setTenant("tenant-877336406").build(); - ApiFuture future = dataA2AServiceClient.getAgentCardCallable().futureCall(request); + try (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + ApiFuture future = memorystoreClient.getAclPolicyCallable().futureCall(request); // Do something. - AgentCard response = future.get(); + AclPolicy response = future.get(); } } } -// [END geminidataanalytics_v1beta_generated_DataA2AService_GetAgentCard_async] +// [END memorystore_v1_generated_Memorystore_GetAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicy.java new file mode 100644 index 000000000000..92745f34a06f --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicy.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicy_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.GetAclPolicyRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicy { + + public static void main(String[] args) throws Exception { + syncGetAclPolicy(); + } + + public static void syncGetAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRequest request = + GetAclPolicyRequest.newBuilder() + .setName(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .build(); + AclPolicy response = memorystoreClient.getAclPolicy(request); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java new file mode 100644 index 000000000000..3c42b74cb02d --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyAclpolicyname.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicy_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicyAclpolicyname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyAclpolicyname(); + } + + public static void syncGetAclPolicyAclpolicyname() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + AclPolicy response = memorystoreClient.getAclPolicy(name); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicy_Aclpolicyname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyString.java new file mode 100644 index 000000000000..427f29ca3584 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicy/SyncGetAclPolicyString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicy_String_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicyString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyString(); + } + + public static void syncGetAclPolicyString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + AclPolicy response = memorystoreClient.getAclPolicy(name); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicy_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..c72d00154d4c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/AsyncGetAclPolicyRevision.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicyRevision_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class AsyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + asyncGetAclPolicyRevision(); + } + + public static void asyncGetAclPolicyRevision() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + ApiFuture future = + memorystoreClient.getAclPolicyRevisionCallable().futureCall(request); + // Do something. + AclPolicyRevision response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicyRevision_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java new file mode 100644 index 000000000000..d9255fff84fe --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevision.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicyRevision_sync] +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1.GetAclPolicyRevisionRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicyRevision { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevision(); + } + + public static void syncGetAclPolicyRevision() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + GetAclPolicyRevisionRequest request = + GetAclPolicyRevisionRequest.newBuilder() + .setName( + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString()) + .build(); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(request); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicyRevision_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java new file mode 100644 index 000000000000..beb8a459bffa --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionAclpolicyrevisionname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicyRevision_Aclpolicyrevisionname_sync] +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicyRevisionAclpolicyrevisionname { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionAclpolicyrevisionname(); + } + + public static void syncGetAclPolicyRevisionAclpolicyrevisionname() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyRevisionName name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]"); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicyRevision_Aclpolicyrevisionname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java new file mode 100644 index 000000000000..a4c0b32a6f31 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/getaclpolicyrevision/SyncGetAclPolicyRevisionString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_GetAclPolicyRevision_String_sync] +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.AclPolicyRevisionName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncGetAclPolicyRevisionString { + + public static void main(String[] args) throws Exception { + syncGetAclPolicyRevisionString(); + } + + public static void syncGetAclPolicyRevisionString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String name = + AclPolicyRevisionName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]", "[REVISION]") + .toString(); + AclPolicyRevision response = memorystoreClient.getAclPolicyRevision(name); + } + } +} +// [END memorystore_v1_generated_Memorystore_GetAclPolicyRevision_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPolicies.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPolicies.java new file mode 100644 index 000000000000..dd447da4587e --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPolicies.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class AsyncListAclPolicies { + + public static void main(String[] args) throws Exception { + asyncListAclPolicies(); + } + + public static void asyncListAclPolicies() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + memorystoreClient.listAclPoliciesPagedCallable().futureCall(request); + // Do something. + for (AclPolicy element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicies_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java new file mode 100644 index 000000000000..c2ac8b3d17a4 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/AsyncListAclPoliciesPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicies_Paged_async] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.ListAclPoliciesResponse; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.common.base.Strings; + +public class AsyncListAclPoliciesPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPoliciesPaged(); + } + + public static void asyncListAclPoliciesPaged() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPoliciesResponse response = + memorystoreClient.listAclPoliciesCallable().call(request); + for (AclPolicy element : response.getAclPoliciesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicies_Paged_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPolicies.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPolicies.java new file mode 100644 index 000000000000..7f9fbf98133c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPolicies.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicies_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.ListAclPoliciesRequest; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPolicies { + + public static void main(String[] args) throws Exception { + syncListAclPolicies(); + } + + public static void syncListAclPolicies() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPoliciesRequest request = + ListAclPoliciesRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicy element : memorystoreClient.listAclPolicies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicies_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java new file mode 100644 index 000000000000..394406baa25a --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicies_Locationname_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPoliciesLocationname { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesLocationname(); + } + + public static void syncListAclPoliciesLocationname() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicies_Locationname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesString.java new file mode 100644 index 000000000000..c910dffc85f1 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicies/SyncListAclPoliciesString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicies_String_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.LocationName; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPoliciesString { + + public static void main(String[] args) throws Exception { + syncListAclPoliciesString(); + } + + public static void syncListAclPoliciesString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (AclPolicy element : memorystoreClient.listAclPolicies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicies_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..4f160f674d2c --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisions.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class AsyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisions(); + } + + public static void asyncListAclPolicyRevisions() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + memorystoreClient.listAclPolicyRevisionsPagedCallable().futureCall(request); + // Do something. + for (AclPolicyRevision element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java new file mode 100644 index 000000000000..a6472239861f --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/AsyncListAclPolicyRevisionsPaged.java @@ -0,0 +1,62 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_Paged_async] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsResponse; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.common.base.Strings; + +public class AsyncListAclPolicyRevisionsPaged { + + public static void main(String[] args) throws Exception { + asyncListAclPolicyRevisionsPaged(); + } + + public static void asyncListAclPolicyRevisionsPaged() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListAclPolicyRevisionsResponse response = + memorystoreClient.listAclPolicyRevisionsCallable().call(request); + for (AclPolicyRevision element : response.getAclPolicyRevisionsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_Paged_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java new file mode 100644 index 000000000000..75e7fc111103 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisions.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.ListAclPolicyRevisionsRequest; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPolicyRevisions { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisions(); + } + + public static void syncListAclPolicyRevisions() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + ListAclPolicyRevisionsRequest request = + ListAclPolicyRevisionsRequest.newBuilder() + .setParent(AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java new file mode 100644 index 000000000000..2470a8e95cc7 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsAclpolicyname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_Aclpolicyname_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPolicyRevisionsAclpolicyname { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsAclpolicyname(); + } + + public static void syncListAclPolicyRevisionsAclpolicyname() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicyName parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]"); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_Aclpolicyname_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java new file mode 100644 index 000000000000..94ad5b5e2040 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/listaclpolicyrevisions/SyncListAclPolicyRevisionsString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_String_sync] +import com.google.cloud.memorystore.v1.AclPolicyName; +import com.google.cloud.memorystore.v1.AclPolicyRevision; +import com.google.cloud.memorystore.v1.MemorystoreClient; + +public class SyncListAclPolicyRevisionsString { + + public static void main(String[] args) throws Exception { + syncListAclPolicyRevisionsString(); + } + + public static void syncListAclPolicyRevisionsString() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + String parent = AclPolicyName.of("[PROJECT]", "[LOCATION]", "[ACL_POLICY]").toString(); + for (AclPolicyRevision element : + memorystoreClient.listAclPolicyRevisions(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END memorystore_v1_generated_Memorystore_ListAclPolicyRevisions_String_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java new file mode 100644 index 000000000000..1c293e26d62e --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_UpdateAclPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicy(); + } + + public static void asyncUpdateAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + ApiFuture future = memorystoreClient.updateAclPolicyCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_UpdateAclPolicy_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java new file mode 100644 index 000000000000..eac396349484 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/AsyncUpdateAclPolicyLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_UpdateAclPolicy_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.OperationMetadata; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateAclPolicyLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateAclPolicyLRO(); + } + + public static void asyncUpdateAclPolicyLRO() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + OperationFuture future = + memorystoreClient.updateAclPolicyOperationCallable().futureCall(request); + // Do something. + AclPolicy response = future.get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_UpdateAclPolicy_LRO_async] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java new file mode 100644 index 000000000000..80ed234eeadf --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicy.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_UpdateAclPolicy_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.cloud.memorystore.v1.UpdateAclPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicy { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicy(); + } + + public static void syncUpdateAclPolicy() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + UpdateAclPolicyRequest request = + UpdateAclPolicyRequest.newBuilder() + .setAclPolicy(AclPolicy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .setRequestId("requestId693933066") + .build(); + AclPolicy response = memorystoreClient.updateAclPolicyAsync(request).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_UpdateAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java new file mode 100644 index 000000000000..ae540ee29939 --- /dev/null +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystore/updateaclpolicy/SyncUpdateAclPolicyAclpolicyFieldmask.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.memorystore.v1.samples; + +// [START memorystore_v1_generated_Memorystore_UpdateAclPolicy_AclpolicyFieldmask_sync] +import com.google.cloud.memorystore.v1.AclPolicy; +import com.google.cloud.memorystore.v1.MemorystoreClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateAclPolicyAclpolicyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateAclPolicyAclpolicyFieldmask(); + } + + public static void syncUpdateAclPolicyAclpolicyFieldmask() 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 (MemorystoreClient memorystoreClient = MemorystoreClient.create()) { + AclPolicy aclPolicy = AclPolicy.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + AclPolicy response = memorystoreClient.updateAclPolicyAsync(aclPolicy, updateMask).get(); + } + } +} +// [END memorystore_v1_generated_Memorystore_UpdateAclPolicy_AclpolicyFieldmask_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getinstance/SyncGetInstance.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java similarity index 86% rename from java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getinstance/SyncGetInstance.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java index f91d996a046f..2f5ab9582974 100644 --- a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getinstance/SyncGetInstance.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/memorystoresettings/getaclpolicy/SyncGetAclPolicy.java @@ -16,17 +16,17 @@ package com.google.cloud.memorystore.v1.samples; -// [START memorystore_v1_generated_MemorystoreSettings_GetInstance_sync] +// [START memorystore_v1_generated_MemorystoreSettings_GetAclPolicy_sync] import com.google.cloud.memorystore.v1.MemorystoreSettings; import java.time.Duration; -public class SyncGetInstance { +public class SyncGetAclPolicy { public static void main(String[] args) throws Exception { - syncGetInstance(); + syncGetAclPolicy(); } - public static void syncGetInstance() throws Exception { + public static void syncGetAclPolicy() 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. @@ -34,10 +34,10 @@ public static void syncGetInstance() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library MemorystoreSettings.Builder memorystoreSettingsBuilder = MemorystoreSettings.newBuilder(); memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .setRetrySettings( memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -52,4 +52,4 @@ public static void syncGetInstance() throws Exception { MemorystoreSettings memorystoreSettings = memorystoreSettingsBuilder.build(); } } -// [END memorystore_v1_generated_MemorystoreSettings_GetInstance_sync] +// [END memorystore_v1_generated_MemorystoreSettings_GetAclPolicy_sync] diff --git a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getinstance/SyncGetInstance.java b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java similarity index 85% rename from java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getinstance/SyncGetInstance.java rename to java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java index b5da4f6b4cbc..19131a2d8737 100644 --- a/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getinstance/SyncGetInstance.java +++ b/java-valkey/samples/snippets/generated/com/google/cloud/memorystore/v1/stub/memorystorestubsettings/getaclpolicy/SyncGetAclPolicy.java @@ -16,17 +16,17 @@ package com.google.cloud.memorystore.v1.stub.samples; -// [START memorystore_v1_generated_MemorystoreStubSettings_GetInstance_sync] +// [START memorystore_v1_generated_MemorystoreStubSettings_GetAclPolicy_sync] import com.google.cloud.memorystore.v1.stub.MemorystoreStubSettings; import java.time.Duration; -public class SyncGetInstance { +public class SyncGetAclPolicy { public static void main(String[] args) throws Exception { - syncGetInstance(); + syncGetAclPolicy(); } - public static void syncGetInstance() throws Exception { + public static void syncGetAclPolicy() 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. @@ -35,10 +35,10 @@ public static void syncGetInstance() throws Exception { MemorystoreStubSettings.Builder memorystoreSettingsBuilder = MemorystoreStubSettings.newBuilder(); memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .setRetrySettings( memorystoreSettingsBuilder - .getInstanceSettings() + .getAclPolicySettings() .getRetrySettings() .toBuilder() .setInitialRetryDelayDuration(Duration.ofSeconds(1)) @@ -53,4 +53,4 @@ public static void syncGetInstance() throws Exception { MemorystoreStubSettings memorystoreSettings = memorystoreSettingsBuilder.build(); } } -// [END memorystore_v1_generated_MemorystoreStubSettings_GetInstance_sync] +// [END memorystore_v1_generated_MemorystoreStubSettings_GetAclPolicy_sync] diff --git a/java-vectorsearch/README.md b/java-vectorsearch/README.md index 62a9bd7abce3..f4c6e1f5b78c 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.21.0 + 0.22.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vectorsearch' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.21.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.22.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.21.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.22.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview [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-vectorsearch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.21.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/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-video-intelligence/README.md b/java-video-intelligence/README.md index 66903fced614..d91aceff47e9 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-intelligence - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-intelligence' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-intelligence:2.98.0' +implementation 'com.google.cloud:google-cloud-video-intelligence:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-intelligence" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-intelligence/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-intelligence/2.99.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/README.md b/java-video-live-stream/README.md index 26bf897b7b9e..898172de7f33 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-live-stream - 0.101.0 + 0.102.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-live-stream' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-live-stream:0.101.0' +implementation 'com.google.cloud:google-cloud-live-stream:0.102.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.101.0" +libraryDependencies += "com.google.cloud" % "google-cloud-live-stream" % "0.102.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-live-stream/latest/overview [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.101.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-live-stream/0.102.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/README.md b/java-video-stitcher/README.md index d99d559b2feb..db763a842caa 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-stitcher - 0.99.0 + 0.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-stitcher' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-stitcher:0.99.0' +implementation 'com.google.cloud:google-cloud-video-stitcher:0.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-stitcher" % "0.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-stitcher/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-stitcher/0.100.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/README.md b/java-video-transcoder/README.md index 3a229f046c62..64e97168f56e 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-video-transcoder - 1.98.0 + 1.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-video-transcoder' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-video-transcoder:1.98.0' +implementation 'com.google.cloud:google-cloud-video-transcoder:1.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-video-transcoder" % "1.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-video-transcoder/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-video-transcoder/1.99.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/README.md b/java-vision/README.md index 33ab1e987b86..67a8554755b2 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vision - 3.97.0 + 3.98.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vision' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vision:3.97.0' +implementation 'com.google.cloud:google-cloud-vision:3.98.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.97.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.98.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vision/latest/overview [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.97.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vision/3.98.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/README.md b/java-visionai/README.md index e84045d5662f..a7060d721567 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-visionai - 0.56.0 + 0.57.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-visionai' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-visionai:0.56.0' +implementation 'com.google.cloud:google-cloud-visionai:0.57.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.56.0" +libraryDependencies += "com.google.cloud" % "google-cloud-visionai" % "0.57.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview [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.56.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-visionai/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-vmmigration/README.md b/java-vmmigration/README.md index 48e054c1b35a..24613190379b 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmmigration - 1.99.0 + 1.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vmmigration' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmmigration:1.99.0' +implementation 'com.google.cloud:google-cloud-vmmigration:1.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmmigration" % "1.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmmigration/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmmigration/1.100.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/README.md b/java-vmwareengine/README.md index e911dfc3422d..a2da41e695c8 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vmwareengine - 0.93.0 + 0.94.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-vmwareengine' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vmwareengine:0.93.0' +implementation 'com.google.cloud:google-cloud-vmwareengine:0.94.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.93.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vmwareengine" % "0.94.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vmwareengine/latest/overview [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.93.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vmwareengine/0.94.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/README.md b/java-vpcaccess/README.md index 91e783244a84..240c6a458d0a 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vpcaccess - 2.100.0 + 2.101.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-vpcaccess' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vpcaccess:2.100.0' +implementation 'com.google.cloud:google-cloud-vpcaccess:2.101.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.100.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vpcaccess" % "2.101.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vpcaccess/latest/overview [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.100.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vpcaccess/2.101.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/README.md b/java-webrisk/README.md index 7ca576b8ddb5..4ccca297ac8f 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-webrisk - 2.98.0 + 2.99.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-webrisk' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-webrisk:2.98.0' +implementation 'com.google.cloud:google-cloud-webrisk:2.99.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.98.0" +libraryDependencies += "com.google.cloud" % "google-cloud-webrisk" % "2.99.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-webrisk/latest/overview [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.98.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-webrisk/2.99.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/README.md b/java-websecurityscanner/README.md index eed165d71ae5..7135f5143973 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-websecurityscanner - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-websecurityscanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-websecurityscanner:2.99.0' +implementation 'com.google.cloud:google-cloud-websecurityscanner:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-websecurityscanner" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-websecurityscanner/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-websecurityscanner/2.100.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/README.md b/java-workflow-executions/README.md index 1670ab2bc497..cf474bfb952c 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflow-executions - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflow-executions' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflow-executions:2.99.0' +implementation 'com.google.cloud:google-cloud-workflow-executions:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflow-executions" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflow-executions/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflow-executions/2.100.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/README.md b/java-workflows/README.md index 029cf40be252..69cdcc37f204 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workflows - 2.99.0 + 2.100.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workflows' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workflows:2.99.0' +implementation 'com.google.cloud:google-cloud-workflows:2.100.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.99.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workflows" % "2.100.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workflows/latest/overview [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.99.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workflows/2.100.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-workloadidentity/README.md b/java-workloadidentity/README.md index 41f9b5a1f074..0c1725479049 100644 --- a/java-workloadidentity/README.md +++ b/java-workloadidentity/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadidentity - 0.4.0 + 0.5.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadidentity' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadidentity:0.4.0' +implementation 'com.google.cloud:google-cloud-workloadidentity:0.5.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.4.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadidentity" % "0.5.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadidentity/latest/overview [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-workloadidentity.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/0.4.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadidentity/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-workloadmanager/README.md b/java-workloadmanager/README.md index bb17af3df342..fa3755b2f82b 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workloadmanager - 0.15.0 + 0.16.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workloadmanager' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workloadmanager:0.15.0' +implementation 'com.google.cloud:google-cloud-workloadmanager:0.16.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.15.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workloadmanager" % "0.16.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview [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-workloadmanager.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/0.15.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workloadmanager/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-workspaceevents/README.md b/java-workspaceevents/README.md index 7d327f60d05e..cf43fa099afe 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -44,7 +44,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workspaceevents - 0.63.0 + 0.64.0 ``` @@ -59,13 +59,13 @@ implementation 'com.google.cloud:google-cloud-workspaceevents' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workspaceevents:0.63.0' +implementation 'com.google.cloud:google-cloud-workspaceevents:0.64.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.63.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workspaceevents" % "0.64.0" ``` ## Authentication @@ -186,7 +186,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workspaceevents/latest/overview [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.63.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workspaceevents/0.64.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/README.md b/java-workstations/README.md index a927aa153734..8b7685992f57 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -41,7 +41,7 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-workstations - 0.87.0 + 0.88.0 ``` @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-workstations' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-workstations:0.87.0' +implementation 'com.google.cloud:google-cloud-workstations:0.88.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.87.0" +libraryDependencies += "com.google.cloud" % "google-cloud-workstations" % "0.88.0" ``` ## Authentication @@ -180,7 +180,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-workstations/latest/overview [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.87.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-workstations/0.88.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/librarian.yaml b/librarian.yaml index ecb5b9d18ac1..d4bb124cb741 100644 --- a/librarian.yaml +++ b/librarian.yaml @@ -16,8 +16,8 @@ version: v0.49.0 repo: googleapis/google-cloud-java sources: googleapis: - commit: 14a161a98ef045be80c12ab69d924504a756f109 - sha256: ce3cee2da77fbdff0e269bc520dc61e8b32efcdec7628b39b9e474a02bc951f6 + commit: dff1cd0c7ff8c26ff4c9f7a87cbe175fb5124d4e + sha256: a6a9be6c06d43d42d171ea85be30552edf27e00bc2271d78a49e680a7d92e7dd showcase: commit: 5158967e8a41c751b15776142d190428ddb7e99f sha256: a31271ff2cdeb7cce91e93a4d58a66dcaaac574c51cc14bd74577ab1eafd3ccd @@ -58,9 +58,9 @@ libraries: - path: google/cloud/accessapproval/v1 java: api_description_override: enables controlling access to your organization's data by Google personnel. + released_version: 2.101.0 name_pretty_override: Access Approval product_documentation_override: https://cloud.google.com/access-approval/docs/ - released_version: 2.101.0 - name: accesscontextmanager version: 1.101.0 apis: @@ -75,9 +75,9 @@ libraries: java: api_description_override: n/a artifact_id: google-identity-accesscontextmanager + released_version: 1.101.0 name_pretty_override: Identity Access Context Manager product_documentation_override: n/a - released_version: 1.101.0 - name: admanager version: 0.59.0 apis: @@ -87,10 +87,10 @@ libraries: api_description_override: The Ad Manager API enables an app to integrate with Google Ad Manager. You can read Ad Manager data and run reports using the API. artifact_id: ad-manager client_documentation_override: https://cloud.google.com/java/docs/reference/ad-manager/latest/overview + released_version: 0.59.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Ad Manager API product_documentation_override: https://developers.google.com/ad-manager/api/beta - released_version: 0.59.0 - name: advisorynotifications version: 0.89.0 apis: @@ -99,9 +99,9 @@ libraries: omit_common_resources: true java: api_description_override: An API for accessing Advisory Notifications in Google Cloud. + released_version: 0.89.0 name_pretty_override: Advisory Notifications API product_documentation_override: https://cloud.google.com/advisory-notifications/ - released_version: 0.89.0 - name: agentidentity version: 0.6.0 apis: @@ -153,9 +153,9 @@ libraries: - google-cloud-aiplatform/src/test/java/com/google/iam/v1/MockIAMPolicyImpl.java java: api_description_override: is an integrated suite of machine learning tools and services for building and using ML models with AutoML or custom code. It offers both novices and experts the best workbench for the entire machine learning development lifecycle. + released_version: 3.101.0 name_pretty_override: Vertex AI product_documentation_override: https://cloud.google.com/vertex-ai/docs - released_version: 3.101.0 - name: alloydb version: 0.89.0 apis: @@ -176,9 +176,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: AlloyDB is a fully managed, PostgreSQL-compatible database service with industry-leading performance, availability, and scale. + released_version: 0.89.0 name_pretty_override: AlloyDB product_documentation_override: https://cloud.google.com/alloydb/ - released_version: 0.89.0 - name: alloydb-connectors version: 0.78.0 apis: @@ -206,10 +206,10 @@ libraries: java: api_id_override: connectors.googleapis.com api_description_override: AlloyDB is a fully-managed, PostgreSQL-compatible database for demanding transactional workloads. It provides enterprise-grade performance and availability while maintaining 100% compatibility with open-source PostgreSQL. + released_version: 0.78.0 name_pretty_override: AlloyDB connectors product_documentation_override: https://cloud.google.com/alloydb/docs transport_override: grpc - released_version: 0.78.0 - name: analytics-admin version: 0.110.0 apis: @@ -219,9 +219,9 @@ libraries: api_description_override: allows you to manage Google Analytics accounts and properties. artifact_id: google-analytics-admin codeowner_team: '@googleapis/analytics-dpe' + released_version: 0.110.0 name_pretty_override: Analytics Admin product_documentation_override: https://developers.google.com/analytics - released_version: 0.110.0 - name: analytics-data version: 0.111.0 apis: @@ -232,18 +232,18 @@ libraries: api_description_override: provides programmatic methods to access report data in Google Analytics App+Web properties. artifact_id: google-analytics-data codeowner_team: '@googleapis/analytics-dpe' + released_version: 0.111.0 name_pretty_override: Analytics Data product_documentation_override: https://developers.google.com/analytics/trusted-testing/analytics-data - released_version: 0.111.0 - name: analyticshub version: 0.97.0 apis: - path: google/cloud/bigquery/analyticshub/v1 java: api_description_override: TBD + released_version: 0.97.0 name_pretty_override: Analytics Hub API product_documentation_override: https://cloud.google.com/bigquery/TBD - released_version: 0.97.0 - name: api-gateway version: 2.100.0 apis: @@ -251,18 +251,18 @@ libraries: java: api_id_override: apigateway.googleapis.com api_description_override: enables you to provide secure access to your backend services through a well-defined REST API that is consistent across all of your services, regardless of the service implementation. Clients consume your REST APIS to implement standalone apps for a mobile device or tablet, through apps running in a browser, or through any other type of app that can make a request to an HTTP endpoint. + released_version: 2.100.0 name_pretty_override: API Gateway product_documentation_override: https://cloud.google.com/api-gateway/docs - released_version: 2.100.0 - name: apigee-connect version: 2.100.0 apis: - path: google/cloud/apigeeconnect/v1 java: api_description_override: allows the Apigee hybrid management plane to connect securely to the MART service in the runtime plane without requiring you to expose the MART endpoint on the internet. + released_version: 2.100.0 name_pretty_override: Apigee Connect product_documentation_override: https://cloud.google.com/apigee/docs/hybrid/v1.3/apigee-connect/ - released_version: 2.100.0 - name: apihub version: 0.53.0 apis: @@ -274,19 +274,19 @@ libraries: api_id_override: apihub.googleapis.com api_description_override: API hub lets you consolidate and organize information about all of the APIs of interest to your organization. API hub lets you capture critical information about APIs that allows developers to discover and evaluate them easily and leverage the work of other teams wherever possible. API platform teams can use API hub to have visibility into and manage their portfolio of APIs. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-apihub/latest/overview + released_version: 0.53.0 library_type_override: GAPIC_AUTO name_pretty_override: API hub API product_documentation_override: https://cloud.google.com/apigee/docs/apihub/what-is-api-hub - released_version: 0.53.0 - name: apikeys version: 0.98.0 apis: - path: google/api/apikeys/v2 java: api_description_override: API Keys lets you create and manage your API keys for your projects. + released_version: 0.98.0 name_pretty_override: API Keys API product_documentation_override: https://cloud.google.com/api-keys/ - released_version: 0.98.0 - name: appengine-admin version: 2.100.0 apis: @@ -294,9 +294,9 @@ libraries: java: api_description_override: you to manage your App Engine applications. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.100.0 name_pretty_override: App Engine Admin API product_documentation_override: https://cloud.google.com/appengine/docs/admin-api/ - released_version: 2.100.0 - name: apphub version: 0.64.0 apis: @@ -307,9 +307,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: App Hub simplifies the process of building, running, and managing applications on Google Cloud. + released_version: 0.64.0 name_pretty_override: App Hub API product_documentation_override: https://cloud.google.com/app-hub/docs/overview - released_version: 0.64.0 - name: appoptimize version: 0.10.0 apis: @@ -321,10 +321,10 @@ libraries: api_id_override: appoptimize.googleapis.com api_description_override: The App Optimize API provides developers and platform teams with tools to monitor, analyze, and improve the performance and cost-efficiency of their cloud applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-appoptimize/latest/overview + released_version: 0.10.0 library_type_override: GAPIC_AUTO name_pretty_override: App Optimize API product_documentation_override: https://docs.cloud.google.com/app-optimize/overview - released_version: 0.10.0 - name: apptopology version: 0.4.0 apis: @@ -342,9 +342,9 @@ libraries: api_description_override: provides programmatic methods to the Area 120 Tables API. artifact_id: google-area120-tables group_id: com.google.area120 + released_version: 0.104.0 name_pretty_override: Area 120 Tables product_documentation_override: https://area120.google.com/ - released_version: 0.104.0 - name: artifact-registry version: 1.99.0 apis: @@ -359,9 +359,9 @@ libraries: java: api_description_override: provides a single place for your organization to manage container images and language packages (such as Maven and npm). It is fully integrated with Google Cloud's tooling and runtimes and comes with support for native artifact protocols. This makes it simple to integrate it with your CI/CD tooling to set up automated pipelines. codeowner_team: '@googleapis/aap-dpes' + released_version: 1.99.0 name_pretty_override: Artifact Registry product_documentation_override: https://cloud.google.com/artifact-registry - released_version: 1.99.0 - name: asset version: 3.104.0 apis: @@ -376,9 +376,9 @@ libraries: java: api_description_override: provides inventory services based on a time series database. This database keeps a five week history of Google Cloud asset metadata. The Cloud Asset Inventory export service allows you to export all asset metadata at a certain timestamp or export event change history during a timeframe. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187210 + released_version: 3.104.0 name_pretty_override: Cloud Asset Inventory product_documentation_override: https://cloud.google.com/resource-manager/docs/cloud-asset-inventory/overview - released_version: 3.104.0 - name: assured-workloads version: 2.100.0 apis: @@ -386,9 +386,9 @@ libraries: - path: google/cloud/assuredworkloads/v1beta1 java: api_description_override: allows you to secure your government workloads and accelerate your path to running compliant workloads on Google Cloud with Assured Workloads for Government. + released_version: 2.100.0 name_pretty_override: Assured Workloads for Government product_documentation_override: https://cloud.google.com/assured-workloads/ - released_version: 2.100.0 - name: auditmanager version: 0.18.0 apis: @@ -400,10 +400,10 @@ libraries: api_id_override: auditmanager.googleapis.com api_description_override: Lists information about the supported locations for this service. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-auditmanager/latest/overview + released_version: 0.18.0 library_type_override: GAPIC_AUTO name_pretty_override: Audit Manager API product_documentation_override: https://cloud.google.com/audit-manager/docs - released_version: 0.18.0 - name: backstory version: 0.8.0 apis: @@ -417,10 +417,10 @@ libraries: api_id_override: backstory.googleapis.com api_description_override: Common Universal Data Model (UDM) and Entity protos used by Chronicle. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backstory/latest/overview + released_version: 0.8.0 library_type_override: GAPIC_AUTO name_pretty_override: Malachite Common Protos product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - released_version: 0.8.0 - name: backupdr version: 0.59.0 apis: @@ -438,10 +438,10 @@ libraries: api_id_override: backupdr.googleapis.com api_description_override: 'Backup and DR Service is a powerful, centralized, cloud-first backup and disaster recovery solution for cloud-based and hybrid workloads. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-backupdr/latest/overview + released_version: 0.59.0 library_type_override: GAPIC_AUTO name_pretty_override: Backup and DR Service API product_documentation_override: https://cloud.google.com/backup-disaster-recovery/docs/concepts/backup-dr - released_version: 0.59.0 - name: bare-metal-solution version: 0.100.0 apis: @@ -452,9 +452,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Bring your Oracle workloads to Google Cloud with Bare Metal Solution and jumpstart your cloud journey with minimal risk. + released_version: 0.100.0 name_pretty_override: Bare Metal Solution product_documentation_override: https://cloud.google.com/bare-metal/docs - released_version: 0.100.0 - name: batch version: 0.100.0 apis: @@ -469,9 +469,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: n/a + released_version: 0.100.0 name_pretty_override: Cloud Batch product_documentation_override: https://cloud.google.com/ - released_version: 0.100.0 - name: beyondcorp-appconnections version: 0.98.0 apis: @@ -483,9 +483,9 @@ libraries: java: api_description_override: is Google's implementation of the zero trust model. It builds upon a decade of experience at Google, combined with ideas and best practices from the community. By shifting access controls from the network perimeter to individual users, BeyondCorp enables secure work from virtually any location without the need for a traditional VPN. api_shortname_override: beyondcorp-appconnections + released_version: 0.98.0 name_pretty_override: BeyondCorp AppConnections product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.98.0 - name: beyondcorp-appconnectors version: 0.98.0 apis: @@ -497,9 +497,9 @@ libraries: java: api_description_override: provides methods to manage (create/read/update/delete) BeyondCorp AppConnectors. api_shortname_override: beyondcorp-appconnectors + released_version: 0.98.0 name_pretty_override: BeyondCorp AppConnectors product_documentation_override: cloud.google.com/beyondcorp-enterprise/ - released_version: 0.98.0 - name: beyondcorp-appgateways version: 0.98.0 apis: @@ -512,9 +512,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-appgateways + released_version: 0.98.0 name_pretty_override: BeyondCorp AppGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.98.0 - name: beyondcorp-clientconnectorservices version: 0.98.0 apis: @@ -527,9 +527,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientconnectorservices + released_version: 0.98.0 name_pretty_override: BeyondCorp ClientConnectorServices product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.98.0 - name: beyondcorp-clientgateways version: 0.98.0 apis: @@ -542,9 +542,9 @@ libraries: api_id_override: beyondcorp.googleapis.com api_description_override: A zero trust solution that enables secure access to applications and resources, and offers integrated threat and data protection. api_shortname_override: beyondcorp-clientgateways + released_version: 0.98.0 name_pretty_override: BeyondCorp ClientGateways product_documentation_override: https://cloud.google.com/beyondcorp-enterprise/ - released_version: 0.98.0 - name: biglake version: 0.88.0 apis: @@ -554,9 +554,9 @@ libraries: - path: google/cloud/bigquery/biglake/v1alpha1 java: api_description_override: The BigLake API provides access to BigLake Metastore, a serverless, fully managed, and highly available metastore for open-source data that can be used for querying Apache Iceberg tables in BigQuery. + released_version: 0.88.0 name_pretty_override: BigLake product_documentation_override: https://cloud.google.com/biglake - released_version: 0.88.0 - name: biglake-hive version: 0.5.0 apis: @@ -572,9 +572,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost. + released_version: 2.95.0 name_pretty_override: Analytics Hub product_documentation_override: https://cloud.google.com/analytics-hub - released_version: 2.95.0 - name: bigqueryconnection version: 2.102.0 apis: @@ -583,9 +583,9 @@ libraries: java: api_description_override: allows users to manage BigQuery connections to external data sources. client_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc/google.cloud.bigquery.reservation.v1beta1 + released_version: 2.102.0 name_pretty_override: Cloud BigQuery Connection product_documentation_override: https://cloud.google.com/bigquery/docs/reference/bigqueryconnection/rest - released_version: 2.102.0 - name: bigquerydatapolicy version: 0.97.0 apis: @@ -595,9 +595,9 @@ libraries: - path: google/cloud/bigquery/datapolicies/v1beta1 java: api_description_override: Allows users to manage BigQuery data policies. + released_version: 0.97.0 name_pretty_override: BigQuery DataPolicy API product_documentation_override: https://cloud.google.com/bigquery/docs/reference/datapolicy/ - released_version: 0.97.0 - name: bigquerydatatransfer version: 2.100.0 apis: @@ -629,9 +629,9 @@ libraries: func_name: public static List toStringList(List<@Nullable RunName> values) java: api_description_override: transfers data from partner SaaS applications to Google BigQuery on a scheduled, managed basis. + released_version: 2.100.0 name_pretty_override: BigQuery Data Transfer Service product_documentation_override: https://cloud.google.com/bigquery/transfer/ - released_version: 2.100.0 - name: bigquerymigration version: 0.103.0 apis: @@ -639,18 +639,18 @@ libraries: - path: google/cloud/bigquery/migration/v2alpha java: api_description_override: BigQuery Migration API + released_version: 0.103.0 name_pretty_override: BigQuery Migration product_documentation_override: https://cloud.google.com/bigquery/docs - released_version: 0.103.0 - name: bigqueryreservation version: 2.101.0 apis: - path: google/cloud/bigquery/reservation/v1 java: api_description_override: allows users to manage their flat-rate BigQuery reservations. + released_version: 2.101.0 name_pretty_override: Cloud BigQuery Reservation product_documentation_override: https://cloud.google.com/bigquery/docs/reference/reservations/rpc - released_version: 2.101.0 - name: bigquerystorage version: 3.36.0 apis: @@ -776,12 +776,12 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-bigquerystorage/latest/history codeowner_team: '@googleapis/bigquery-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559654 + released_version: 3.36.0 library_type_override: GAPIC_COMBO name_pretty_override: BigQuery Storage product_documentation_override: https://cloud.google.com/bigquery/docs/reference/storage/ recommended_package: com.google.cloud.bigquery.storage.v1 transport_override: grpc - released_version: 3.36.0 - name: bigtable version: 2.86.0 apis: @@ -872,11 +872,11 @@ libraries: excluded_poms: - google-cloud-bigtable-bom issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 + released_version: 2.86.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Bigtable product_documentation_override: https://cloud.google.com/bigtable recommended_package: com.google.cloud.bigtable - released_version: 2.86.0 - name: billing version: 2.100.0 apis: @@ -888,9 +888,9 @@ libraries: java: api_description_override: allows developers to manage their billing accounts or browse the catalog of SKUs and pricing. issue_tracker_override: https://issuetracker.google.com/savedsearches/559770 + released_version: 2.100.0 name_pretty_override: Cloud Billing product_documentation_override: https://cloud.google.com/billing/docs - released_version: 2.100.0 - name: billingbudgets version: 2.100.0 apis: @@ -898,9 +898,9 @@ libraries: - path: google/cloud/billing/budgets/v1beta1 java: api_description_override: allows you to avoid surprises on your bill by creating budgets to monitor all your Google Cloud charges in one place. + released_version: 2.100.0 name_pretty_override: Cloud Billing Budgets product_documentation_override: https://cloud.google.com/billing/docs/how-to/budgets - released_version: 2.100.0 - name: binary-authorization version: 1.99.0 apis: @@ -910,9 +910,9 @@ libraries: api_id_override: binaryauthorization.googleapis.com api_description_override: ' is a service on Google Cloud that provides centralized software supply-chain security for applications that run on Google Kubernetes Engine (GKE) and Anthos clusters on VMware' codeowner_team: '@googleapis/aap-dpes' + released_version: 1.99.0 name_pretty_override: Binary Authorization product_documentation_override: https://cloud.google.com/binary-authorization/docs - released_version: 1.99.0 - name: capacityplanner version: 0.23.0 apis: @@ -921,10 +921,10 @@ libraries: api_id_override: capacityplanner.googleapis.com api_description_override: Provides programmatic access to Capacity Planner features. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-capacityplanner/latest/overview + released_version: 0.23.0 library_type_override: GAPIC_AUTO name_pretty_override: Capacity Planner API product_documentation_override: https://cloud.google.com/capacity-planner/docs - released_version: 0.23.0 - name: certificate-manager version: 0.103.0 apis: @@ -935,9 +935,9 @@ libraries: java: api_id_override: certificatemanager.googleapis.com api_description_override: lets you acquire and manage TLS (SSL) certificates for use with Cloud Load Balancing. + released_version: 0.103.0 name_pretty_override: Certificate Manager product_documentation_override: https://cloud.google.com/certificate-manager/docs - released_version: 0.103.0 - name: ces version: 0.16.0 apis: @@ -953,28 +953,28 @@ libraries: api_id_override: ces.googleapis.com api_description_override: Customer Experience Agent Studio (CX Agent Studio) is a minimal code conversational agent builder. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-ces/latest/overview + released_version: 0.16.0 library_type_override: GAPIC_AUTO name_pretty_override: Gemini Enterprise for Customer Experience API product_documentation_override: https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps - released_version: 0.16.0 - name: channel version: 3.104.0 apis: - path: google/cloud/channel/v1 java: api_description_override: With Channel Services, Google Cloud partners and resellers have a single unified resale platform, with a unified resale catalog, customer management, order management, billing management, policy and authorization management, and cost management. + released_version: 3.104.0 name_pretty_override: Channel Services product_documentation_override: https://cloud.google.com/channel/docs - released_version: 3.104.0 - name: chat version: 0.64.0 apis: - path: google/chat/v1 java: api_description_override: The Google Chat API lets you build Chat apps to integrate your services with Google Chat and manage Chat resources such as spaces, members, and messages. + released_version: 0.64.0 name_pretty_override: Google Chat API product_documentation_override: https://developers.google.com/chat/concepts - released_version: 0.64.0 - name: chronicle version: 0.38.0 apis: @@ -983,10 +983,10 @@ libraries: api_id_override: chronicle.googleapis.com api_description_override: The Google Cloud Security Operations API, popularly known as the Chronicle API, serves endpoints that enable security analysts to analyze and mitigate a security threat throughout its lifecycle client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/overview + released_version: 0.38.0 library_type_override: GAPIC_AUTO name_pretty_override: Chronicle API product_documentation_override: https://cloud.google.com/chronicle/docs/secops/secops-overview - released_version: 0.38.0 - name: cloudapiregistry version: 0.19.0 apis: @@ -1002,10 +1002,10 @@ libraries: api_id_override: cloudapiregistry.googleapis.com api_description_override: Cloud API Registry lets you discover, govern, use, and monitor Model Context Protocol (MCP) servers and tools provided by Google, or by your organization through Apigee API hub. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudapiregistry/latest/overview + released_version: 0.19.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud API Registry API product_documentation_override: https://docs.cloud.google.com/api-registry/docs/overview - released_version: 0.19.0 - name: cloudbuild version: 3.102.0 apis: @@ -1019,9 +1019,9 @@ libraries: api_description_override: lets you build software quickly across all languages. Get complete control over defining custom workflows for building, testing, and deploying across multiple environments such as VMs, serverless, Kubernetes, or Firebase. artifact_id: google-cloud-build codeowner_team: '@googleapis/aap-dpes' + released_version: 3.102.0 name_pretty_override: Cloud Build product_documentation_override: https://cloud.google.com/cloud-build/ - released_version: 3.102.0 - name: cloudcommerceconsumerprocurement version: 0.98.0 apis: @@ -1029,9 +1029,9 @@ libraries: - path: google/cloud/commerce/consumer/procurement/v1alpha1 java: api_description_override: Find top solutions integrated with Google Cloud to accelerate your digital transformation. Scale and simplify procurement for your organization with online discovery, flexible purchasing, and fulfillment of enterprise-grade cloud solutions. + released_version: 0.98.0 name_pretty_override: Cloud Commerce Consumer Procurement product_documentation_override: https://cloud.google.com/marketplace/ - released_version: 0.98.0 - name: cloudcontrolspartner version: 0.64.0 apis: @@ -1039,9 +1039,9 @@ libraries: - path: google/cloud/cloudcontrolspartner/v1beta java: api_description_override: Provides insights about your customers and their Assured Workloads based on your Sovereign Controls by Partners offering. + released_version: 0.64.0 name_pretty_override: Cloud Controls Partner API product_documentation_override: https://cloud.google.com/sovereign-controls-by-partners/docs/sovereign-partners - released_version: 0.64.0 - name: cloudquotas version: 0.68.0 apis: @@ -1056,9 +1056,9 @@ libraries: Cloud Quotas API provides GCP service consumers with management and observability for resource usage, quotas, and restrictions of the services they consume. + released_version: 0.68.0 name_pretty_override: Cloud Quotas API product_documentation_override: https://cloud.google.com/cloudquotas/docs/ - released_version: 0.68.0 - name: cloudsecuritycompliance version: 0.27.0 apis: @@ -1070,10 +1070,10 @@ libraries: api_id_override: cloudsecuritycompliance.googleapis.com api_description_override: Compliance Manager uses software-defined controls that let you assess support for multiple compliance programs and security requirements within a Google Cloud organization client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-cloudsecuritycompliance/latest/overview + released_version: 0.27.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Security Compliance API product_documentation_override: https://cloud.google.com/security-command-center/docs/compliance-manager-overview - released_version: 0.27.0 - name: cloudsupport version: 0.84.0 apis: @@ -1081,9 +1081,9 @@ libraries: - path: google/cloud/support/v2beta java: api_description_override: Manages Google Cloud technical support cases for Customer Care support offerings. + released_version: 0.84.0 name_pretty_override: Google Cloud Support API product_documentation_override: https://cloud.google.com/support/docs/reference/support-api/ - released_version: 0.84.0 - name: commerceproducer version: 0.6.0 apis: @@ -1193,13 +1193,13 @@ libraries: - proto-google-common-protos-bom - proto-google-common-protos group_id: com.google.api.grpc + released_version: 2.79.0 library_type_override: OTHER name_pretty_override: Common Protos product_documentation_override: https://github.com/googleapis/api-common-protos transport_override: grpc skip_pom_updates: true skip_api_id: true - released_version: 2.79.0 - name: compute version: 1.110.0 apis: @@ -1216,9 +1216,9 @@ libraries: api_description_override: 'delivers virtual machines running in Google''s innovative data centers and worldwide fiber network. Compute Engine''s tooling and workflow support enable scaling from single instances to global, load-balanced cloud computing. Compute Engine''s VMs boot quickly, come with persistent disk storage, deliver consistent performance and are available in many configurations. ' excluded_poms: - grpc-google-cloud-compute-v1 + released_version: 1.110.0 name_pretty_override: Compute Engine product_documentation_override: https://cloud.google.com/compute/ - released_version: 1.110.0 - name: confidentialcomputing version: 0.86.0 apis: @@ -1232,9 +1232,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Protect data in-use with Confidential VMs, Confidential GKE, Confidential Dataproc, and Confidential Space. + released_version: 0.86.0 name_pretty_override: Confidential Computing API product_documentation_override: https://cloud.google.com/confidential-computing/ - released_version: 0.86.0 - name: configdelivery version: 0.34.0 apis: @@ -1250,10 +1250,10 @@ libraries: api_id_override: configdelivery.googleapis.com api_description_override: ConfigDelivery service manages the deployment of kubernetes configuration to a fleet of kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-configdelivery/latest/overview + released_version: 0.34.0 library_type_override: GAPIC_AUTO name_pretty_override: Config Delivery API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/config-sync/docs/concepts/fleet-packages - released_version: 0.34.0 - name: connectgateway version: 0.52.0 apis: @@ -1262,10 +1262,10 @@ libraries: api_id_override: connectgateway.googleapis.com api_description_override: The Connect Gateway service allows connectivity from external parties to connected Kubernetes clusters. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-connectgateway/latest/overview + released_version: 0.52.0 library_type_override: GAPIC_AUTO name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/kubernetes-engine/enterprise/multicluster-management/gateway - released_version: 0.52.0 - name: contact-center-insights version: 2.100.0 apis: @@ -1273,9 +1273,9 @@ libraries: java: api_description_override: ' helps users detect and visualize patterns in their contact center data.' codeowner_team: '@googleapis/api-contact-center-insights' + released_version: 2.100.0 name_pretty_override: CCAI Insights product_documentation_override: https://cloud.google.com/dialogflow/priv/docs/insights/ - released_version: 2.100.0 - name: container version: 2.103.0 apis: @@ -1288,9 +1288,9 @@ libraries: api_description_override: is an enterprise-grade platform for containerized applications, including stateful and stateless, AI and ML, Linux and Windows, complex and simple web apps, API, and backend services. Leverage industry-first features like four-way auto-scaling and no-stress management. Optimize GPU and TPU provisioning, use integrated developer tools, and get multi-cluster support from SREs. codeowner_team: '@googleapis/cloud-sdk-java-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559777 + released_version: 2.103.0 name_pretty_override: Kubernetes Engine product_documentation_override: https://cloud.google.com/kubernetes-engine/ - released_version: 2.103.0 - name: containeranalysis version: 2.101.0 apis: @@ -1327,18 +1327,18 @@ libraries: java: api_description_override: is a service that provides vulnerability scanning and metadata storage for software artifacts. The service performs vulnerability scans on built software artifacts, such as the images in Container Registry, then stores the resulting metadata and makes it available for consumption through an API. The metadata may come from several sources, including vulnerability scanning, other Cloud services, and third-party providers. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.101.0 name_pretty_override: Cloud Container Analysis product_documentation_override: https://cloud.google.com/container-registry/docs/container-analysis - released_version: 2.101.0 - name: contentwarehouse version: 0.96.0 apis: - path: google/cloud/contentwarehouse/v1 java: api_description_override: Document AI Warehouse is an integrated cloud-native GCP platform to store, search, organize, govern and analyze documents and their structured metadata. + released_version: 0.96.0 name_pretty_override: Document AI Warehouse product_documentation_override: https://cloud.google.com/document-warehouse/docs/overview - released_version: 0.96.0 - name: data-fusion version: 1.100.0 apis: @@ -1346,9 +1346,9 @@ libraries: - path: google/cloud/datafusion/v1beta1 java: api_description_override: is a fully managed, cloud-native, enterprise data integration service for quickly building and managing data pipelines. + released_version: 1.100.0 name_pretty_override: Cloud Data Fusion product_documentation_override: https://cloud.google.com/data-fusion/docs - released_version: 1.100.0 - name: databasecenter version: 0.21.0 apis: @@ -1357,19 +1357,19 @@ libraries: api_id_override: databasecenter.googleapis.com api_description_override: Database Center provides an organization-wide, cross-product fleet health platform to eliminate the overhead, complexity, and risk associated with aggregating and summarizing health signals through custom dashboards. Through Database Center's fleet health dashboard and API, database platform teams that are responsible for reliability, compliance, security, cost, and administration of database fleets will now have a single pane of glass that pinpoints issues relevant to each team. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-databasecenter/latest/overview + released_version: 0.21.0 library_type_override: GAPIC_AUTO name_pretty_override: Database Center API product_documentation_override: https://cloud.google.com/database-center/docs/overview - released_version: 0.21.0 - name: dataflow version: 0.104.0 apis: - path: google/dataflow/v1beta3 java: api_description_override: is a managed service for executing a wide variety of data processing patterns. + released_version: 0.104.0 name_pretty_override: Dataflow product_documentation_override: https://cloud.google.com/dataflow/docs - released_version: 0.104.0 - name: dataform version: 0.99.0 apis: @@ -1385,9 +1385,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Help analytics teams manage data inside BigQuery using SQL. + released_version: 0.99.0 name_pretty_override: Cloud Dataform product_documentation_override: https://cloud.google.com/dataform/docs - released_version: 0.99.0 - name: datalineage version: 0.92.0 apis: @@ -1395,9 +1395,9 @@ libraries: - path: google/cloud/datacatalog/lineage/configmanagement/v1 java: api_description_override: Lineage is used to track data flows between assets over time. + released_version: 0.92.0 name_pretty_override: Data Lineage product_documentation_override: https://cloud.google.com/dataplex/docs/about-data-lineage - released_version: 0.92.0 - name: datamanager version: 0.21.0 apis: @@ -1407,10 +1407,10 @@ libraries: api_description_override: A unified ingestion API for data partners, agencies and advertisers to connect first-party data across Google advertising products. artifact_id: data-manager client_documentation_override: https://cloud.google.com/java/docs/reference/data-manager/latest/overview + released_version: 0.21.0 library_type_override: GAPIC_AUTO name_pretty_override: Data Manager API product_documentation_override: https://developers.google.com/data-manager - released_version: 0.21.0 - name: dataplex version: 1.98.0 apis: @@ -1421,9 +1421,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: provides intelligent data fabric that enables organizations to centrally manage, monitor, and govern their data across data lakes, data warehouses, and data marts with consistent controls, providing access to trusted data and powering analytics at scale. + released_version: 1.98.0 name_pretty_override: Cloud Dataplex product_documentation_override: https://cloud.google.com/dataplex - released_version: 1.98.0 - name: dataproc version: 4.97.0 apis: @@ -1434,9 +1434,9 @@ libraries: java: api_description_override: is a faster, easier, more cost-effective way to run Apache Spark and Apache Hadoop. codeowner_team: '@googleapis/api-dataproc' + released_version: 4.97.0 name_pretty_override: Dataproc product_documentation_override: https://cloud.google.com/dataproc - released_version: 4.97.0 - name: dataproc-metastore version: 2.101.0 apis: @@ -1457,9 +1457,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a fully managed, highly available, autoscaled, autohealing, OSS-native metastore service that greatly simplifies technical metadata management. Dataproc Metastore service is based on Apache Hive metastore and serves as a critical component towards enterprise data lakes. + released_version: 2.101.0 name_pretty_override: Dataproc Metastore product_documentation_override: https://cloud.google.com/dataproc-metastore/docs - released_version: 2.101.0 - name: datastore version: 3.8.0 apis: @@ -1477,11 +1477,11 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-datastore/latest/history excluded_poms: - grpc-google-cloud-datastore-v1 + released_version: 3.8.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Datastore product_documentation_override: https://cloud.google.com/datastore recommended_package: com.google.cloud.datastore - released_version: 3.8.0 - name: datastream version: 1.99.0 apis: @@ -1493,9 +1493,9 @@ libraries: - path: google/cloud/datastream/v1alpha1 java: api_description_override: is a serverless and easy-to-use change data capture (CDC) and replication service. It allows you to synchronize data across heterogeneous databases and applications reliably, and with minimal latency and downtime. + released_version: 1.99.0 name_pretty_override: Datastream product_documentation_override: https://cloud.google.com/datastream/docs - released_version: 1.99.0 - name: deploy version: 1.98.0 apis: @@ -1507,9 +1507,9 @@ libraries: java: api_description_override: is a service that automates delivery of your applications to a series of target environments in a defined sequence codeowner_team: '@googleapis/aap-dpes' + released_version: 1.98.0 name_pretty_override: Google Cloud Deploy product_documentation_override: https://cloud.google.com/deploy/docs - released_version: 1.98.0 - name: developerconnect version: 0.57.0 apis: @@ -1521,10 +1521,10 @@ libraries: api_id_override: developerconnect.googleapis.com api_description_override: Connect third-party source code management to Google client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developerconnect/latest/overview + released_version: 0.57.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Connect API product_documentation_override: https://cloud.google.com/developer-connect/docs/overview - released_version: 0.57.0 - name: developerknowledge version: 0.8.0 apis: @@ -1534,10 +1534,10 @@ libraries: api_description_override: The Developer Knowledge API provides access to Google's developer knowledge artifact_id: google-cloud-developer-knowledge client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-developer-knowledge/latest/overview + released_version: 0.8.0 library_type_override: GAPIC_AUTO name_pretty_override: Developer Knowledge API product_documentation_override: https://developers.google.com/knowledge - released_version: 0.8.0 - name: devicestreaming version: 0.40.0 apis: @@ -1546,10 +1546,10 @@ libraries: api_id_override: devicestreaming.googleapis.com api_description_override: The Cloud API for device streaming usage. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-devicestreaming/latest/overview + released_version: 0.40.0 library_type_override: GAPIC_AUTO name_pretty_override: Device Streaming API product_documentation_override: https://cloud.google.com/device-streaming/docs - released_version: 0.40.0 - name: dialogflow version: 4.106.0 apis: @@ -1622,9 +1622,9 @@ libraries: java: api_description_override: is an end-to-end, build-once deploy-everywhere development suite for creating conversational interfaces for websites, mobile applications, popular messaging platforms, and IoT devices. You can use it to build interfaces (such as chatbots and conversational IVR) that enable natural and rich interactions between your users and your business. Dialogflow Enterprise Edition users have access to Google Cloud Support and a service level agreement (SLA) for production deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5300385 + released_version: 4.106.0 name_pretty_override: Dialogflow API product_documentation_override: https://cloud.google.com/dialogflow-enterprise/ - released_version: 4.106.0 - name: dialogflow-cx version: 0.111.0 apis: @@ -1639,9 +1639,9 @@ libraries: java: api_description_override: provides a new way of designing agents, taking a state machine approach to agent design. This gives you clear and explicit control over a conversation, a better end-user experience, and a better development workflow. api_shortname_override: dialogflow-cx + released_version: 0.111.0 name_pretty_override: Dialogflow CX product_documentation_override: https://cloud.google.com/dialogflow/cx/docs - released_version: 0.111.0 - name: discoveryengine version: 0.96.0 apis: @@ -1659,9 +1659,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: A Cloud API that offers search and recommendation discoverability for documents from different industry verticals (e.g. media, retail, etc.). + released_version: 0.96.0 name_pretty_override: Discovery Engine API product_documentation_override: https://cloud.google.com/discovery-engine/media/docs - released_version: 0.96.0 - name: distributedcloudedge version: 0.97.0 apis: @@ -1673,9 +1673,9 @@ libraries: api_id_override: edgecontainer.googleapis.com api_description_override: Google Distributed Cloud Edge allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. api_shortname_override: distributedcloudedge + released_version: 0.97.0 name_pretty_override: Google Distributed Cloud Edge product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/ - released_version: 0.97.0 - name: dlp version: 3.104.0 apis: @@ -1718,9 +1718,9 @@ libraries: java: api_description_override: provides programmatic access to a powerful detection engine for personally identifiable information and other privacy-sensitive data in unstructured data streams, like text blocks and images. issue_tracker_override: https://issuetracker.google.com/savedsearches/5548083 + released_version: 3.104.0 name_pretty_override: Cloud Data Loss Prevention product_documentation_override: https://cloud.google.com/dlp/docs/ - released_version: 3.104.0 - name: dms version: 2.99.0 apis: @@ -1728,9 +1728,9 @@ libraries: java: api_id_override: datamigration.googleapis.com api_description_override: makes it easier for you to migrate your data to Google Cloud. This service helps you lift and shift your MySQL and PostgreSQL workloads into Cloud SQL. + released_version: 2.99.0 name_pretty_override: Database Migration Service product_documentation_override: https://cloud.google.com/database-migration/docs - released_version: 2.99.0 - name: document-ai version: 2.104.0 apis: @@ -1745,9 +1745,9 @@ libraries: java: api_description_override: allows developers to unlock insights from your documents with machine learning. issue_tracker_override: https://issuetracker.google.com/savedsearches/559755 + released_version: 2.104.0 name_pretty_override: Document AI product_documentation_override: https://cloud.google.com/compute/docs/documentai/ - released_version: 2.104.0 - name: domains version: 1.97.0 apis: @@ -1756,9 +1756,9 @@ libraries: - path: google/cloud/domains/v1alpha2 java: api_description_override: allows you to register and manage domains by using Cloud Domains. + released_version: 1.97.0 name_pretty_override: Cloud Domains product_documentation_override: https://cloud.google.com/domains - released_version: 1.97.0 - name: edgenetwork version: 0.68.0 apis: @@ -1768,18 +1768,18 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Network management API for Distributed Cloud Edge. + released_version: 0.68.0 name_pretty_override: Distributed Cloud Edge Network API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs/overview - released_version: 0.68.0 - name: enterpriseknowledgegraph version: 0.96.0 apis: - path: google/cloud/enterpriseknowledgegraph/v1 java: api_description_override: Enterprise Knowledge Graph organizes siloed information into organizational knowledge, which involves consolidating, standardizing, and reconciling data in an efficient and useful way. + released_version: 0.96.0 name_pretty_override: Enterprise Knowledge Graph product_documentation_override: https://cloud.google.com/enterprise-knowledge-graph/docs/overview - released_version: 0.96.0 - name: errorreporting version: 0.221.0-beta apis: @@ -1830,19 +1830,19 @@ libraries: } java: api_description_override: 'counts, analyzes, and aggregates the crashes in your running cloud services. A centralized error management interface displays the results with sorting and filtering capabilities. A dedicated view shows the error details: time chart, occurrences, affected user count, first- and last-seen dates and a cleaned exception stack trace. Opt in to receive email and mobile alerts on new errors.' + released_version: 0.221.0-beta name_pretty_override: Error Reporting product_documentation_override: https://cloud.google.com/error-reporting billing_not_required: true - released_version: 0.221.0-beta - name: essential-contacts version: 2.100.0 apis: - path: google/cloud/essentialcontacts/v1 java: api_description_override: helps you customize who receives notifications by providing your own list of contacts in many Google Cloud services. + released_version: 2.100.0 name_pretty_override: Essential Contacts API product_documentation_override: https://cloud.google.com/resource-manager/docs/managing-notification-contacts/ - released_version: 2.100.0 - name: eventarc version: 1.100.0 apis: @@ -1854,9 +1854,9 @@ libraries: java: api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. Eventarc requires no infrastructure management, you can optimize productivity and costs while building a modern, event-driven solution. codeowner_team: '@googleapis/aap-dpes' + released_version: 1.100.0 name_pretty_override: Eventarc product_documentation_override: https://cloud.google.com/eventarc/docs - released_version: 1.100.0 - name: eventarc-publishing version: 0.100.0 apis: @@ -1864,9 +1864,9 @@ libraries: java: api_id_override: eventarc-publishing.googleapis.com api_description_override: lets you asynchronously deliver events from Google services, SaaS, and your own apps using loosely coupled services that react to state changes. + released_version: 0.100.0 name_pretty_override: Eventarc Publishing product_documentation_override: https://cloud.google.com/eventarc/docs - released_version: 0.100.0 - name: filestore version: 1.101.0 apis: @@ -1882,9 +1882,9 @@ libraries: generate_proto_classes: true java: api_description_override: instances are fully managed NFS file servers on Google Cloud for use with applications running on Compute Engine virtual machines (VMs) instances or Google Kubernetes Engine clusters. + released_version: 1.101.0 name_pretty_override: Cloud Filestore API product_documentation_override: https://cloud.google.com/filestore/docs - released_version: 1.101.0 - name: financialservices version: 0.41.0 apis: @@ -1896,10 +1896,10 @@ libraries: api_id_override: financialservices.googleapis.com api_description_override: Google Cloud's Anti Money Laundering AI (AML AI) product is an API that scores AML risk. Use it to identify more risk, more defensibly, with fewer false positives and reduced time per review. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-financialservices/latest/overview + released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Financial Services API product_documentation_override: https://cloud.google.com/financial-services/anti-money-laundering/docs/concepts/overview - released_version: 0.41.0 - name: firestore version: 3.50.0 apis: @@ -1959,13 +1959,13 @@ libraries: excluded_poms: - google-cloud-firestore - google-cloud-firestore-bom + released_version: 3.50.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Firestore product_documentation_override: https://cloud.google.com/firestore recommended_package: com.google.cloud.firestore transport_override: grpc skip_pom_updates: true - released_version: 3.50.0 - name: ftp version: 0.5.0 apis: @@ -2001,9 +2001,9 @@ libraries: java: api_description_override: is a scalable pay as you go Functions-as-a-Service (FaaS) to run your code with zero server management. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.102.0 name_pretty_override: Cloud Functions product_documentation_override: https://cloud.google.com/functions - released_version: 2.102.0 - name: gdchardwaremanagement version: 0.55.0 apis: @@ -2015,10 +2015,10 @@ libraries: api_id_override: gdchardwaremanagement.googleapis.com api_description_override: Google Distributed Cloud connected allows you to run Kubernetes clusters on dedicated hardware provided and maintained by Google that is separate from the Google Cloud data center. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gdchardwaremanagement/latest/overview + released_version: 0.55.0 library_type_override: GAPIC_AUTO name_pretty_override: GDC Hardware Management API product_documentation_override: https://cloud.google.com/distributed-cloud/edge/latest/docs - released_version: 0.55.0 - name: geminidataanalytics version: 0.28.0 apis: @@ -2034,10 +2034,10 @@ libraries: api_id_override: geminidataanalytics.googleapis.com api_description_override: Use Conversational Analytics API to build an artificial intelligence (AI)-powered chat interface, or data agent, that answers questions about structured data using natural language. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-geminidataanalytics/latest/overview + released_version: 0.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Data Analytics API with Gemini product_documentation_override: https://cloud.google.com/gemini/docs/conversational-analytics-api/overview - released_version: 0.28.0 - name: gke-backup version: 0.99.0 apis: @@ -2050,18 +2050,18 @@ libraries: api_id_override: gkebackup.googleapis.com api_description_override: is a service for backing up and restoring workloads in GKE. api_shortname_override: gke-backup + released_version: 0.99.0 name_pretty_override: Backup for GKE product_documentation_override: 'https://cloud.google.com/kubernetes-engine/docs/add-on/backup-for-gke/concepts/backup-for-gke ' - released_version: 0.99.0 - name: gke-connect-gateway version: 0.101.0 apis: - path: google/cloud/gkeconnect/gateway/v1beta1 java: api_description_override: builds on the power of fleets to let Anthos users connect to and run commands against registered Anthos clusters in a simple, consistent, and secured way, whether the clusters are on Google Cloud, other public clouds, or on premises, and makes it easier to automate DevOps processes across all your clusters. + released_version: 0.101.0 name_pretty_override: Connect Gateway API product_documentation_override: https://cloud.google.com/anthos/multicluster-management/gateway/ - released_version: 0.101.0 - name: gke-multi-cloud version: 0.99.0 apis: @@ -2070,9 +2070,9 @@ libraries: api_id_override: gkemulticloud.googleapis.com api_description_override: enables you to provision and manage GKE clusters running on AWS and Azure infrastructure through a centralized Google Cloud backed control plane. api_shortname_override: gke-multi-cloud + released_version: 0.99.0 name_pretty_override: Anthos Multicloud product_documentation_override: https://cloud.google.com/anthos/clusters/docs/multi-cloud - released_version: 0.99.0 - name: gkehub version: 1.100.0 apis: @@ -2102,9 +2102,9 @@ libraries: samples: false java: api_description_override: provides a unified way to work with Kubernetes clusters as part of Anthos, extending GKE to work in multiple environments. You have consistent, unified, and secure infrastructure, cluster, and container management, whether you're using Anthos on Google Cloud (with traditional GKE), hybrid cloud, or multiple public clouds. + released_version: 1.100.0 name_pretty_override: GKE Hub API product_documentation_override: https://cloud.google.com/anthos/gke/docs/ - released_version: 1.100.0 - name: gkerecommender version: 0.20.0 apis: @@ -2113,10 +2113,10 @@ libraries: api_id_override: gkerecommender.googleapis.com api_description_override: lets you analyze the performance and cost-efficiency of your inference workloads, and make data-driven decisions about resource allocation and model deployment strategies. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-gkerecommender/latest/overview + released_version: 0.20.0 library_type_override: GAPIC_AUTO name_pretty_override: GKE Recommender API product_documentation_override: https://cloud.google.com/kubernetes-engine/docs/how-to/machine-learning/inference-quickstart - released_version: 0.20.0 - name: google-cloud-java version: 1.94.0 skip_generate: true @@ -2152,10 +2152,10 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/grafeas/latest/overview codeowner_team: '@googleapis/aap-dpes' group_id: io.grafeas + released_version: 2.101.0 name_pretty_override: Grafeas product_documentation_override: https://grafeas.io skip_pom_updates: true - released_version: 2.101.0 - name: gsuite-addons version: 2.100.0 apis: @@ -2210,9 +2210,9 @@ libraries: samples: false java: api_description_override: are customized applications that integrate with Google Workspace productivity applications. + released_version: 2.100.0 name_pretty_override: Google Workspace Add-ons API product_documentation_override: https://developers.google.com/workspace/add-ons/overview - released_version: 2.100.0 - name: health version: 0.9.0 apis: @@ -2222,10 +2222,10 @@ libraries: api_id_override: health.googleapis.com api_description_override: The Google Health API lets you view and manage health and fitness metrics and measurement data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-health/latest/overview + released_version: 0.9.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Health API product_documentation_override: https://developers.google.com/health/api - released_version: 0.9.0 - name: hypercomputecluster version: 0.20.0 apis: @@ -2241,10 +2241,10 @@ libraries: api_id_override: hypercomputecluster.googleapis.com api_description_override: simplifies cluster management across compute, network, and storage client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-hypercomputecluster/latest/overview + released_version: 0.20.0 library_type_override: GAPIC_AUTO name_pretty_override: Cluster Director API product_documentation_override: https://cloud.google.com/blog/products/compute/managed-slurm-and-other-cluster-director-enhancements - released_version: 0.20.0 - name: iam version: 1.74.0 apis: @@ -2295,11 +2295,11 @@ libraries: - google-iam-policy - proto-google-iam-v1 group_id: com.google.api.grpc + released_version: 1.74.0 library_type_override: OTHER name_pretty_override: IAM product_documentation_override: https://cloud.google.com/iam skip_api_id: true - released_version: 1.74.0 - name: iam-admin version: 3.95.0 apis: @@ -2309,9 +2309,9 @@ libraries: api_description_override: you to manage your Service Accounts and IAM bindings. api_shortname_override: iam-admin artifact_id: google-iam-admin + released_version: 3.95.0 name_pretty_override: IAM Admin API product_documentation_override: https://cloud.google.com/iam/docs/apis - released_version: 3.95.0 - name: iam-policy version: 1.97.0 apis: @@ -2353,9 +2353,9 @@ libraries: - proto-google-iam-v1-bom - google-iam-policy - proto-google-iam-v1 + released_version: 1.97.0 name_pretty_override: Cloud IAM Policy product_documentation_override: n/a - released_version: 1.97.0 - name: iamcredentials version: 2.100.0 apis: @@ -2363,10 +2363,10 @@ libraries: java: api_description_override: creates short-lived, limited-privilege credentials for IAM service accounts. issue_tracker_override: https://issuetracker.google.com/issues/new?component=187161 + released_version: 2.100.0 name_pretty_override: IAM Service Account Credentials API product_documentation_override: https://cloud.google.com/iam/credentials/reference/rest/ billing_not_required: true - released_version: 2.100.0 - name: iap version: 0.56.0 apis: @@ -2375,19 +2375,19 @@ libraries: api_id_override: iap.googleapis.com api_description_override: Controls access to cloud applications running on Google Cloud Platform. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-iap/latest/overview + released_version: 0.56.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Identity-Aware Proxy API product_documentation_override: https://cloud.google.com/iap - released_version: 0.56.0 - name: ids version: 1.99.0 apis: - path: google/cloud/ids/v1 java: api_description_override: ' monitors your networks, and it alerts you when it detects malicious activity. Cloud IDS is powered by Palo Alto Networks.' + released_version: 1.99.0 name_pretty_override: Intrusion Detection System product_documentation_override: https://cloud.google.com/intrusion-detection-system/docs - released_version: 1.99.0 - name: infra-manager version: 0.77.0 apis: @@ -2399,9 +2399,9 @@ libraries: java: api_id_override: config.googleapis.com api_description_override: Creates and manages Google Cloud Platform resources and infrastructure. + released_version: 0.77.0 name_pretty_override: Infrastructure Manager API product_documentation_override: https://cloud.google.com/infrastructure-manager/docs/overview - released_version: 0.77.0 - name: iot version: 2.100.0 apis: @@ -2409,9 +2409,9 @@ libraries: java: api_description_override: is a complete set of tools to connect, process, store, and analyze data both at the edge and in the cloud. The platform consists of scalable, fully-managed cloud services; an integrated software stack for edge/on-premises computing with machine learning capabilities for all your IoT needs. issue_tracker_override: https://issuetracker.google.com/issues?q=status:open%20componentid:310170 + released_version: 2.100.0 name_pretty_override: Cloud Internet of Things (IoT) Core product_documentation_override: https://cloud.google.com/iot - released_version: 2.100.0 - name: kms version: 2.103.0 apis: @@ -2634,18 +2634,18 @@ libraries: } java: api_description_override: a cloud-hosted key management service that lets you manage cryptographic keys for your cloud services the same way you do on-premises. You can generate, use, rotate, and destroy AES256, RSA 2048, RSA 3072, RSA 4096, EC P256, and EC P384 cryptographic keys. Cloud KMS is integrated with Cloud IAM and Cloud Audit Logging so that you can manage permissions on individual keys and monitor how these are used. Use Cloud KMS to protect secrets and other sensitive data that you need to store in Google Cloud Platform. + released_version: 2.103.0 name_pretty_override: Cloud Key Management Service product_documentation_override: https://cloud.google.com/kms - released_version: 2.103.0 - name: kmsinventory version: 0.89.0 apis: - path: google/cloud/kms/inventory/v1 java: api_description_override: KMS Inventory API. + released_version: 0.89.0 name_pretty_override: KMS Inventory API product_documentation_override: https://cloud.google.com/kms/docs/ - released_version: 0.89.0 - name: language version: 2.101.0 apis: @@ -2654,9 +2654,9 @@ libraries: - path: google/cloud/language/v1beta2 java: api_description_override: provides natural language understanding technologies to developers, including sentiment analysis, entity analysis, entity sentiment analysis, content classification, and syntax analysis. This API is part of the larger Cloud Machine Learning API family. + released_version: 2.101.0 name_pretty_override: Natural Language product_documentation_override: https://cloud.google.com/natural-language/docs/ - released_version: 2.101.0 - name: licensemanager version: 0.33.0 apis: @@ -2668,10 +2668,10 @@ libraries: api_id_override: licensemanager.googleapis.com api_description_override: License Manager is a tool to manage and track third-party licenses on Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-licensemanager/latest/overview + released_version: 0.33.0 library_type_override: GAPIC_AUTO name_pretty_override: License Manager API product_documentation_override: https://cloud.google.com/compute/docs/instances/windows/ms-licensing - released_version: 0.33.0 - name: life-sciences version: 0.102.0 apis: @@ -2681,9 +2681,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a suite of services and tools for managing, processing, and transforming life sciences data. + released_version: 0.102.0 name_pretty_override: Cloud Life Sciences product_documentation_override: https://cloud.google.com/life-sciences/docs - released_version: 0.102.0 - name: locationfinder version: 0.25.0 apis: @@ -2692,10 +2692,10 @@ libraries: api_id_override: locationfinder.googleapis.com api_description_override: Cloud Location Finder is a public API that offers a repository of all Google Cloud and Google Distributed Cloud locations, as well as cloud locations for other cloud providers. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-locationfinder/latest/overview + released_version: 0.25.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Location Finder API product_documentation_override: https://cloud.google.com/location-finder/docs/overview - released_version: 0.25.0 - name: logging version: 3.41.0 apis: @@ -2854,12 +2854,12 @@ libraries: api_description_override: allows you to store, search, analyze, monitor, and alert on log data and events from Google Cloud and Amazon Web Services. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premises systems, and hybrid cloud systems. BindPlane is included with your Google Cloud project at no additional cost. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-logging/latest/history codeowner_team: '@googleapis/cloud-sdk-java-team' + released_version: 3.41.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Logging product_documentation_override: https://cloud.google.com/logging/docs recommended_package: com.google.cloud.logging transport_override: grpc - released_version: 3.41.0 - name: lustre version: 0.40.0 apis: @@ -2871,10 +2871,10 @@ libraries: api_id_override: lustre.googleapis.com api_description_override: Google Cloud Managed Lustre delivers a high-performance, fully managed parallel file system optimized for AI and HPC applications. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-lustre/latest/overview + released_version: 0.40.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Cloud Managed Lustre API product_documentation_override: https://cloud.google.com/managed-lustre/docs - released_version: 0.40.0 - name: maintenance version: 0.34.0 apis: @@ -2890,10 +2890,10 @@ libraries: api_id_override: maintenance.googleapis.com api_description_override: The Maintenance API provides a centralized view of planned disruptive maintenance events across supported Google Cloud products. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-maintenance/latest/overview + released_version: 0.34.0 library_type_override: GAPIC_AUTO name_pretty_override: Maintenance API product_documentation_override: https://cloud.google.com/unified-maintenance/docs/overview - released_version: 0.34.0 - name: managed-identities version: 1.98.0 apis: @@ -2901,9 +2901,9 @@ libraries: java: api_id_override: managedidentities.googleapis.com api_description_override: is a highly available, hardened Google Cloud service running actual Microsoft AD that enables you to manage authentication and authorization for your AD-dependent workloads, automate AD server maintenance and security configuration, and connect your on-premises AD domain to the cloud. + released_version: 1.98.0 name_pretty_override: Managed Service for Microsoft Active Directory product_documentation_override: https://cloud.google.com/managed-microsoft-ad/ - released_version: 1.98.0 - name: managedkafka version: 0.56.0 apis: @@ -2915,10 +2915,10 @@ libraries: api_id_override: managedkafka.googleapis.com api_description_override: Manage Apache Kafka clusters and resources. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-managedkafka/latest/overview + released_version: 0.56.0 library_type_override: GAPIC_AUTO name_pretty_override: Managed Service for Apache Kafka product_documentation_override: https://cloud.google.com/managed-kafka - released_version: 0.56.0 - name: maps-addressvalidation version: 0.94.0 apis: @@ -2928,9 +2928,9 @@ libraries: api_description_override: The Address Validation API allows developers to verify the accuracy of addresses. Given an address, it returns information about the correctness of the components of the parsed address, a geocode, and a verdict on the deliverability of the parsed address. api_shortname_override: maps-addressvalidation artifact_id: google-maps-addressvalidation + released_version: 0.94.0 name_pretty_override: Address Validation API product_documentation_override: https://developers.google.com/maps/documentation/address-validation/ - released_version: 0.94.0 - name: maps-area-insights version: 0.51.0 apis: @@ -2941,10 +2941,10 @@ libraries: api_shortname_override: maps-area-insights artifact_id: google-maps-area-insights client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-area-insights/latest/overview + released_version: 0.51.0 library_type_override: GAPIC_AUTO name_pretty_override: Places Insights API product_documentation_override: https://developers.google.com/maps/documentation/places-insights - released_version: 0.51.0 - name: maps-fleetengine version: 0.47.0 apis: @@ -2955,10 +2955,10 @@ libraries: api_shortname_override: maps-fleetengine artifact_id: google-maps-fleetengine client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine/latest/overview + released_version: 0.47.0 library_type_override: GAPIC_AUTO name_pretty_override: Local Rides and Deliveries API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - released_version: 0.47.0 - name: maps-fleetengine-delivery version: 0.47.0 apis: @@ -2969,10 +2969,10 @@ libraries: api_shortname_override: maps-fleetengine-delivery artifact_id: google-maps-fleetengine-delivery client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-fleetengine-delivery/latest/overview + released_version: 0.47.0 library_type_override: GAPIC_AUTO name_pretty_override: Last Mile Fleet Solution Delivery API product_documentation_override: https://developers.google.com/maps/documentation/transportation-logistics/mobility - released_version: 0.47.0 - name: maps-geocode version: 0.12.0 apis: @@ -2982,10 +2982,10 @@ libraries: api_description_override: The Geocoding API is a service that accepts a place as an address, latitude and longitude coordinates, or Place ID. artifact_id: google-maps-geocode client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-geocode/latest/overview + released_version: 0.12.0 library_type_override: GAPIC_AUTO name_pretty_override: Geocoding API product_documentation_override: https://developers.google.com/maps/documentation/geocoding/overview - released_version: 0.12.0 - name: maps-isochrones version: 0.6.0 apis: @@ -3005,10 +3005,10 @@ libraries: artifact_id: google-maps-mapmanagement client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-mapmanagement/latest/overview group_id: com.google.maps + released_version: 0.9.0 library_type_override: GAPIC_AUTO name_pretty_override: Map Management API product_documentation_override: https://developers.google.com/maps/documentation/mapmanagement/overview - released_version: 0.9.0 - name: maps-mapsplatformdatasets version: 0.89.0 apis: @@ -3020,9 +3020,9 @@ libraries: that they can use to enrich their experience of Maps Platform solutions (e.g. styling, routing). api_shortname_override: maps-mapsplatformdatasets artifact_id: google-maps-mapsplatformdatasets + released_version: 0.89.0 name_pretty_override: Maps Platform Datasets API product_documentation_override: https://developers.google.com/maps/documentation - released_version: 0.89.0 - name: maps-navconnect version: 0.6.0 apis: @@ -3042,9 +3042,9 @@ libraries: api_description_override: The Places API allows developers to access a variety of search and retrieval endpoints for a Place. api_shortname_override: maps-places artifact_id: google-maps-places + released_version: 0.71.0 name_pretty_override: Places API (New) product_documentation_override: https://developers.google.com/maps/documentation/places/web-service/ - released_version: 0.71.0 - name: maps-routeoptimization version: 0.58.0 apis: @@ -3054,10 +3054,10 @@ libraries: api_description_override: The Route Optimization API assigns tasks and routes to a vehicle fleet, optimizing against the objectives and constraints that you supply for your transportation goals. artifact_id: google-maps-routeoptimization client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-routeoptimization/latest/overview + released_version: 0.58.0 library_type_override: GAPIC_AUTO name_pretty_override: Route Optimization API product_documentation_override: https://developers.google.com/maps/documentation/route-optimization - released_version: 0.58.0 - name: maps-routing version: 1.85.0 apis: @@ -3067,9 +3067,9 @@ libraries: api_description_override: Routes API is the next generation, performance optimized version of the existing Directions API and Distance Matrix API. It helps you find the ideal route from A to Z, calculates ETAs and distances for matrices of origin and destination locations, and also offers new features. api_shortname_override: maps-routing artifact_id: google-maps-routing + released_version: 1.85.0 name_pretty_override: Routes API product_documentation_override: https://developers.google.com/maps/documentation/routes - released_version: 1.85.0 - name: maps-solar version: 0.59.0 apis: @@ -3080,10 +3080,10 @@ libraries: api_shortname_override: maps-solar artifact_id: google-maps-solar client_documentation_override: https://cloud.google.com/java/docs/reference/google-maps-solar/latest/overview + released_version: 0.59.0 library_type_override: GAPIC_AUTO name_pretty_override: Solar API product_documentation_override: https://developers.google.com/maps/documentation/solar/overview - released_version: 0.59.0 - name: marketingplatformadminapi version: 0.49.0 apis: @@ -3096,20 +3096,20 @@ libraries: artifact_id: admin client_documentation_override: https://cloud.google.com/java/docs/reference/admin/latest/overview group_id: com.google.ads-marketingplatform + released_version: 0.49.0 library_type_override: GAPIC_AUTO name_pretty_override: Google Marketing Platform Admin API product_documentation_override: https://developers.google.com/analytics/devguides/config/gmp/v1 - released_version: 0.49.0 - name: mediatranslation version: 0.106.0 apis: - path: google/cloud/mediatranslation/v1beta1 java: api_description_override: provides enterprise quality translation from/to various media types. + released_version: 0.106.0 name_pretty_override: Media Translation API product_documentation_override: https://cloud.google.com/ billing_not_required: true - released_version: 0.106.0 - name: meet version: 0.67.0 apis: @@ -3117,9 +3117,9 @@ libraries: - path: google/apps/meet/v2beta java: api_description_override: The Google Meet REST API lets you create and manage meetings for Google Meet and offers entry points to your users directly from your app + released_version: 0.67.0 name_pretty_override: Google Meet API product_documentation_override: https://developers.google.com/meet/api/guides/overview - released_version: 0.67.0 - name: memcache version: 2.100.0 apis: @@ -3133,10 +3133,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a fully-managed in-memory data store service for Memcache. + released_version: 2.100.0 name_pretty_override: Cloud Memcache product_documentation_override: https://cloud.google.com/memorystore/ billing_not_required: true - released_version: 2.100.0 - name: migrationcenter version: 0.82.0 apis: @@ -3146,9 +3146,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud Migration Center is a unified platform that helps you accelerate your end-to-end cloud journey from your current on-premises or cloud environments to Google Cloud + released_version: 0.82.0 name_pretty_override: Migration Center API product_documentation_override: https://cloud.google.com/migration-center/docs/migration-center-overview - released_version: 0.82.0 - name: modelarmor version: 0.41.0 apis: @@ -3164,10 +3164,10 @@ libraries: api_id_override: modelarmor.googleapis.com api_description_override: Model Armor helps you protect against risks like prompt injection, harmful content, and data leakage in generative AI applications by letting you define policies that filter user prompts and model responses. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-modelarmor/latest/overview + released_version: 0.41.0 library_type_override: GAPIC_AUTO name_pretty_override: Model Armor API product_documentation_override: https://cloud.google.com/security-command-center/docs/model-armor-overview - released_version: 0.41.0 - name: monitoring version: 3.101.0 apis: @@ -3214,9 +3214,9 @@ libraries: replacement: ResourceName java: api_description_override: collects metrics, events, and metadata from Google Cloud, Amazon Web Services (AWS), hosted uptime probes, and application instrumentation. Using the BindPlane service, you can also collect this data from over 150 common application components, on-premise systems, and hybrid cloud systems. Stackdriver ingests that data and generates insights via dashboards, charts, and alerts. BindPlane is included with your Google Cloud project at no additional cost. + released_version: 3.101.0 name_pretty_override: Stackdriver Monitoring product_documentation_override: https://cloud.google.com/monitoring/docs - released_version: 3.101.0 - name: monitoring-dashboards version: 2.102.0 apis: @@ -3230,9 +3230,9 @@ libraries: api_description_override: are one way for you to view and analyze metric data. The Cloud Console provides predefined dashboards that require no setup or configuration. You can also define custom dashboards. With custom dashboards, you have complete control over the charts that are displayed and their configuration. api_shortname_override: monitoring-dashboards artifact_id: google-cloud-monitoring-dashboard + released_version: 2.102.0 name_pretty_override: Monitoring Dashboards product_documentation_override: https://cloud.google.com/monitoring/charts/dashboards - released_version: 2.102.0 - name: monitoring-metricsscope version: 0.94.0 apis: @@ -3241,9 +3241,9 @@ libraries: api_id_override: monitoring.googleapis.com api_description_override: The metrics scope defines the set of Google Cloud projects whose metrics the current Google Cloud project can access. api_shortname_override: monitoring-metricsscope + released_version: 0.94.0 name_pretty_override: Monitoring Metrics Scopes product_documentation_override: https://cloud.google.com/monitoring/api/ref_v3/rest/v1/locations.global.metricsScopes - released_version: 0.94.0 - name: netapp version: 0.79.0 apis: @@ -3253,9 +3253,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Google Cloud NetApp Volumes is a fully-managed, cloud-based data storage service that provides advanced data management capabilities and highly scalable performance with global availability. + released_version: 0.79.0 name_pretty_override: NetApp API product_documentation_override: https://cloud.google.com/netapp/volumes/docs/discover/overview - released_version: 0.79.0 - name: network-management version: 1.101.0 apis: @@ -3509,9 +3509,9 @@ libraries: public void testIamPermissionsTest() throws Exception { java: api_description_override: provides a collection of network performance monitoring and diagnostic capabilities. + released_version: 1.101.0 name_pretty_override: Network Management API product_documentation_override: https://cloud.google.com/network-intelligence-center/docs/connectivity-tests/reference/networkmanagement/rest/ - released_version: 1.101.0 - name: network-security version: 0.103.0 apis: @@ -3527,9 +3527,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: n/a + released_version: 0.103.0 name_pretty_override: Network Security API product_documentation_override: https://cloud.google.com/traffic-director/docs/reference/network-security/rest - released_version: 0.103.0 - name: networkconnectivity version: 1.99.0 apis: @@ -3546,9 +3546,9 @@ libraries: - path: google/cloud/networkconnectivity/v1alpha1 java: api_description_override: Google's suite of products that provide enterprise connectivity from your on-premises network or from another cloud provider to your Virtual Private Cloud (VPC) network + released_version: 1.99.0 name_pretty_override: Network Connectivity Center product_documentation_override: https://cloud.google.com/network-connectivity/docs - released_version: 1.99.0 - name: networkservices version: 0.56.0 apis: @@ -3566,10 +3566,10 @@ libraries: api_id_override: networkservices.googleapis.com api_description_override: Google Cloud offers a broad portfolio of networking services built on top of planet-scale infrastructure that leverages automation, advanced AI, and programmability, enabling enterprises to connect, scale, secure, modernize and optimize their infrastructure. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-networkservices/latest/overview + released_version: 0.56.0 library_type_override: GAPIC_AUTO name_pretty_override: Network Services API product_documentation_override: https://cloud.google.com/products/networking - released_version: 0.56.0 - name: notebooks version: 1.98.0 apis: @@ -3590,18 +3590,18 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: is a managed service that offers an integrated and secure JupyterLab environment for data scientists and machine learning developers to experiment, develop, and deploy models into production. Users can create instances running JupyterLab that come pre-installed with the latest data science and machine learning frameworks in a single click. + released_version: 1.98.0 name_pretty_override: AI Platform Notebooks product_documentation_override: https://cloud.google.com/ai-platform-notebooks - released_version: 1.98.0 - name: optimization version: 1.98.0 apis: - path: google/cloud/optimization/v1 java: api_description_override: is a managed routing service that takes your list of orders, vehicles, constraints, and objectives and returns the most efficient plan for your entire fleet in near real-time. + released_version: 1.98.0 name_pretty_override: Cloud Fleet Routing product_documentation_override: https://cloud.google.com/optimization/docs - released_version: 1.98.0 - name: oracledatabase version: 0.49.0 apis: @@ -3613,10 +3613,10 @@ libraries: api_id_override: oracledatabase.googleapis.com api_description_override: The Oracle Database@Google Cloud API provides a set of APIs to manage Oracle database services, such as Exadata and Autonomous Databases. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-oracledatabase/latest/overview + released_version: 0.49.0 library_type_override: GAPIC_AUTO name_pretty_override: Oracle Database@Google Cloud API product_documentation_override: https://cloud.google.com/oracle/database/docs - released_version: 0.49.0 - name: orchestration-airflow version: 1.100.0 apis: @@ -3626,9 +3626,9 @@ libraries: api_id_override: composer.googleapis.com api_description_override: is a managed Apache Airflow service that helps you create, schedule, monitor and manage workflows. Cloud Composer automation helps you create Airflow environments quickly and use Airflow-native tools, such as the powerful Airflow web interface and command line tools, so you can focus on your workflows and not your infrastructure. api_shortname_override: orchestration-airflow + released_version: 1.100.0 name_pretty_override: Cloud Composer product_documentation_override: https://cloud.google.com/composer/docs - released_version: 1.100.0 - name: orgpolicy version: 2.100.0 apis: @@ -3642,9 +3642,9 @@ libraries: java: api_description_override: n/a client_documentation_override: https://cloud.google.com/java/docs/reference/proto-google-cloud-orgpolicy-v1/latest/overview + released_version: 2.100.0 name_pretty_override: Cloud Organization Policy product_documentation_override: n/a - released_version: 2.100.0 - name: os-config version: 2.102.0 apis: @@ -3654,10 +3654,10 @@ libraries: java: api_id_override: osconfig.googleapis.com api_description_override: provides OS management tools that can be used for patch management, patch compliance, and configuration management on VM instances. + released_version: 2.102.0 name_pretty_override: OS Config API product_documentation_override: https://cloud.google.com/compute/docs/os-patch-management billing_not_required: true - released_version: 2.102.0 - name: os-login version: 2.99.0 apis: @@ -3730,9 +3730,9 @@ libraries: dst: proto-google-cloud-os-login-v1/src/main/java/com/google/cloud/oslogin/v1/UserName.java java: api_description_override: manages OS login configuration for Directory API users. + released_version: 2.99.0 name_pretty_override: Cloud OS Login product_documentation_override: https://cloud.google.com/compute/docs/oslogin/ - released_version: 2.99.0 - name: parallelstore version: 0.63.0 apis: @@ -3748,10 +3748,10 @@ libraries: api_id_override: parallelstore.googleapis.com api_description_override: 'Parallelstore is based on Intel DAOS and delivers up to 6.3x greater read throughput performance compared to competitive Lustre scratch offerings. ' client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parallelstore/latest/overview + released_version: 0.63.0 library_type_override: GAPIC_AUTO name_pretty_override: Parallelstore API product_documentation_override: https://cloud/parallelstore?hl=en - released_version: 0.63.0 - name: parametermanager version: 0.44.0 apis: @@ -3763,20 +3763,20 @@ libraries: api_id_override: parametermanager.googleapis.com api_description_override: (Public Preview) Parameter Manager is a single source of truth to store, access and manage the lifecycle of your workload parameters. Parameter Manager aims to make management of sensitive application parameters effortless for customers without diminishing focus on security. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-parametermanager/latest/overview + released_version: 0.44.0 library_type_override: GAPIC_AUTO name_pretty_override: Parameter Manager API product_documentation_override: https://cloud.google.com/secret-manager/parameter-manager/docs/overview - released_version: 0.44.0 - name: phishingprotection version: 0.131.0 apis: - path: google/cloud/phishingprotection/v1beta1 java: api_description_override: helps prevent users from accessing phishing sites by identifying various signals associated with malicious content, including the use of your brand assets, classifying malicious content that uses your brand and reporting the unsafe URLs to Google Safe Browsing. Once a site is propagated to Safe Browsing, users will see warnings across more than 4 billion devices. + released_version: 0.131.0 name_pretty_override: Phishing Protection product_documentation_override: https://cloud.google.com/phishing-protection/docs/ billing_not_required: true - released_version: 0.131.0 - name: policy-troubleshooter version: 1.99.0 apis: @@ -3785,18 +3785,18 @@ libraries: java: api_id_override: policytroubleshooter.googleapis.com api_description_override: makes it easier to understand why a user has access to a resource or doesn't have permission to call an API. Given an email, resource, and permission, Policy Troubleshooter examines all Identity and Access Management (IAM) policies that apply to the resource. It then reveals whether the member's roles include the permission on that resource and, if so, which policies bind the member to those roles. + released_version: 1.99.0 name_pretty_override: IAM Policy Troubleshooter API product_documentation_override: https://cloud.google.com/iam/docs/troubleshooting-access - released_version: 1.99.0 - name: policysimulator version: 0.79.0 apis: - path: google/cloud/policysimulator/v1 java: api_description_override: Policy Simulator is a collection of endpoints for creating, running, and viewing a Replay. + released_version: 0.79.0 name_pretty_override: Policy Simulator API product_documentation_override: https://cloud.google.com/policysimulator/docs/overview - released_version: 0.79.0 - name: private-catalog version: 0.102.0 apis: @@ -3804,9 +3804,9 @@ libraries: java: api_id_override: privatecatalog.googleapis.com api_description_override: allows developers and cloud admins to make their solutions discoverable to their internal enterprise users. Cloud admins can manage their solutions and ensure their users are always launching the latest versions. + released_version: 0.102.0 name_pretty_override: Private Catalog product_documentation_override: https://cloud.google.com/private-catalog/docs - released_version: 0.102.0 - name: privilegedaccessmanager version: 0.54.0 apis: @@ -3818,10 +3818,10 @@ libraries: api_id_override: privilegedaccessmanager.googleapis.com api_description_override: Privileged Access Manager (PAM) helps you on your journey towards least privilege and helps mitigate risks tied to privileged access misuse orabuse. PAM allows you to shift from always-on standing privileges towards on-demand access with just-in-time, time-bound, and approval-based access elevations. PAM allows IAM administrators to create entitlements that can grant just-in-time, temporary access to any resource scope. Requesters can explore eligible entitlements and request the access needed for their task. Approvers are notified when approvals await their decision. Streamlined workflows facilitated by using PAM can support various use cases, including emergency access for incident responders, time-boxed access for developers for critical deployment or maintenance, temporary access for operators for data ingestion and audits, JIT access to service accounts for automated tasks, and more. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview + released_version: 0.54.0 library_type_override: GAPIC_AUTO name_pretty_override: Privileged Access Manager API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-privilegedaccessmanager/latest/overview - released_version: 0.54.0 - name: productregistry version: 0.6.0 apis: @@ -3835,9 +3835,9 @@ libraries: java: api_id_override: cloudprofiler.googleapis.com api_description_override: is a statistical, low-overhead profiler that continuously gathers CPU usage and memory-allocation information from your production applications. It attributes that information to the application's source code, helping you identify the parts of the application consuming the most resources, and otherwise illuminating the performance characteristics of the code. + released_version: 2.100.0 name_pretty_override: Cloud Profiler product_documentation_override: https://cloud.google.com/profiler/docs - released_version: 2.100.0 - name: publicca version: 0.97.0 apis: @@ -3845,9 +3845,9 @@ libraries: - path: google/cloud/security/publicca/v1beta1 java: api_description_override: The Public Certificate Authority API may be used to create and manage ACME external account binding keys associated with Google Trust Services' publicly trusted certificate authority. + released_version: 0.97.0 name_pretty_override: Public Certificate Authority API product_documentation_override: https://cloud.google.com/certificate-manager/docs/public-ca - released_version: 0.97.0 - name: pubsub version: 1.158.0 apis: @@ -5008,11 +5008,11 @@ libraries: client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-pubsub/latest/history codeowner_team: '@googleapis/pubsub-team' issue_tracker_override: https://issuetracker.google.com/savedsearches/559741 + released_version: 1.158.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Pub/Sub product_documentation_override: https://cloud.google.com/pubsub/docs/ recommended_package: com.google.cloud.pubsub.v1 - released_version: 1.158.0 - name: rapidmigrationassessment version: 0.83.0 apis: @@ -5022,9 +5022,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Rapid Migration Assessment API + released_version: 0.83.0 name_pretty_override: Rapid Migration Assessment API product_documentation_override: https://cloud.google.com/migration-center/docs - released_version: 0.83.0 - name: recaptchaenterprise version: 3.97.0 apis: @@ -5032,19 +5032,19 @@ libraries: - path: google/cloud/recaptchaenterprise/v1beta1 java: api_description_override: is a service that protects your site from spam and abuse. + released_version: 3.97.0 name_pretty_override: reCAPTCHA Enterprise product_documentation_override: https://cloud.google.com/recaptcha-enterprise/docs/ billing_not_required: true - released_version: 3.97.0 - name: recommendations-ai version: 0.107.0 apis: - path: google/cloud/recommendationengine/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. + released_version: 0.107.0 name_pretty_override: Recommendations AI product_documentation_override: https://cloud.google.com/recommendations-ai/ - released_version: 0.107.0 - name: recommender version: 2.102.0 apis: @@ -5052,9 +5052,9 @@ libraries: - path: google/cloud/recommender/v1beta1 java: api_description_override: delivers highly personalized product recommendations at scale. + released_version: 2.102.0 name_pretty_override: Recommender product_documentation_override: https://cloud.google.com/recommendations/ - released_version: 2.102.0 - name: redis version: 2.103.0 apis: @@ -5066,9 +5066,9 @@ libraries: java: api_description_override: is a fully managed Redis service for the Google Cloud. Applications running on Google Cloud can achieve extreme performance by leveraging the highly scalable, available, secure Redis service without the burden of managing complex Redis deployments. issue_tracker_override: https://issuetracker.google.com/savedsearches/5169231 + released_version: 2.103.0 name_pretty_override: Cloud Redis product_documentation_override: https://cloud.google.com/memorystore/docs/redis/ - released_version: 2.103.0 - name: redis-cluster version: 0.72.0 apis: @@ -5083,9 +5083,9 @@ libraries: java: api_description_override: Creates and manages Redis instances on the Google Cloud Platform. api_shortname_override: redis-cluster + released_version: 0.72.0 name_pretty_override: Google Cloud Memorystore for Redis API product_documentation_override: https://cloud.google.com/memorystore/docs/cluster - released_version: 0.72.0 - name: resourcemanager version: 1.102.0 apis: @@ -5094,10 +5094,10 @@ libraries: omit_common_resources: true java: api_description_override: enables you to programmatically manage resources by project, folder, and organization. + released_version: 1.102.0 name_pretty_override: Resource Manager API product_documentation_override: https://cloud.google.com/resource-manager billing_not_required: true - released_version: 1.102.0 - name: retail version: 2.102.0 apis: @@ -5115,9 +5115,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Retail solutions API. + released_version: 2.102.0 name_pretty_override: Cloud Retail product_documentation_override: https://cloud.google.com/solutions/retail - released_version: 2.102.0 - name: run version: 0.100.0 apis: @@ -5127,9 +5127,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: is a managed compute platform that enables you to run containers that are invocable via requests or events. + released_version: 0.100.0 name_pretty_override: Cloud Run product_documentation_override: https://cloud.google.com/run/docs - released_version: 0.100.0 - name: saasservicemgmt version: 0.30.0 apis: @@ -5141,10 +5141,10 @@ libraries: api_id_override: saasservicemgmt.googleapis.com api_description_override: "Model, deploy, and operate your SaaS at scale.\t" client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-saasservicemgmt/latest/overview + released_version: 0.30.0 library_type_override: GAPIC_AUTO name_pretty_override: App Lifecycle Manager product_documentation_override: https://cloud.google.com/saas-runtime/docs/overview - released_version: 0.30.0 - name: scheduler version: 2.100.0 apis: @@ -5161,10 +5161,10 @@ libraries: - proto-google-cloud-scheduler-v1beta1/src/main/java/com/google/cloud/scheduler/v1beta1/ProjectName.java java: api_description_override: lets you set up scheduled units of work to be executed at defined times or regular intervals. These work units are commonly known as cron jobs. Typical use cases might include sending out a report email on a daily basis, updating some cached data every 10 minutes, or updating some summary information once an hour. + released_version: 2.100.0 name_pretty_override: Google Cloud Scheduler product_documentation_override: https://cloud.google.com/scheduler/docs billing_not_required: true - released_version: 2.100.0 - name: secretmanager version: 2.100.0 apis: @@ -5179,10 +5179,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows you to encrypt, store, manage, and audit infrastructure and application-level secrets. + released_version: 2.100.0 name_pretty_override: Secret Management product_documentation_override: https://cloud.google.com/solutions/secrets-management/ billing_not_required: true - released_version: 2.100.0 - name: securesourcemanager version: 0.70.0 apis: @@ -5195,9 +5195,9 @@ libraries: api_description_override: |- Regionally deployed, single-tenant managed source code repository hosted on Google Cloud. + released_version: 0.70.0 name_pretty_override: Secure Source Manager API product_documentation_override: https://cloud.google.com/secure-source-manager/docs/overview - released_version: 0.70.0 - name: security-private-ca version: 2.102.0 apis: @@ -5210,9 +5210,9 @@ libraries: java: api_id_override: privateca.googleapis.com api_description_override: simplifies the deployment and management of private CAs without managing infrastructure. + released_version: 2.102.0 name_pretty_override: Certificate Authority Service product_documentation_override: https://cloud.google.com/certificate-authority-service/docs - released_version: 2.102.0 - name: securitycenter version: 2.108.0 apis: @@ -5229,10 +5229,10 @@ libraries: java: api_description_override: makes it easier for you to prevent, detect, and respond to threats. Identify security misconfigurations in virtual machines, networks, applications, and storage buckets from a centralized dashboard. Take action on them before they can potentially result in business damage or loss. Built-in capabilities can quickly surface suspicious activity in your Stackdriver security logs or indicate compromised virtual machines. Respond to threats by following actionable recommendations or exporting logs to your SIEM for further investigation. issue_tracker_override: https://issuetracker.google.com/savedsearches/559748 + released_version: 2.108.0 name_pretty_override: Security Command Center product_documentation_override: https://cloud.google.com/security-command-center billing_not_required: true - released_version: 2.108.0 - name: securitycenter-settings version: 0.103.0 apis: @@ -5240,10 +5240,10 @@ libraries: java: api_id_override: securitycenter-settings.googleapis.com api_description_override: is the canonical security and data risk database for Google Cloud. Security Command Center enables you to understand your security and data attack surface by providing asset inventory, discovery, search, and management. + released_version: 0.103.0 name_pretty_override: Security Command Center Settings API product_documentation_override: https://cloud.google.com/security-command-center/ billing_not_required: true - released_version: 0.103.0 - name: securitycentermanagement version: 0.68.0 apis: @@ -5253,9 +5253,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Center Management API + released_version: 0.68.0 name_pretty_override: Security Center Management API product_documentation_override: https://cloud.google.com/securitycentermanagement/docs/overview - released_version: 0.68.0 - name: securityposture version: 0.65.0 apis: @@ -5265,9 +5265,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Security Posture is a comprehensive framework of policy sets that empowers organizations to define, assess early, deploy, and monitor their security measures in a unified way and helps simplify governance and reduces administrative toil. + released_version: 0.65.0 name_pretty_override: Security Posture API product_documentation_override: https://cloud.google.com/security-command-center/docs/security-posture-overview - released_version: 0.65.0 - name: service-control version: 1.100.0 apis: @@ -5275,9 +5275,9 @@ libraries: - path: google/api/servicecontrol/v1 java: api_description_override: ' is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway.' + released_version: 1.100.0 name_pretty_override: Service Control API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - released_version: 1.100.0 - name: service-management version: 3.98.0 apis: @@ -5290,9 +5290,9 @@ libraries: java: api_id_override: servicemanagement.googleapis.com api_description_override: is a foundational platform for creating, managing, securing, and consuming APIs and services across organizations. It is used by Google APIs, Cloud APIs, Cloud Endpoints, and API Gateway. Service Infrastructure provides a wide range of features to service consumers and service producers, including authentication, authorization, auditing, rate limiting, analytics, billing, logging, and monitoring. + released_version: 3.98.0 name_pretty_override: Service Management API product_documentation_override: https://cloud.google.com/service-infrastructure/docs/overview/ - released_version: 3.98.0 - name: service-usage version: 2.100.0 apis: @@ -5300,9 +5300,9 @@ libraries: - path: google/api/serviceusage/v1beta1 java: api_description_override: is an infrastructure service of Google Cloud that lets you list and manage other APIs and services in your Cloud projects. + released_version: 2.100.0 name_pretty_override: Service Usage product_documentation_override: https://cloud.google.com/service-usage/docs/overview - released_version: 2.100.0 - name: servicedirectory version: 2.101.0 apis: @@ -5316,10 +5316,10 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: allows the registration and lookup of service endpoints. + released_version: 2.101.0 name_pretty_override: Service Directory product_documentation_override: https://cloud.google.com/service-directory/ billing_not_required: true - released_version: 2.101.0 - name: servicehealth version: 0.67.0 apis: @@ -5329,9 +5329,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Personalized Service Health helps you gain visibility into disruptive events impacting Google Cloud products. + released_version: 0.67.0 name_pretty_override: Service Health API product_documentation_override: https://cloud.google.com/service-health/docs/overview - released_version: 0.67.0 - name: shell version: 2.99.0 apis: @@ -5339,9 +5339,9 @@ libraries: java: api_description_override: is an interactive shell environment for Google Cloud that makes it easy for you to learn and experiment with Google Cloud and manage your projects and resources from your web browser. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.99.0 name_pretty_override: Cloud Shell product_documentation_override: https://cloud.google.com/shell/docs - released_version: 2.99.0 - name: shopping-css version: 0.68.0 apis: @@ -5349,9 +5349,9 @@ libraries: java: api_description_override: The CSS API is used to manage your CSS and control your CSS Products portfolio artifact_id: google-shopping-css + released_version: 0.68.0 name_pretty_override: CSS API product_documentation_override: https://developers.google.com/comparison-shopping-services/api - released_version: 0.68.0 - name: shopping-merchant-accounts version: 1.28.0 apis: @@ -5362,10 +5362,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-accounts client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-accounts/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-conversions version: 1.28.0 apis: @@ -5377,10 +5377,10 @@ libraries: api_shortname_override: shopping-merchant-conversions artifact_id: google-shopping-merchant-conversions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-conversions/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Conversions API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-datasources version: 1.28.0 apis: @@ -5391,10 +5391,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-datasources client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-datasources/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-inventories version: 1.28.0 apis: @@ -5403,9 +5403,9 @@ libraries: java: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-inventories + released_version: 1.28.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-issue-resolution version: 1.28.0 apis: @@ -5416,10 +5416,10 @@ libraries: api_description_override: Programatically manage your Merchant Issues artifact_id: google-shopping-merchant-issue-resolution client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-issue-resolution/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Issue Resolution API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-lfp version: 1.28.0 apis: @@ -5431,10 +5431,10 @@ libraries: api_shortname_override: shopping-merchant-lfp artifact_id: google-shopping-merchant-lfp client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-lfp/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant LFP API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-loyaltycustomers version: 0.4.0 apis: @@ -5454,10 +5454,10 @@ libraries: api_shortname_override: shopping-merchant-notifications artifact_id: google-shopping-merchant-notifications client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-notifications/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Notifications API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-order-tracking version: 1.28.0 apis: @@ -5468,10 +5468,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center Accounts artifact_id: google-shopping-merchant-order-tracking client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-order-tracking/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Order Tracking API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-product-studio version: 0.40.0 apis: @@ -5481,10 +5481,10 @@ libraries: api_description_override: Programmatically manage your products. artifact_id: google-shopping-merchant-productstudio client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-productstudio/latest/overview + released_version: 0.40.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 0.40.0 - name: shopping-merchant-products version: 1.28.0 apis: @@ -5495,10 +5495,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-products client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-products/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-promotions version: 1.28.0 apis: @@ -5509,10 +5509,10 @@ libraries: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-promotions client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-promotions/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-quota version: 1.28.0 apis: @@ -5524,10 +5524,10 @@ libraries: api_shortname_override: shopping-merchant-quota artifact_id: google-shopping-merchant-quota client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-quota/latest/overview + released_version: 1.28.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant Quota API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-reports version: 1.28.0 apis: @@ -5537,9 +5537,9 @@ libraries: java: api_description_override: Programmatically manage your Merchant Center accounts. artifact_id: google-shopping-merchant-reports + released_version: 1.28.0 name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 1.28.0 - name: shopping-merchant-reviews version: 0.46.0 apis: @@ -5550,10 +5550,10 @@ libraries: artifact_id: google-shopping-merchant-reviews client_documentation_override: https://cloud.google.com/java/docs/reference/google-shopping-merchant-reviews/latest/overview group_id: com.google.shopping + released_version: 0.46.0 library_type_override: GAPIC_AUTO name_pretty_override: Merchant API product_documentation_override: https://developers.google.com/merchant/api - released_version: 0.46.0 - name: showcase version: 0.0.1-SNAPSHOT apis: @@ -5616,12 +5616,12 @@ libraries: - google-cloud-spanner-bom - google-cloud-spanner issue_tracker_override: https://issuetracker.google.com/issues?q=componentid:190851%2B%20status:open + released_version: 6.125.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Spanner product_documentation_override: https://cloud.google.com/spanner/docs/ recommended_package: com.google.cloud.spanner transport_override: grpc - released_version: 6.125.0 - name: spanneradapter version: 0.36.0 apis: @@ -5631,10 +5631,10 @@ libraries: api_description_override: The Cloud Spanner Adapter service allows native drivers of supported database dialects to interact directly with Cloud Spanner by wrapping the underlying wire protocol used by the driver in a gRPC stream. api_shortname_override: spanneradapter client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview + released_version: 0.36.0 library_type_override: GAPIC_AUTO name_pretty_override: Cloud Spanner Adapter API product_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-spanneradapter/latest/overview - released_version: 0.36.0 - name: speech version: 4.95.0 apis: @@ -5651,10 +5651,10 @@ libraries: - google-cloud-speech/src/test/resources/hello.flac java: api_description_override: enables easy integration of Google speech recognition technologies into developer applications. Send audio and receive a text transcription from the Speech-to-Text API service. + released_version: 4.95.0 name_pretty_override: Cloud Speech product_documentation_override: https://cloud.google.com/speech-to-text/docs/ billing_not_required: true - released_version: 4.95.0 - name: sql version: 0.6.0 apis: @@ -5702,21 +5702,21 @@ libraries: - google-cloud-storage-bom - google-cloud-storage issue_tracker_override: https://issuetracker.google.com/savedsearches/559782 + released_version: 2.76.0 library_type_override: GAPIC_COMBO name_pretty_override: Cloud Storage product_documentation_override: https://cloud.google.com/storage recommended_package: com.google.cloud.storage transport_override: rest - released_version: 2.76.0 - name: storage-transfer version: 1.100.0 apis: - path: google/storagetransfer/v1 java: api_description_override: Secure, low-cost services for transferring data from cloud or on-premises sources. + released_version: 1.100.0 name_pretty_override: Storage Transfer Service product_documentation_override: https://cloud.google.com/storage-transfer-service - released_version: 1.100.0 - name: storagebatchoperations version: 0.40.0 apis: @@ -5728,10 +5728,10 @@ libraries: api_id_override: storagebatchoperations.googleapis.com api_description_override: Storage batch operations is a Cloud Storage management feature that performs operations on billions of Cloud Storage objects in a serverless manner. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-storagebatchoperations/latest/overview + released_version: 0.40.0 library_type_override: GAPIC_AUTO name_pretty_override: Storage Batch Operations API product_documentation_override: https://cloud.google.com/storage/docs/batch-operations/overview - released_version: 0.40.0 - name: storageinsights version: 0.85.0 apis: @@ -5741,9 +5741,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: Provides insights capability on Google Cloud Storage + released_version: 0.85.0 name_pretty_override: Storage Insights API product_documentation_override: https://cloud.google.com/storage/docs/insights/storage-insights/ - released_version: 0.85.0 - name: talent version: 2.101.0 apis: @@ -5751,9 +5751,9 @@ libraries: - path: google/cloud/talent/v4beta1 java: api_description_override: allows you to transform your job search and candidate matching capabilities with Cloud Talent Solution, designed to support enterprise talent acquisition technology and evolve with your growing needs. This AI solution includes features such as Job Search and Profile Search (Beta) to provide candidates and employers with an enhanced talent acquisition experience. Learn more about Cloud Talent Solution from the product overview page. + released_version: 2.101.0 name_pretty_override: Talent Solution product_documentation_override: https://cloud.google.com/solutions/talent-solution/ - released_version: 2.101.0 - name: tasks version: 2.100.0 apis: @@ -5863,9 +5863,9 @@ libraries: java: api_description_override: a fully managed service that allows you to manage the execution, dispatch and delivery of a large number of distributed tasks. You can asynchronously perform work outside of a user request. Your tasks can be executed on App Engine or any arbitrary HTTP endpoint. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.100.0 name_pretty_override: Cloud Tasks product_documentation_override: https://cloud.google.com/tasks/docs/ - released_version: 2.100.0 - name: telcoautomation version: 0.70.0 apis: @@ -5879,9 +5879,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: APIs to automate 5G deployment and management of cloud infrastructure and network functions. + released_version: 0.70.0 name_pretty_override: Telco Automation API product_documentation_override: https://cloud.google.com/telecom-network-automation - released_version: 0.70.0 - name: texttospeech version: 2.101.0 apis: @@ -5892,10 +5892,10 @@ libraries: - google-cloud-texttospeech/src/test/java/com/google/cloud/texttospeech/v1beta1/TextToSpeechSmokeTest.java java: api_description_override: enables easy integration of Google text recognition technologies into developer applications. Send text and receive synthesized audio output from the Cloud Text-to-Speech API service. + released_version: 2.101.0 name_pretty_override: Cloud Text-to-Speech product_documentation_override: https://cloud.google.com/text-to-speech billing_not_required: true - released_version: 2.101.0 - name: tpu version: 2.101.0 apis: @@ -5913,9 +5913,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: are Google's custom-developed application-specific integrated circuits (ASICs) used to accelerate machine learning workloads. + released_version: 2.101.0 name_pretty_override: Cloud TPU product_documentation_override: https://cloud.google.com/tpu/docs - released_version: 2.101.0 - name: trace version: 2.100.0 apis: @@ -5926,10 +5926,10 @@ libraries: - google-cloud-trace/src/test/java/com/google/cloud/trace/v2/VPCServiceControlTest.java java: api_description_override: is a distributed tracing system that collects latency data from your applications and displays it in the Google Cloud Platform Console. You can track how requests propagate through your application and receive detailed near real-time performance insights. + released_version: 2.100.0 name_pretty_override: Stackdriver Trace product_documentation_override: https://cloud.google.com/trace/docs/ billing_not_required: true - released_version: 2.100.0 - name: translate version: 2.100.0 apis: @@ -5938,9 +5938,9 @@ libraries: java: api_id_override: translate.googleapis.com api_description_override: can dynamically translate text between thousands of language pairs. Translation lets websites and programs programmatically integrate with the translation service. + released_version: 2.100.0 name_pretty_override: Cloud Translation product_documentation_override: https://cloud.google.com/translate/docs/ - released_version: 2.100.0 - name: valkey version: 0.46.0 apis: @@ -5956,10 +5956,10 @@ libraries: api_id_override: memorystore.googleapis.com api_description_override: Memorystore for Valkey is a fully managed Valkey Cluster service for Google Cloud. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-memorystore/latest/overview + released_version: 0.46.0 library_type_override: GAPIC_AUTO name_pretty_override: Memorystore API product_documentation_override: https://cloud.google.com/memorystore/docs/valkey - released_version: 0.46.0 - name: vectorsearch version: 0.22.0 apis: @@ -5975,10 +5975,10 @@ libraries: api_id_override: vectorsearch.googleapis.com api_description_override: The Vector Search API provides a fully-managed, highly performant, and scalable vector database designed to power next-generation search, recommendation, and generative AI applications. It allows you to store, index, and query your data and its corresponding vector embeddings through a simple, intuitive interface. With Vector Search, you can define custom schemas for your data, insert objects with associated metadata, automatically generate embeddings from your data, and perform fast approximate nearest neighbor (ANN) searches to find semantically similar items at scale. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview + released_version: 0.22.0 library_type_override: GAPIC_AUTO name_pretty_override: Vector Search API product_documentation_override: https://docs.cloud.google.com/vertex-ai/docs/vector-search/overview - released_version: 0.22.0 - name: video-intelligence version: 2.99.0 apis: @@ -5989,9 +5989,9 @@ libraries: - path: google/cloud/videointelligence/v1beta2 java: api_description_override: allows developers to use Google video analysis technology as part of their applications. + released_version: 2.99.0 name_pretty_override: Cloud Video Intelligence product_documentation_override: https://cloud.google.com/video-intelligence/docs/ - released_version: 2.99.0 - name: video-live-stream version: 0.102.0 apis: @@ -6002,18 +6002,18 @@ libraries: java: api_description_override: transcodes mezzanine live signals into direct-to-consumer streaming formats, including Dynamic Adaptive Streaming over HTTP (DASH/MPEG-DASH), and HTTP Live Streaming (HLS), for multiple device platforms. artifact_id: google-cloud-live-stream + released_version: 0.102.0 name_pretty_override: Live Stream API product_documentation_override: https://cloud.google.com/livestream/ - released_version: 0.102.0 - name: video-stitcher version: 0.100.0 apis: - path: google/cloud/video/stitcher/v1 java: api_description_override: allows you to manipulate video content to dynamically insert ads prior to delivery to client devices. + released_version: 0.100.0 name_pretty_override: Video Stitcher API product_documentation_override: https://cloud.google.com/video-stitcher/ - released_version: 0.100.0 - name: video-transcoder version: 1.99.0 apis: @@ -6021,9 +6021,9 @@ libraries: java: api_id_override: transcoder.googleapis.com api_description_override: allows you to transcode videos into a variety of formats. The Transcoder API benefits broadcasters, production companies, businesses, and individuals looking to transform their video content for use across a variety of user devices. + released_version: 1.99.0 name_pretty_override: Video Transcoder product_documentation_override: https://cloud.google.com/transcoder/docs - released_version: 1.99.0 - name: vision version: 3.98.0 apis: @@ -6044,9 +6044,9 @@ libraries: - proto-google-cloud-vision-v1/src/main/java/com/google/cloud/vision/v1/ImageName.java java: api_description_override: allows developers to easily integrate vision detection features within applications, including image labeling, face and landmark detection, optical character recognition (OCR), and tagging of explicit content. + released_version: 3.98.0 name_pretty_override: Cloud Vision product_documentation_override: https://cloud.google.com/vision/docs/ - released_version: 3.98.0 - name: visionai version: 0.57.0 apis: @@ -6059,10 +6059,10 @@ libraries: api_id_override: visionai.googleapis.com api_description_override: Vertex AI Vision is an AI-powered platform to ingest, analyze and store video data. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-visionai/latest/overview + released_version: 0.57.0 library_type_override: GAPIC_AUTO name_pretty_override: Vision AI API product_documentation_override: https://cloud.google.com/vision-ai/docs - released_version: 0.57.0 - name: vmmigration version: 1.100.0 apis: @@ -6073,9 +6073,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: helps customers migrating VMs to GCP at no additional cost, as well as an extensive ecosystem of partners to help with discovery and assessment, planning, migration, special use cases, and more. + released_version: 1.100.0 name_pretty_override: VM Migration product_documentation_override: n/a - released_version: 1.100.0 - name: vmwareengine version: 0.94.0 apis: @@ -6086,9 +6086,9 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Easily lift and shift your VMware-based applications to Google Cloud without changes to your apps, tools, or processes. + released_version: 0.94.0 name_pretty_override: Google Cloud VMware Engine product_documentation_override: https://cloud.google.com/vmware-engine/ - released_version: 0.94.0 - name: vpcaccess version: 2.101.0 apis: @@ -6098,9 +6098,9 @@ libraries: - path: google/cloud/location/locations.proto java: api_description_override: enables you to connect from a serverless environment on Google Cloud directly to your VPC network. This connection makes it possible for your serverless environment to access resources in your VPC network via internal IP addresses. + released_version: 2.101.0 name_pretty_override: Serverless VPC Access product_documentation_override: https://cloud.google.com/vpc/docs/serverless-vpc-access - released_version: 2.101.0 - name: webrisk version: 2.99.0 apis: @@ -6108,10 +6108,10 @@ libraries: - path: google/cloud/webrisk/v1beta1 java: api_description_override: is a Google Cloud service that lets client applications check URLs against Google's constantly updated lists of unsafe web resources. Unsafe web resources include social engineering sites - such as phishing and deceptive sites - and sites that host malware or unwanted software. With the Web Risk API, you can quickly identify known bad sites, warn users before they click infected links, and prevent users from posting links to known infected pages from your site. The Web Risk API includes data on more than a million unsafe URLs and stays up to date by examining billions of URLs each day. + released_version: 2.99.0 name_pretty_override: Web Risk product_documentation_override: https://cloud.google.com/web-risk/docs/ billing_not_required: true - released_version: 2.99.0 - name: websecurityscanner version: 2.100.0 apis: @@ -6123,10 +6123,10 @@ libraries: - google-cloud-websecurityscanner/src/test/java/com/google/cloud/websecurityscanner/it/v1beta/VPCServiceControlPositiveTest.java java: api_description_override: identifies security vulnerabilities in your App Engine, Compute Engine, and Google Kubernetes Engine web applications. It crawls your application, following all links within the scope of your starting URLs, and attempts to exercise as many user inputs and event handlers as possible. + released_version: 2.100.0 name_pretty_override: Cloud Security Scanner product_documentation_override: https://cloud.google.com/security-scanner/docs/ billing_not_required: true - released_version: 2.100.0 - name: workflow-executions version: 2.100.0 apis: @@ -6135,9 +6135,9 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.100.0 name_pretty_override: Cloud Workflow Executions product_documentation_override: https://cloud.google.com/workflows - released_version: 2.100.0 - name: workflows version: 2.100.0 apis: @@ -6152,9 +6152,9 @@ libraries: java: api_description_override: allows you to ochestrate and automate Google Cloud and HTTP-based API services with serverless workflows. codeowner_team: '@googleapis/aap-dpes' + released_version: 2.100.0 name_pretty_override: Cloud Workflows product_documentation_override: https://cloud.google.com/workflows - released_version: 2.100.0 - name: workloadidentity version: 0.5.0 apis: @@ -6175,10 +6175,10 @@ libraries: api_id_override: workloadmanager.googleapis.com api_description_override: Workload Manager is a service that provides tooling for enterprise workloads to automate the deployment and validation of your workloads against best practices and recommendations. client_documentation_override: https://cloud.google.com/java/docs/reference/google-cloud-workloadmanager/latest/overview + released_version: 0.16.0 library_type_override: GAPIC_AUTO name_pretty_override: Workload Manager API product_documentation_override: https://docs.cloud.google.com/workload-manager/docs - released_version: 0.16.0 - name: workspaceevents version: 0.64.0 apis: @@ -6186,9 +6186,9 @@ libraries: - path: google/apps/events/subscriptions/v1beta java: api_description_override: The Google Workspace Events API lets you subscribe to events and manage change notifications across Google Workspace applications. + released_version: 0.64.0 name_pretty_override: Google Workspace Events API product_documentation_override: https://developers.google.com/workspace/events - released_version: 0.64.0 - name: workstations version: 0.88.0 apis: @@ -6204,6 +6204,6 @@ libraries: - path: google/iam/v1/iam_policy.proto java: api_description_override: Fully managed development environments built to meet the needs of security-sensitive enterprises. It enhances the security of development environments while accelerating developer onboarding and productivity. + released_version: 0.88.0 name_pretty_override: Cloud Workstations product_documentation_override: https://cloud.google.com/workstations - released_version: 0.88.0